The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

New chat box, a brief analysis!

Page 2 of 4 Previous  1, 2, 3, 4  Next

View previous topic View next topic Go down

New chat box, a brief analysis!

Post by JScript on 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: http://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

JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down


Re: New chat box, a brief analysis!

Post by Van-Helsing on 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.


Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Re: New chat box, a brief analysis!

Post by JScript on 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: http://help.forumotion.com/t138790-new-chat-box-a-brief-analysis#956061

So long,

JS

JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Re: New chat box, a brief analysis!

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

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




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



this is what is seen after every reload.
Regards
FrOsTyXi

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Re: New chat box, a brief analysis!

Post by JScript on 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: http://help.forumotion.com/t138790-new-chat-box-a-brief-analysis#956061

So long,

JS

JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Re: New chat box, a brief analysis!

Post by FrOsTyXi on 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

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Re: New chat box, a brief analysis!

Post by Van-Helsing on 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:

Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Re: New chat box, a brief analysis!

Post by JScript on 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:


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

So long,

JS

JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Re: New chat box, a brief analysis!

Post by Van-Helsing on 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;)

Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Re: New chat box, a brief analysis!

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

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


New update:
Spoiler:
A small change allows you to have smile's window integrated into the chat window:


Download: http://help.forumotion.com/t138790-new-chat-box-a-brief-analysis#956061
So long,

JS

JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Re: New chat box, a brief analysis!

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

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

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Re: New chat box, a brief analysis!

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

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




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.

Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Re: New chat box, a brief analysis!

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

@Black-Shadow

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

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

So long,

JS

JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Re: New chat box, a brief analysis!

Post by Van-Helsing on 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:



Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Re: New chat box, a brief analysis!

Post by JScript on 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: http://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

JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Re: New chat box, a brief analysis!

Post by Van-Helsing on 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.


Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Re: New chat box, a brief analysis!

Post by smurfavr on 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

smurfavr
Active Poster

Male Posts : 1417
Reputation : 11
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Re: New chat box, a brief analysis!

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

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

Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Re: New chat box, a brief analysis!

Post by JScript on 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

JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Re: New chat box, a brief analysis!

Post by smurfavr on 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.


smurfavr
Active Poster

Male Posts : 1417
Reputation : 11
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Re: New chat box, a brief analysis!

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

@JScript there is a new code?

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Re: New chat box, a brief analysis!

Post by JScript on 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

JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Re: New chat box, a brief analysis!

Post by smurfavr on 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

smurfavr
Active Poster

Male Posts : 1417
Reputation : 11
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Re: New chat box, a brief analysis!

Post by Van-Helsing on 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.

Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Re: New chat box, a brief analysis!

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

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

Regards
FrOsTyXi

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Re: New chat box, a brief analysis!

Post by JScript on 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

JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Re: New chat box, a brief analysis!

Post by smurfavr on 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.


smurfavr
Active Poster

Male Posts : 1417
Reputation : 11
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Re: New chat box, a brief analysis!

Post by JScript on 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: http://help.forumotion.com/t138790p30-new-chat-box-a-brief-analysis#958529

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

So long,

JS


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

JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Re: New chat box, a brief analysis!

Post by smurfavr on 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: http://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.

smurfavr
Active Poster

Male Posts : 1417
Reputation : 11
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Re: New chat box, a brief analysis!

Post by JScript on 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

JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Re: New chat box, a brief analysis!

Post by smurfavr on 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.

smurfavr
Active Poster

Male Posts : 1417
Reputation : 11
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Page 2 of 4 Previous  1, 2, 3, 4  Next

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum