Version: 2.0, by Dream
Developer Last Online: Sep 2010
Category: Chat Modifications -
Version: 3.6.8
Rating:
Released: 11-06-2006
Last Update: 08-13-2007
Installs: 381
DB Changes Uses Plugins Template Edits
Re-useable Code Additional Files
No support by the author.
This adds a simple Chatbox in your forum home page for your members to chat.
The Chatbox is like a thread, members leave small messages in it for others to see. Think of it as an off-topic thread that never ends. The Chatbox can also help keep chatting out of the threads.
This mod is light on the server, uses little server resources to work. The default refresh rate is set to 5 minutes. You can disable automatic refreshing entirely in the options.
What's the refresh rate? The chatbox updates the messages shown every given seconds, that's the refresh rate. It sends a request to the server asking for new messages every X seconds, that you choose in the options.
Warning: If you set your refresh rate to 10 seconds this mod stops being so server friendly. You can do it, but be sure your server can handle it.
Features:
- Ajax (no page refreshes)
- Pages
- Set refresh rate in seconds
- Hide Chatbox contents from certain user groups
- Set user groups that can't send messages but can view chatbox
- Moderator user groups that can delete messages
- Disable auto refresh for guests
- Prune messages by user ID, user name, days old or all
- Enable/disable smilies, bbcode and [ img ]
- Automatic URL parsing
- Users can delete their own messages
- Smilies popup with all smilies you can use in messages
- Who's Online Support
- Show message dates or not
- User names linked and colored with their user group colors
- Banned Users
- Hide refresh button
- /me code
- Optional message colors
- Bunch of options in the Admin Control Panel
This mod is now final. It has all the features I think a chatbox should have, so I won't be adding more features to it. Anyone has my permission to use this as a base for another mod. It will still be updated for bugs though.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
How can I add custom commands to this?
like the /me command..
You would need to code it into chatbox.php
Quote:
Originally Posted by TheBlackPoet
the more i look at it.... the more i like it... i was so used to shoutbox.., but my site kept crashing because of the amount of resources it stole..., but this will work just fine.... in conjunction with the big flashchat.....
and like everyone else... i'm trying to figure out why i cant paste the chat on the upper part of forumhome..
good job and thanks
You should be able to do that just by following the instructions on chatbox below navbar.txt
Quote:
Originally Posted by santimariani
How does this compare to the inferno shoutbox in terms of resources used? thanks!
Depends what you put on your auto refresh interval. If you leave it 5 minutes, it would use a lot less server resources. But if you put like 10 seconds, I don't think it would be much different, maybe the Inferno one would use less because it should be optimized for that kind of refresh interval, but I don't know for sure because I don't know the Inferno one's code.
I don't see anything there Flow Fusion, just another chat program.
What do you mean by slimming down?
I am the 'other admin' who 'fixed' it, LOL! What happened is that he had 2 different chat hacks running and they were conflicting---Try right now to straighten these things up as we speak!
CREATE TABLE ".TABLE_PREFIX."chatbox (
`shoutid` INT( 10 ) NOT NULL AUTO_INCREMENT ,
`userid` INT( 10 ) NOT NULL ,
`username` VARCHAR( 100 ) NOT NULL ,
`shout` VARCHAR( 255 ) NOT NULL ,
`dateline` INT( 10 ) NOT NULL ,
`ipaddress` VARCHAR( 16 ) DEFAULT '0' NOT NULL ,
PRIMARY KEY ( `shoutid` )
);
This is what I get---
MySQL said: Documentation
#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '".TABLE_PREFIX."chatbox (
`shoutid` INT( 10 ) NOT NULL AUT
OK---I fixed it. The code you showed was right, but for some ungodly reason it would not query? What I did was over-write the ajax version with the non-ajax---then upgraded and viola'! It worked!!! Thanx!
There's no way to edit shouts in the current version.
You can change the input size for both chatboxes (vBa and forum), but not for only the vBa one. That would require changing code but I'm afraid I wouldn't know how to do that.
I'll fix that firefox error (it's more of a warning than an error) in the next version.
If I were to add message colors (a select box that lets you select the color of your message), should just the message be colored or the whole line, including time and user name?