Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
VSa - ChatBox (AJAX) Details »»
VSa - ChatBox (AJAX)
Version: 3.1.8, by Valter Valter is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Chat Modifications - Version: 4.x.x Rating:
Released: 02-07-2010 Last Update: 09-10-2012 Installs: 2860
DB Changes Uses Plugins Auto-Templates
 
No support by the author.

Info:
Powerful AJAX-based ChatBox for vBulletin.

Main Features:
-One step installation (no file uploads, no manual template modifications required)
-Put ChatBox on any forum page by setting script name and adding variable to desired template
-"ChatBox Full" (always available on separate page)
-"Messages Archive" (available on separate page, with options to edit/delete messages)
-"ChatBox Search"
-Option to block usergroups from viewing ChatBox
-Option to delete messages older than x hours automatically
-"ChatBox Statistics" (new messages since last visit, messages in last x hours, total messages, top x chatters,...)
-View users active in ChatBox (available in CBFull and Archive)
-Text formatting options (color, weight, style, decoration,...)
-Advanced Smiliebox
-Smiliebox options: total smilies available, smilies per row, smilie clipping, disable smilies...
-A lot of customizable stuff, including: set new/old status icons, time/date format, box height, message order, auto-refresh intervals,...
-One-click actions: View all messages posted by user X, Delete all messages posted by user x, Ban/unban user from ChatBox, View last message posted by user X, View your last message, View first unread message
-"/me" action (used when you want to refer to yourself in the "third person")
...and more...

View screenshots for more details.

Installation:
-Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product]
-OPTIONAL: Download attached images and extract them to images/editor (contains smilies/remove format icons)

To add to desired template (example FORUMHOME):
1. Add 'index' to THIS_SCRIPT locations (Product options)
2. Add 'FORUMHOME' to template names (Product options)
3. Open 'FORUMHOME' template and put "{vb:raw vsachatbox}" to desired line (for example after '<!-- /main -->') -> Save

To set options:
Go to: AdminCP > vBulletin Options > VSa - ChatBox

Versions:
v1.0 - Sep 15. 2007.
-First version
v2.3 - Sep 22. 2008.
-Latest vB 3.x version
v3.0 - Feb 08. 2010.
-Rewritten for vB4
-Known bugs fixed, code optimized
v3.0.1 - Feb 09. 2010.
-Fixed: Wrong title alignment in box/archive tables
-Fixed: Wrong expand/collapse button alignment in Safari
-Fixed: Wrong 'Smilies' alignment
-Fixed: XHTML errors
-New Setting: List templates where "{vb:raw vsachatbox}" will be enabled
v3.0.2 - Feb 09. 2010.
-Fixed: PHP error on CMS on some configs
-Fixed: 'Smilies' alignment
-Fixed: Minor bugs in PHP/HTML
v3.1 - Feb 14. 2010.
-New: CB Log-in/Log-out
-New Option: Stop auto-refresh if user inactive for X minutes
-New Option: Disable custom colors completely
-New Option: Random smilies
-New Option: Align messages to the usernames
-New: Remove text formatting button
-New: 'Smilies' replaced by image, arrrow removed
-Fixed: Move focus to input field when smilie inserted
-Fixed: 'Expand' button not shown after refresh
-Fixed: Now first item in color list is used as default
-Settings reorganized
-Several style/functionality bugs fixed
v3.1.1 - Feb 14. 2010.
-Fixed: Small JS issue on log-out
-New Option: Logged-out by default
v3.1.2 - Feb 16. 2010.
-Fixed: Errors with PHP 5.3
-Fixed: CB table messed up in footer
-Fixed: Several style errors, including XHTML incompatibilities
-New: Auto-insert on forumhome location - Below Forums
-New: Option to reverse message order in CB Archive
v3.1.3 - Feb 19. 2010.
-Fixed: Color selector dimensions
-Fixed: Minor bugs
v3.1.4 - Feb 20. 2010.
-New: Color Select replaced by Color Menu (and it's sexy)
-Note: Above fixes issues with Safari for Mac
-Fixed: Issue with Default color if it's in RGB format
-Note: Above will not change already posted messages
-Fixed/improved: Several style details
-Note: You may die if your templates are not reverted after upgrade
v3.1.5 - Feb 20. 2010.
-Fixed: Chrome not showing Color menu
-Fixed: headinclude_bottom added to <head
v3.1.6 - Feb 24. 2010.
-Fixed: Several style/functionality issues
-New: Set groups NOT able to edit messages
v3.1.7 - Jan 21. 2012.
-Fixed: Status images
-Fixed: Smilies button
-Fixed: Menu items invisible until highlighted
-Fixed: Several style issues (background, menus, colors, smilies)
-Fixed: https links not parsed automatically
-New: Show ChatBox in selected forum only
-New option: Automatically disable auto-refresh if server load is higher than X
-New Option: Set usergroups able to prune ChatBox
-New: 'Prune ChatBox' option available in the Main ChatBox drop-down menu
-Improved: Product menus re-organized
-Minor bugs fixed, codes optimized

Download Now

File Type: zip VSa - ChatBox v3.1.8.zip (23.5 KB, 8357 views)
File Type: zip optional_images_editor.zip (3.9 KB, 3725 views)

Screenshots

File Type: jpg cb1.jpg (92.7 KB, 0 views)
File Type: jpg cb2.jpg (102.6 KB, 0 views)
File Type: jpg cb3.jpg (115.0 KB, 0 views)
File Type: jpg arc1.jpg (62.9 KB, 0 views)
File Type: jpg arc2.jpg (69.6 KB, 0 views)
File Type: jpg acp1.jpg (132.0 KB, 0 views)
File Type: jpg acp2.jpg (105.5 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #832  
Old 03-07-2010, 07:27 AM
Universal Universal is offline
 
Join Date: Sep 2006
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by michiganbaja View Post
One problem, can anyone help? Everything works fine except when a member first logs in it will keep saying loading and never actually load the chat. If you click to another area in the forum all is well but if you try to enter something into chat while it is stuck loading, it says this..
Try reverting all the VSA chat templates.
Reply With Quote
  #833  
Old 03-07-2010, 09:46 AM
FASEOFMARS FASEOFMARS is offline
 
Join Date: Mar 2010
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is their a way in which i can have it just display above the forums and can remove the link to the full chatbox in the navbar?

also how do i edit the name of chatbox to something of my liking?

thanks..
Reply With Quote
  #834  
Old 03-07-2010, 10:01 AM
madotds madotds is offline
 
Join Date: Oct 2007
Location: UK
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cory_booth View Post
Add an alert sound to new chats....

OK folks, this is not for the faint of heart and I know there must be a much easier way to do this, but until something better comes along....

BEFORE YOU BEGIN.

You'll need a wav file and access to your database.

STEP 1: UPDATE USER TABLE
Add new column of type "INT"
Name Column = "countvsachats"

STEP 2: MODIFY PLUGINS - (VSa - ChatBox - MN)

Find the following function "ccbmessages"
Add above: $vbulletin->db->show_errors();
PHP Code:
$tvsacurrent $vbulletin->db->query_read("SELECT COUNT(ID) AS VSACURRENT FROM ".TABLE_PREFIX."vsa_chatbox AS vsa_chatbox");
                while (
$tvsacurrent $vbulletin->db->fetch_array($tvsacurrent))
                {
                
$vsacurrent $tvsacurrent[VSACURRENT];
                }
                
$tvsauser $vbulletin->db->query_read("SELECT countvsachats AS VSAUSER FROM ".TABLE_PREFIX."user WHERE userid = " $vbulletin->userinfo['userid'] ."");
                while (
$tvsauser $vbulletin->db->fetch_array($tvsauser))
                {
                
$vsauser $tvsauser[VSAUSER];
                }
                if (
$vsacurrent $vsauser)
                {
                
$vbulletin->db->query_write("UPDATE " TABLE_PREFIX "user SET countvsachats = ".$vsacurrent." WHERE userid = " $vbulletin->userinfo['userid'] . "");
                }
                if (
$vsacurrent $vsauser)
                {
                
$vbulletin->db->query_write("UPDATE " TABLE_PREFIX "user SET countvsachats = ".$vsacurrent." WHERE userid = " $vbulletin->userinfo['userid'] . "");
                }
                
$vsacb_box_totalmessages $vbulletin->db->num_rows($vsacb_get_msg_box); 

STEP 3: Scroll down and find .... if ($vsacb_box_totalmessages>0)
Add above (notice here I am loading a chat.wav from images\misc - you'll need to upload a wav and change accordingly):

PHP Code:
              if ($vsacurrent $vsauser)
                {
                echo (
'<div><table><tr><td><EMBED SRC="images\misc\chat.wav" HIDDEN="TRUE" AUTOSTART="TRUE"></EMBED></td></tr></div>');
                } 

I have yet to try with FireFox but the idea is simple. Have a coulm in the user tabe keep track of the current amount of chats. When the chatbox refreshes, run a quick query to count the number of chats. If the chats in the query are larger than the entry in the user table - update the user table to match and fire off a sound.



I hope that there will be a good response to this and Valter might provide a similar solution?
Cheers for this! we were missing the BOING! and now it is back the whole process is not as daunting as it may seem at first

MaDavis
Reply With Quote
  #835  
Old 03-07-2010, 12:02 PM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FASEOFMARS View Post
is their a way in which i can have it just display above the forums and can remove the link to the full chatbox in the navbar?

also how do i edit the name of chatbox to something of my liking?

thanks..
Setting the locations is in the options. There's also an option to disable the navbar link - the last one. Changing the name has already been covered: https://vborg.vbsupport.ru/showpost....&postcount=399 .

Believe it or not, a very important part of installing any mod is taking the time to read through the entire thread for information. Yes, I know this becomes painful for popular mods, especially when people keep padding the thread with the same questions.
Reply With Quote
  #836  
Old 03-07-2010, 02:58 PM
FASEOFMARS FASEOFMARS is offline
 
Join Date: Mar 2010
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry i figured someone asked the question but their is 56 pages and i thought i would chance my arm and hopefully a gent like yourself would stop by and make my troubles a whole lot easier.. thanks a million!
Reply With Quote
  #837  
Old 03-07-2010, 04:32 PM
Skreech94 Skreech94 is offline
 
Join Date: Nov 2009
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm sure this has been asked a lot and most of us would enjoy, can you add more command functions?
Examples:
/notice
/prune
/ban
and more things along those lines. It would be really nice for this chatbox and would make it perfect.
Reply With Quote
  #838  
Old 03-07-2010, 05:29 PM
madotds madotds is offline
 
Join Date: Oct 2007
Location: UK
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cory_booth View Post
Add an alert sound to new chats....

OK folks, this is not for the faint of heart and I know there must be a much easier way to do this, but until something better comes along....

BEFORE YOU BEGIN.

You'll need a wav file and access to your database.

STEP 1: UPDATE USER TABLE
Add new column of type "INT"
Name Column = "countvsachats"



I hope that there will be a good response to this and Valter might provide a similar solution?
Hi someone asked me how to add the column for this to there database so I have created a quick picturial HERE for anyone who would like to know. It is not as hard as it sounds

Hope it helps

MaDavis
Reply With Quote
  #839  
Old 03-07-2010, 06:26 PM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by madotds View Post
Hi someone asked me how to add the column for this to there database so I have created a quick picturial HERE for anyone who would like to know. It is not as hard as it sounds

Hope it helps

MaDavis
what a nice step by step add-ons tutorial out there mate...thanks a lot for the time you've spent...

but still confused about this thing here


STEP 2: MODIFY PLUGINS - (VSa - ChatBox - MN)
FIND THE FOLLOWING FUNCTIONS "ccbmessages"

ADD ABOVE: THIS ONE? >>> $vbulletin->db->show_errors(); OR WHAT?

AND WHAT IS THIS CODE BELOW?
PHP Code:
$tvsacurrent $vbulletin->db->query_read("SELECT COUNT(ID) AS VSACURRENT FROM ".TABLE_PREFIX."vsa_chatbox AS vsa_chatbox");
                while (
$tvsacurrent $vbulletin->db->fetch_array($tvsacurrent))
                {
                
$vsacurrent $tvsacurrent[VSACURRENT];
                }
                
$tvsauser $vbulletin->db->query_read("SELECT countvsachats AS VSAUSER FROM ".TABLE_PREFIX."user WHERE userid = " $vbulletin->userinfo['userid'] ."");
                while (
$tvsauser $vbulletin->db->fetch_array($tvsauser))
                {
                
$vsauser $tvsauser[VSAUSER];
                }
                if (
$vsacurrent $vsauser)
                {
                
$vbulletin->db->query_write("UPDATE " TABLE_PREFIX "user SET countvsachats = ".$vsacurrent." WHERE userid = " $vbulletin->userinfo['userid'] . "");
                }
                if (
$vsacurrent $vsauser)
                {
                
$vbulletin->db->query_write("UPDATE " TABLE_PREFIX "user SET countvsachats = ".$vsacurrent." WHERE userid = " $vbulletin->userinfo['userid'] . "");
                }
                
$vsacb_box_totalmessages $vbulletin->db->num_rows($vsacb_get_msg_box); 

STEP 3: SCROLL DOWN AND FIND .... if ($vsacb_box_totalmessages>0)

ADD ABOVE: >>> (notice here I am loading a chat.wav from images\misc - you'll need to upload a wav and change accordingly):

PHP Code:
              if ($vsacurrent $vsauser)
                {
                echo (
'<div><table><tr><td><EMBED SRC="images\misc\chat.wav" HIDDEN="TRUE" AUTOSTART="TRUE"></EMBED></td></tr></div>');
                } 

tried to think to make this work still no luck...


hmmm...
Reply With Quote
  #840  
Old 03-07-2010, 07:20 PM
madotds madotds is offline
 
Join Date: Oct 2007
Location: UK
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just shooting some noobs on xbox and then i will make an addon to that post buddy
Reply With Quote
  #841  
Old 03-07-2010, 07:48 PM
madotds madotds is offline
 
Join Date: Oct 2007
Location: UK
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok the easiest way to do this is to go to the plugin we need to edit in this case
?VSa - ChatBox ? MN?
How? Admincp>>> Plugin and products>>>>Plugin manager Scroll down and find the VSa-Chatbox-MN plugin and next to that click edit.

Select everything in the php code box and copy it to a text editor of your choice ( I use notepad++ )

Once there you can use the find function and look for

Code:
$vbulletin->db->show_errors();
And add on the line above it (copy and paste)

Code:
$tvsacurrent = $vbulletin->db->query_read("SELECT COUNT(ID) AS VSACURRENT FROM ".TABLE_PREFIX."vsa_chatbox AS vsa_chatbox");
                while ($tvsacurrent = $vbulletin->db->fetch_array($tvsacurrent))
                {
                $vsacurrent = $tvsacurrent[VSACURRENT];
                }
                $tvsauser = $vbulletin->db->query_read("SELECT countvsachats AS VSAUSER FROM ".TABLE_PREFIX."user WHERE userid = " . $vbulletin->userinfo['userid'] ."");
                while ($tvsauser = $vbulletin->db->fetch_array($tvsauser))
                {
                $vsauser = $tvsauser[VSAUSER];
                }
                if ($vsacurrent > $vsauser)
                {
                $vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET countvsachats = ".$vsacurrent." WHERE userid = " . $vbulletin->userinfo['userid'] . "");
                }
                if ($vsacurrent < $vsauser)
                {
                $vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET countvsachats = ".$vsacurrent." WHERE userid = " . $vbulletin->userinfo['userid'] . "");
                }
                $vsacb_box_totalmessages = $vbulletin->db->num_rows($vsacb_get_msg_box);

Then use the search function again to find

Code:
$vsacb_box_totalmessages>0
And on the line above that add (copy and paste) the next bit of code

Code:
             if ($vsacurrent > $vsauser)
                {
                echo ('<div><table><tr><td><EMBED SRC="images\misc\chat.wav" HIDDEN="TRUE" AUTOSTART="TRUE"></EMBED></td></tr></div>');
                }
Once you have done that you can copy the whole lot back from your text editor into the plugin phpcode box replacing the original code and click save.

You then need to find a good wav file. you can TRY HERE and upload it to your images/misc folder ( make sure and name it "chat.wav )

Hope this helps
Mark
Reply With Quote
Reply


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 02:07 AM.


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.06113 seconds
  • Memory Usage 2,448KB
  • Queries Executed 26 (?)
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
  • (4)bbcode_code
  • (4)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (38)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (9)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete