New chat box, a brief analysis! - Page 2 Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
+11
Carmelo Taylor
smurfavr
FrOsTyXi
Van-Helsing
smejker
Daemon
CovalentBond
Niko
Tonight
Eugeo Igvalt
JScript
15 posters

    New chat box, a brief analysis!

    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    New chat box, a brief analysis! - Page 2 Empty New chat box, a brief analysis!

    Post by JScript February 5th 2015, 2:17 pm

    First topic message reminder :

    Hello everybody!

    I've been checking how is the current structure of response of this new version of the chatbox and I was surprised with the content that is now in JSON format !!!

    That's right, now more professional and with that we have to make sure that the avatar in posts is closer than we think ...

    Look beneath the format returned by the function initListening():
    Code:

    {
        "url": "http:\/\/f36.dnspro.org\/sub\/cb.366bc21",
        "lastModified": "Thu, 05 Feb 2015 12:23:56 GMT",
        "tag": "0"
    }

    Now see the return of the url http://f36.dnspro.org/sub/cb.366bc21 <- this end I think it's on my forum...
    Code:

    {
        "channel": "cb.366bc21",
        "text": "init",
        "tag": "0",
        "time": "Thu, 05 Feb 2015 12:23:56 GMT"
    }

    And finally, the return of the posts through prototype get():
    Code:

    {
        "connected": true,
        "messages": [{
            "userId": "-10",
            "msg": "Messages cleared by JScript",
            "time": "1423140436",
            "username": "JScript",
            "action": "clear",
            "chat_level": null,
            "user_level": null,
            "date": "05 Feb 2015",
            "datetime": "05:47:16 05\/02\/2015"
        }, {
            "userId": "1",
            "msg": "<span style="color: #222222">Test 01<\/span>",
            "time": "1423140440",
            "username": "JScript",
            "action": "msg",
            "chat_level": "2",
            "user_level": "1",
            "date": "05 Feb 2015",
            "datetime": "05:47:20 05\/02\/2015",
            "user": {
                "color": "#000099",
                "admin": true
            }
        }],
        "users": {
            "1": {
                "online": true,
                "id": "1",
                "username": "JScript",
                "admin": true,
                "userLebel": "1",
                "chatLevel": "2",
                "color": "#000099"
            }
        }
    }

    Realize that is well structured and that soon we will have the avatar in the messages!
    Done: https://help.forumotion.com/t139068-add-your-avatar-into-the-chatbox

    Anyone want to comment something?

    JS


    Last edited by JScript on February 17th 2015, 9:09 am; edited 1 time in total
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by Van-Helsing May 10th 2015, 12:17 pm

    JScript wrote:
    Black-Shadow wrote:Hello dear all,
    The new chatbox update is not displaying/keeping the chatbox archived messages all in one place?
    What do you mean?! You can post a print?

    JS

    Hello @JScript,
    After the latest update this problem seems solved. The problem with green chatbox rules bar is still remaining it isblinking like refreshing after 4-5 seconds as we discussed it yesterday. Also I watched I cant edit/delete some staff's members and members messages from chatbox.

    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by JScript May 12th 2015, 2:15 am


    New update:
    /***
    * New Chatbox pseudo commands (Beta test and staff only!)
    *
    * Command ------------ Explanation
    * --------------------------------------------------------------------------------------------------------
    * /shake ---------------- "Username" shook the chat window to catch everyone's attention!
    *
    */

    Download: https://help.forumotion.com/t138790-new-chat-box-a-brief-analysis#956061

    So long,

    JS
    FrOsTyXi
    FrOsTyXi
    Forumember


    Male Posts : 460
    Reputation : 12
    Language : english

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by FrOsTyXi May 12th 2015, 4:30 am

    @JScript i am getting this error in the console from the update can it be fixed?

    New chat box, a brief analysis! - Page 2 Aja13
    New chat box, a brief analysis! - Page 2 Aja12

    Also it is starting to take 50 page reloads to even see the chatbox

    New chat box, a brief analysis! - Page 2 Ajaja10

    this is what is seen after every reload.
    Regards
    FrOsTyXi
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by JScript May 12th 2015, 5:14 pm

    @FrOsTyXi
    I have identified the reason for the problem: The code was being loaded before the jQuery library, but only on slower connections!
    The error does not happening in my tests because the connection speed that I have is 150mbps of download...
    When I decreases to 5mbps, I could see the error and so I made another "loader".

    New update:

    Download: https://help.forumotion.com/t138790-new-chat-box-a-brief-analysis#956061

    So long,

    JS
    FrOsTyXi
    FrOsTyXi
    Forumember


    Male Posts : 460
    Reputation : 12
    Language : english

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by FrOsTyXi May 12th 2015, 5:25 pm

    @JScript thank you! All seems to be working fine now i will keep testing and also the console error is gone! Great work!

    Regards
    FrOsTyXi
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by Van-Helsing May 12th 2015, 9:08 pm

    @JScript thank you nice job.  ~1~ I will test the codes the next few hours.
    Is it possible to add IPB extender module hook (like ipb) which it is displaying new posts in chatbox or this make chatbox very heavy due the time to check for new posts?

    Example:
    New chat box, a brief analysis! - Page 2 NlNGNa7
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by JScript May 14th 2015, 10:24 pm

    @FrOsTyXi & @Black-Shadow

    Black-Shadow, this is already being developed!


    New update:

    A small change allows you to have smile's window integrated into the chat window:
    New chat box, a brief analysis! - Page 2 SsrzQ1N

    Download: https://help.forumotion.com/t138790-new-chat-box-a-brief-analysis#956061

    So long,

    JS
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by Van-Helsing May 14th 2015, 10:57 pm

    Hello @JScript,
    Nice update now the smileys aren't in popup window. Another suggestion which I have is ChatBox System Message and Chatbox warning message (like shake cmd) similar avacweb's chat.
    Related topic here to have an integrated chatbox;)
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by JScript May 14th 2015, 11:08 pm

    Ok, this is quite simple to implement! Soon...


    New update:
    Spoiler:
    So long,

    JS
    FrOsTyXi
    FrOsTyXi
    Forumember


    Male Posts : 460
    Reputation : 12
    Language : english

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by FrOsTyXi May 14th 2015, 11:56 pm

    @JScript wonderful update! Working fine! I do like the idea @Black-Shadow has that would be nice!
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by Van-Helsing May 15th 2015, 12:55 am

    @JScript,
    I watched some bugs after some refreshes the chatbox appearing empty


    New chat box, a brief analysis! - Page 2 WELyt1P

    Why this happening? I cleared all the cookies but it still remaining the problem. Is it a loader problem? Its having two chatbox loaders active. When i removed the first loader the chatbox worked like default but the following bugs appeared:

    1. The symbol @ is not substituted from the variable
    2. Red/Green Messages appeared again (User Connected/Disconnected)
    3. Edit/Delete buttons aren't appeared.

    and I restored the previous code again.
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by JScript May 15th 2015, 2:30 pm

    @Black-Shadow

    Please, download again: https://help.forumotion.com/t138790-new-chat-box-a-brief-analysis#956061

    Note: Do not change the "loaders", both are needed!

    So long,

    JS
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by Van-Helsing May 15th 2015, 3:19 pm

    Hello @JScript,
    I download it and I try it on test forum and the smileys opening in a list(which not displaying other smileys sets) and open the smileys popup simultaneously like this screenshot:


    New chat box, a brief analysis! - Page 2 ZoH51lJ
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by JScript May 15th 2015, 3:32 pm

    @Black-Shadow
    Sorry my friend, I was implementing the other smileys sets and forgot to change a line in the code!

    Please, download again: https://help.forumotion.com/t138790-new-chat-box-a-brief-analysis#956061

    Note: You can modify the behavior of smile's window through this variable:
    // Open "smiles" in a pop up window? Default is 0 = no pop up!
    smilePopUp: 0,

    So long,

    JS
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by Van-Helsing May 15th 2015, 3:45 pm

    @JScript now its fixed, but is not displaying the other smileys sets in smileys dropdown menu. Another bug which i found is when I am setting the variable smilePopUp to 1 is not displaying the popup.

    New chat box, a brief analysis! - Page 2 U4xbnuM
    smurfavr
    smurfavr
    Active Poster


    Male Posts : 1883
    Reputation : 22
    Language : Bulgarian

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by smurfavr May 22nd 2015, 11:43 am

    I put the code but write something chatting and does not appear.



    Last edited by smurfavr on May 22nd 2015, 12:30 pm; edited 1 time in total
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by Van-Helsing May 22nd 2015, 11:54 am

    Hello dear all,
    @JScript is there a new update with extender?
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by JScript May 22nd 2015, 12:17 pm

    smurfavr wrote:I put the code but write something chatting and does not appear.
    Before adding my code, you must clear the chat messages with /cls, refresh the page and then do the test ok?

    Please remove the code from your message by editing your topic
    The reason is that due to the complexity it is not displayed correctly, only with download link.


    @Black-Shadow
    Not yet, but I'm already writing this part!

    JS
    smurfavr
    smurfavr
    Active Poster


    Male Posts : 1883
    Reputation : 22
    Language : Bulgarian

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by smurfavr May 22nd 2015, 12:36 pm

    It does not show any change after pasting the code.It can not change the message and can not erase the writing.

    New chat box, a brief analysis! - Page 2 8128620G
    FrOsTyXi
    FrOsTyXi
    Forumember


    Male Posts : 460
    Reputation : 12
    Language : english

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by FrOsTyXi May 22nd 2015, 12:47 pm

    @JScript there is a new code?
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by JScript May 22nd 2015, 1:46 pm

    @smurfavr
    Please create a temporary account (only with membership rights) and post here Username and password
    So I can see better your problem!

    @FrOsTyXi
    Soon,

    JS
    smurfavr
    smurfavr
    Active Poster


    Male Posts : 1883
    Reputation : 22
    Language : Bulgarian

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by smurfavr May 22nd 2015, 2:21 pm

    JScript wrote:@smurfavr
    Please create a temporary account (only with membership rights) and post here Username and password
    So I can see better your problem!

    @FrOsTyXi
    Soon,

    JS

    bisoni
    123aaa

    http://smurfa.bulgarianforum.net/portal
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by Van-Helsing May 22nd 2015, 3:07 pm

    @JScript can you make the chatbox code similar to your old project IPB Shoutbox or Staff's chatbox?

    Another bug which I found is the auto-login is not holding the member connected to the chatbox while it is connected to the forum. After the chatbox timeout the member still disconnecting from the chatbox but it still remains connected to forum. Furthermore on the Google Chrome is not working correctly, etc after a page refresh the member is not auto-login to chatbox.
    FrOsTyXi
    FrOsTyXi
    Forumember


    Male Posts : 460
    Reputation : 12
    Language : english

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by FrOsTyXi May 22nd 2015, 3:27 pm

    @JScript thank you Please just tag me in the post.

    Regards
    FrOsTyXi
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by JScript May 22nd 2015, 4:42 pm

    @smurfavr
    Your problem is simple to solve:
    Your chat box is located in the /portal and in my post the placement is for In the home page!
    You simply replace it with In the portal


    Black-Shadow wrote:@JScript can you make the chatbox code similar to your old project IPB Shoutbox or Staff's chatbox?
    Similar in what way? I guess I do not quite understand...

    Black-Shadow wrote:Another bug which I found is the auto-login is not holding the member connected to the chatbox while it is connected to the forum. After the chatbox timeout the member still disconnecting from the chatbox but it still remains connected to forum. Furthermore on the Google Chrome is not working correctly, etc after a page refresh the member is not auto-login to chatbox.
    Okay, I'll now try GC to check this problem!

    @FrOsTyXi
    OK!

    JS
    smurfavr
    smurfavr
    Active Poster


    Male Posts : 1883
    Reputation : 22
    Language : Bulgarian

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by smurfavr May 25th 2015, 10:31 am

    I want to change messages should chatting, but the field is not visible writing. Another problem is with the send button. Button can not see the inscription.

    New chat box, a brief analysis! - Page 2 8134253Y
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by JScript May 25th 2015, 12:38 pm

    @smurfavr
    Hello!
    This is no problem with my code, but with your CSS!

    Try adding the following CSS:

    Link: https://help.forumotion.com/t138790p30-new-chat-box-a-brief-analysis#958529

    Result: https://i.imgur.com/fyEaKqA.png

    So long,

    JS


    Last edited by JScript on May 25th 2015, 5:02 pm; edited 1 time in total
    smurfavr
    smurfavr
    Active Poster


    Male Posts : 1883
    Reputation : 22
    Language : Bulgarian

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by smurfavr May 25th 2015, 1:46 pm

    JScript wrote:@smurfavr
    Hello!
    This is no problem with my code, but with your CSS!

    Try adding the following CSS:
    Code:

    input, select, textarea {
      color: black !important;
    }

    Result: https://i.imgur.com/fyEaKqA.png

    So long,

    JS



    By adding this code I do not see what is written in the box.

    psp

    Problem has only gogle browser chrome. With Mozilla problem is gone. Can you fix this problem?
    When I use the button changes the inscriptions in the field are visible only with Mozilla browser. With chrome gogle not visible.
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by JScript May 25th 2015, 5:01 pm

    @smurfavr
    Try the following CSS:
    Code:

    textarea {
      color: black !important;
    }
    #submit_button {
      color: black !important;
    }

    I become to repeat: This is no problem with my code but the skin that you use!
    Please stop asking support for CSS appearance in this topic ok?

    Thanks,

    JS
    smurfavr
    smurfavr
    Active Poster


    Male Posts : 1883
    Reputation : 22
    Language : Bulgarian

    New chat box, a brief analysis! - Page 2 Empty Re: New chat box, a brief analysis!

    Post by smurfavr May 25th 2015, 5:20 pm

    Problem has only gogle browser chrome. With Mozilla problem is gone. Can you fix this problem?
    When I use the button changes the inscriptions in the field are visible only with Mozilla browser. With chrome gogle not visible.
    I talk about it.
    New chat box, a brief analysis! - Page 2 8135083i