Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Dream's Chatbox Details »»
Dream's Chatbox
Version: 2.0, by Dream Dream is offline
Developer Last Online: Sep 2010 Show Printable Version Email this Page

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

Live Demos: (leave your live demo in this thread!)
http://www.fliz.ru/ (russian)
http://www.sustainabilityforum.com/forum
http://www.virtualorbit.com/
http://www.bowlandcentral.com/forum


VERSION HISTORY



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.

Comments
  #432  
Old 05-25-2007, 01:21 PM
Dream's Avatar
Dream Dream is offline
 
Join Date: Oct 2001
Posts: 2,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ComputerVitals View Post
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 View Post
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 View Post
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.
Reply With Quote
  #433  
Old 05-25-2007, 01:41 PM
Flow Fusion Flow Fusion is offline
 
Join Date: Jul 2003
Location: Georgia
Posts: 512
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK I see one of the other admin fixed it. Now can you tell me how do I slim it down?

http://giftedsouls.net/gs/index.php
Reply With Quote
  #434  
Old 05-25-2007, 02:03 PM
Dream's Avatar
Dream Dream is offline
 
Join Date: Oct 2001
Posts: 2,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't see anything there Flow Fusion, just another chat program.

What do you mean by slimming down?
Reply With Quote
  #435  
Old 05-25-2007, 11:03 PM
Flow Fusion Flow Fusion is offline
 
Join Date: Jul 2003
Location: Georgia
Posts: 512
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dream View Post
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!
Reply With Quote
  #436  
Old 05-25-2007, 11:11 PM
Flow Fusion Flow Fusion is offline
 
Join Date: Jul 2003
Location: Georgia
Posts: 512
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by arco View Post
Run this query:

Code:
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
Reply With Quote
  #437  
Old 05-25-2007, 11:34 PM
Flow Fusion Flow Fusion is offline
 
Join Date: Jul 2003
Location: Georgia
Posts: 512
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #438  
Old 05-27-2007, 06:32 PM
Dream's Avatar
Dream Dream is offline
 
Join Date: Oct 2001
Posts: 2,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sir_Yaro View Post
Hi!

Two questions.
  • Is there any way to edit shout(s)?
  • How to set different input field size on vBA than forum home ?
Generaly 50px input field is fine but vBA's columns are very narrow and 50px input field is way to long for vBA...


If u can show me how to detect current page (if it's vba page or forum home) I think I can do it by myself...


edit1
--------
firefox's error console says:

and my friend additionally show me this:
Code:
shoutsDiv.innerHTML = newshouts + shoutsDiv.innerHTML;


function updateChatbox(newshouts) {
if (inputontop == 1) {
shoutsDiv.innerHTML = newshouts + shoutsDiv.innerHTML;
} else {
shoutsDiv.innerHTML = shoutsDiv.innerHTML + newshouts;
document.body.scrollTop = document.body.scrollHeight;
}
updateTimeNow();
}
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.
Reply With Quote
  #439  
Old 05-28-2007, 12:54 AM
Dream's Avatar
Dream Dream is offline
 
Join Date: Oct 2001
Posts: 2,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

200 installs gogogo ^_^
Reply With Quote
  #440  
Old 05-28-2007, 01:37 AM
Dream's Avatar
Dream Dream is offline
 
Join Date: Oct 2001
Posts: 2,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a question for people that use this mod.

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?
Reply With Quote
  #441  
Old 05-28-2007, 01:38 AM
arco arco is offline
 
Join Date: Apr 2007
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dream View Post
200 installs gogogo ^_^
:up:

And get well soon.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:28 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05681 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete