[Elgg 1.8-1.12 & 2.X: Elggchat] v1.8.1

Release Notes

  • Fix for chat toolbar and chat sessions to correctly work for users with no friends (thanks to Brett for reporting).
  • hi iionly....
    please improve design...buddy....
    my suggestion make like this....friend...

    thanks..

  • Hi iionly... i dont see the smiles feature and the "invite" link doesn't seem to work.

  • @Dave: the "smilies feature" means that some often used text smilies get converted into animated smilies on output of the chat message. But you will have to enter these smilies "by keyboard" in your messages. There's currently no way to select these smilies from any kind of menu.

    When inviting someone the chat window opens for the other member only after you posted your first message. Does this work or not?

  • @iionly: Oh ok... Didn't think of the function like that. Thanks and it works the way you've said.
     

  • olá, 

    ótimo plugin, parabéns!

    é possível modificar a posição da janela do chat?

    gostaria de posicionar no lado direito.

    agradeço

  • @Thiago:

    you can change "float: left;" to "float: right;" in the mod/elggchat/views/default/css/css.php in line 52 (i.e. for the session class). This will not be the perfect solution though, because the friend picker gets moved to the left of the chatsession window but the popup for selecting a friend for chatting does not get moved. Currently, the position of the popup is definded as absolute in the #elggchat_friends_picker id definition in the css file. So, some more modifications would be necessary - but I don't have the time now to test this out.

    A tip: asking in English (if not within a language specific group here on the site) will more likely result in an answer. Otherwise, most people will have to get the question translated first to even know what has been asked. If you don't speak English yourself, it's still nicer for you to use for example translate.google.com instead of expecting others to do it.

  • @ iionly:
     

    thank u

    I'm sorry for not translating the message and any errors in translation 

    I changed the referenced file really happened and the mistake you pointed out, the chat window is the right of the contact list, I would stay similar to facebook 

    I'm with this difficulty and do not know how to adjust the code 

    I want to also remove the confirmation message when closing a chat session 

    if anyone can help me 

    thanks in advance

  • suggestion 

    the settings of the plugin can include options to define the positioning of windows and option to enable recording conversations in texts 

    grateful

  • Moving the chatsession windows from left to right (without the problem with the friends picker menu):

    1. at the bottom of mod/elggchat/views/default/elggchat/session_monitor.php the order of some lines of codes has to be changed (no new code necessary). The lines in bold below are the lines of code that have to be switched. This change results in the chatbar to be filled (from right to left) first with the friends' toggler and then the chatsession windows.

    <div id="elggchat_toolbar">
        <div id="elggchat_toolbar_left" >
            <div id="elggchat_friends">
                <a href="javascript:toggleFriendsPicker();"></a>
            </div>
            <div id="elggchat_friends_picker"></div>

            <div id='elggchat_sessions'></div>

            <div id='elggchat_extensions'>
                <?php
                    if(elgg_get_plugin_setting("enableExtensions", "elggchat") == "yes") {
                        echo elgg_view("elggchat/extensions");
                    }
                ?>
            </div>
        </div>

        <div id="toggle_elggchat_toolbar" class="toggle_elggchat_toolbar" onclick="toggleChatToolbar('slow')" title="<?php echo elgg_echo("elggchat:toolbar:minimize");?>"></div>
    </div>

    2. in mod/elggchat/views/default/css/css.php some changes are necessary (float align from left to right and vice versa). I only list the blocks where a change is necessary:

    .session {
        float: right;
        background: #E4ECF5;
        border: 1px solid #4690D6;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
        padding:3px;
        margin:0 5px 5px 5px;
        /* ie fix */
        max-width:200px;
    }

    ...

    #elggchat_extensions{
        float:left;
        border-left:1px solid #CCCCCC;
        padding: 0 5px 0 5px;
    }

    (The elggchat plugin itself does not contain any extensions that would be added to the chatbar. But it offers this functionality for other plugins. If another plugin would add something then this extension(s) would be added starting from left.)

    3. No confirmation when closing a chat session: again a change in mod/elggchat/views/default/elggchat/session_monitor.php is necessary. The outer if-clause in the following function creates the confirmation dialog. Remove this if-clause (shown in bold) and there shouldn't be any confirmation necessary any more (Don't forget to remove also the closing } of the if-clause).

    function leaveSession(sessionid){
        if(confirm("<?php echo elgg_echo('elggchat:chat:leave:confirm');?>")){
            eraseCookie("elggchat_session_" + sessionid);
            var current = readCookie("elggchat");
            if(current == sessionid){
                eraseCookie("elggchat");
            }
            elgg.action('elggchat/leave', {
                data: {
                    chatsession: sessionid
                },
                success: function() {
                    $("#" + sessionid).remove();
                    checkForSessions();
                }
            });
        }
    }

    4. I'll keep the idea of configuring the left or right alignment of the chat windows via a plugin setting in mind. Next release of the elggchat plugin might include this feature (though I've currently not yet planned a new release).

    5. I'm not sure what you mean with "option to enable recording conversations in texts". The chats are already logged and you can view them in the admin area of your site. More precisely there are no logs created but simply the database entries that contain the on-going chats are shown. Inactive chatsessions are cleaned up though automatically by a cronjob after some time (i.e. the corresponding database entries are removed). Currently, you can configure the time after which the inactive chats are deleted between 1 hour and 24 hours. Maybe I could add a longer time (7 days / 1 month) or even add a "Never" as option. It's also important to keep in mind that only chat sessions are removed this way that were not closed by the participants themselves (either by leaving the chat or logging out from the site). Keeping logs from ALL chats might be possible to add as a plugin setting (though this might cause performance issues). I just get some ideas - but I will surely not be able to implement them within a short time as I'm currently busy with other plugin projects already I would like to finish first.

  • @Iionly

    I appreciate your attention to my case. 

    I made the changes and it worked 

    This was the best plugin I found 

    Would like to collaborate but understand very little programming. 

    Again thank you and I'm the disposition

Stats

  • Category: Communication
  • License: GNU General Public License (GPL) version 2
  • Updated: 2016-12-11
  • Downloads: 10017
  • Recommendations: 18

Other Projects

View iionly's plugins