Chat Module

Chat Module v1.1
Features:
[ul]
[li]An online users list, updated live and usable throughout the site[/li]
[li]The ability to chat privately with users that are currently online[/li]
[li]Timestamps on all messages[/li]
[li]A Chat Noise that notifies you of new messages[/li]
[li]A recent history of a chat when initiating a chat with a user online or if you have recently spoken (within the last few hours)[/li]
[li]Minimizable and Maximizable Chat Boxes[/li]
[li]Closable Chat Boxes, that will remove the Chat Box and the user tile under it[/li]
[li]Auto-linking, that recognizes links and automatically puts them in an anchor tag[/li]
[/ul]

~ Original Message ~
Today is the introduction of the new Chat Module.
The Chat Module is only displayed if youā€™re logged in. It starts off in the bottom-right hand corner of your screen as a blue rectangle containing ā€œOnline(x)ā€. Click that very rectangle to open up the users online menu. Then, click on a user to start to chat.

If you would like to maximize/minimize a chat box, simply click the name under it. It also contains an X in the top-right of the box which completely deletes the chat and associated name under it. You can get it back by going to the Online menu and selecting the user.

Currently, Iā€™m working on eliminating any bugs. I also want to include ā€œLoad previous messagesā€ as well as a Last message timestamp. The actual maximizations of windows will also be stored so that if you load a new page, they will retain their positions.

I do hope to include a ā€œfriends listā€ that displays a friend even if theyā€™re currently offline.
Bugs? Suggestions? Joy?
Post below.

2 Likes

Well done!

1 Like

It works really well, but I find that if I move to a new page when the chat is minimized, the chat box will open again obscuring the view of the new page. Not sure if itā€™s intentional (although I donā€™t see why it would be), just making you aware of that if you werenā€™t already :). Other than that its looking good.

Also, just a quick suggestion I have for the website. Would you be able to make the menu bar at the top of the screen remain static, similar to how the chat buttons work. I just think it would add to the aesthetic quality and functionality of the page design :P. Once again, just a suggestion if you want to give it a try.

1 Like

Yea that sounds like a great idea. Alsooo maybe, possibly, there would be a way to slide chats? Like for example when you have two chats open instead of closing and using the other one, (or vice versa.) Then, when you have them open, you can slide them so that they arenā€™t overlapping and so that you would be able to speak on both without closing one? :3 Like STS said, this is only a suggestion.

This is unrelated but Rofle, what ever happened to that Jon thing? Did you close it down or what? XD

Another suggestion, how about a notification toneĀæ ;D And emoticons? XDD

Ok lastly, nicely done Rofle. :stuck_out_tongue:

1 Like

A notification tone sounds like a good idea

1 Like

[quote=STHES] if I move to a new page when the chat is minimized, the chat box will open again obscuring the view of the new page[/quote]It is intentional because the messages received are those within 5 minutes. It is the temporary way of keeping a chat open while changing pages.

[quote=Donuts]You can slide them so that they arenā€™t overlapping and so that you would be able to speak on both without closing one[/quote]I was thinking for now to allow clicking on a chat box to move it to the top of the z-index so it becomes ā€œin focusā€. Iā€™m not sure what you mean by ā€œslidingā€ though. I could allow the chat boxes to be moveable around the page, but I donā€™t think I would be able to save their positions for when you change pages.

[quote=Donuts]This is unrelated but Rofle, what ever happened to that Jon thing? Did you close it down or what? XD[/quote]I disabled it and started to re-write him but never finished.

[quote=2Khajit2Quit]A notification tone sounds like a good idea[/quote]Yea thatā€™s planned but I need to find a tone first.

1 Like

A bug: when I reload the page, it displays all of my previous chats in a row even if the members arenā€™t online.

1 Like

Thatā€™s not a bug. I made a change so that it loads the messages of the last 6 hours. Iā€™m guessing only load if theyā€™re online would be better then? Once the state saving is in itā€™ll be better but Iā€™m just comprising.

1 Like

Ohhh ye okey. Ye maybe if they are only online. :3

1 Like

There we go. Only loads chats if the user is online and loads a max of 20 messages within the last 6 hours. Receiving messages only receives messages within the last 150 seconds; this should catch a user that has just come online and for safety is quite a high number. The chatbox popup has also been disabled when loading new pages.

Update: A chat sound was added. Whether its good or not is up to you but it plays its purpose and it should be obvious that the sound is chat-related. I produced the sound using a synthesiser myself so I didnā€™t steal it :stuck_out_tongue:
If anyone has short wav sounds they would like to submit feel free. In the future I will make the sound optional as well as have a choice of several.

1 Like

Looks good, also thanks for the change to the menu bar up the top :smiley:

1 Like

Okay so i read the whole thread and everything but i may have missed somethings, first of all this isnt a complaint but i cant hear the sound, mayby i need a plugin or somthing, idk xD Basically i haz a suggestion, this may be odd but i kinda like how its says on certain programns "ā€˜Userā€™ is typing a message) and i thought it would be call if that was implemented into the chat module idk, it may just be my weird imagination forcing me to write this :smiley: Thank you for reading.

1 Like

If you canā€™t hear the sound itā€™s because of any or multiple of the following:

  • Your browser doesnā€™t support HTML5
  • Your sound isnā€™t turned up
  • Your browser has blocked the HTML5 audio (idk why it would do that)
1 Like

o.0 shame i have my volumn on 45 and i use IE :"( i cant change browser either

1 Like

What IE you got? I believe IE9+ should support it.

1 Like

It updates really quick eg: MrSandwich and Donuts were on and as soon as MrSandwich logged off it updated.

1 Like

Found a bug: when you open the blue chat box, you will see the list of players on. Although, the only way to exit out of that part is to refresh the page. It would be nice if you can maybe add a exit button on that page. Itā€™s might just be my computer though. (?)

1 Like

The thing down the bottom that says ā€œOnline(3*)ā€? You click it again but I donā€™t know if Iā€™ve got the wrong thing or not.

*used 3 as an example, obviously.

1 Like

Slayer; allowing people to destroy the div means they canā€™t open ā€œnewā€ chats. You can only minimize and maximize it.

1 Like

oh ok. thanks!

1 Like