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.
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.
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
[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.
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.
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
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.
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 Thank you for reading.
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. (?)