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
  #2702  
Old 03-22-2013, 12:07 PM
adonato adonato is offline
 
Join Date: Feb 2012
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is excellent, but how to do in my forum page that the Unregistered/Not Logged can chat with anyone? because my problem is that all Unregistered/Not Logged must be logged in the page for chatting and I want to anyone can chat.
Reply With Quote
  #2703  
Old 03-27-2013, 08:25 AM
Slipperyduck Slipperyduck is offline
 
Join Date: Apr 2012
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've scanned through about 40 pages and the search this mod doesn't help with small searches.

I want to see if there is a way to drop the *username when doing a /me
The Username is already there in the chatbox as the speaker, the /me *username addition is messy IMHO so I want to remove it.... I'll start looking at the coding now and if I can figure it out I'll post it here.
Reply With Quote
  #2704  
Old 03-28-2013, 08:53 AM
Slipperyduck Slipperyduck is offline
 
Join Date: Apr 2012
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK,

I've seen a lot of requests for Widget style for CMS or Home Page here and I couldn't find a solution in these threads, so I went off with my limited knowledge and created my own solution.
ie. I want the VSA Chatbox to load on my CMS landing screen for my site as well as the index of forum.

How to do this. There are a number of steps, be patient, it works (at least for me)

Basically, the process is to quasi-create your own mod. ie. Create a .php file, a template in the style manager and lastly create a widget.
Lastly to go to the VSA Chatbox options and tell it that it is allowed to run on your page/template combo.

Here is how I did mine, feel free to use it/modify it to meet your demands.
Thanks to the work of user "Lynne" for the below thread that simplified the process.
see: https://vborg.vbsupport.ru/showthread.php?t=228112

*note, the chatbox display is exactly how it's displayed on your forum, in other words, the dimensions of the chatbox are the same inside your widget(which are the dimensions set in the vsa chatbox options), therefore this is not ideal for side-widgets. Or to be fair, this is a 'cheat' on the system just to display the box.

First off, create a .php file I called mine chattybox.php and uploaded this to the root of my forum
NEW .PHP FILE "chattybox.php"
Code:
<?php

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
// ########### IN MY CASE chattybox which is the .php filename ###########

define('THIS_SCRIPT', 'chattybox');
define('CSRF_PROTECTION', true);  
// change this depending on your filename

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array();

// ########### NOTE the case-sensitive template name MYCHATBOX ###########
// pre-cache templates used by all actions
$globaltemplates = array('MYCHATBOX',
);

// pre-cache templates used by specific actions
$actiontemplates = array();

// ######################### REQUIRE BACK-END ############################
// if your page is outside of your normal vb forums directory, you should change directories by uncommenting the next line
// chdir ('/path/to/your/forums');
require_once('./global.php');

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################

$navbits = construct_navbits(array('' => 'Grrr Chatbox'));
$navbar = render_navbar_template($navbits);

// ###### YOUR CUSTOM CODE GOES HERE #####
$pagetitle = 'The Infamous GRRR Chatbox';

// ###### NOW YOUR TEMPLATE IS BEING RENDERED ######

$templater = vB_Template::create('MYCHATBOX');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('pagetitle', $pagetitle);
print_output($templater->render());

?>


Next, I needed to create the MYCHATBOX template, Admin->Styles & Templates->Style Manager Click the drop_down and choose [Add New Template]
Title: MYCHATBOX
Template window you paste the below code. *Note the {vb:raw vsachatbox} between body clamps.

NEW STYLEVAR: "MYCHATBOX"
Code:
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
  <head>
    <title>{vb:raw vboptions.bbtitle} - {vb:raw pagetitle}</title>
    {vb:raw headinclude}
    {vb:raw headinclude_bottom}
  </head>
  <body>
{vb:raw vsachatbox}
  </body>
</html>

Now that I have the 'mod' created, I will now CALL this mod from an iframe from a StaticHTML Widget.
Go to Admin->vBulletin CMS->Widgets, scroll to the bottom and click on [create new widget]

For Widget type, choose [Static HTML]
For Title choose Chatbox (or anything you like), same thing with description... now click on [SAVE]

This will take you back to the list of Widgets, look on the right-hand-side of your newly created widget "Chatbox" and you will see a [configure] hyperlink, click on that.
This will open the physical code insertion dialogue.
See the code below for how I inserted my chatbox quasi-'mod' as an iframe.

Code:
STATIC HTML WIDGET:
<iframe src="./chattybox.php" name="frame1" scrolling="no" frameborder="no" height = "440"  width = "100%">
</iframe>

This is all well and good, we've created the page, the template that tells the page what to do and now a Widget that displays this page, VSA however has some display-type security as in you need to explicetly tell it which pages and templates it can display on, this is good for you and your server.
**Note if you don't change the Show ChatBox on pages/Templates, they will never display
Go to Admin->Settings->Options->VsaChatBox and click [EDIT]

The second option, which by default (i think) is set to [ index ]
[Show ChatBox on pages (comma separated THIS_SCRIPT locations)]
[Blank to show on all pages (not recommended because of server load)]
This option you want to modify by adding your newly create page to the list of display approved pages.
If you followed these instructions to the letter, then your options will change to:
Code:
index,chattybox
The third option, which approves the templates you want to add your newly created temaplte:
Code:
FORUMHOME,MYCHATBOX
LAST STEP - WOOHOOOOO !
Ok, so we've set everything up, display permissions and all, it's time to show that Widget on your CMS.
In my case, I did the following:

Admin-->vBulletin CMS-->Layout Manager
I wanted it on my "HOME" layout, so with EDIT remaining in the Drop_down, I clicked on [GO] button the on line associated with Home.

This shows the GRID layout of my HOME, with a list of my available widgets, one of which is the newly crated "Chatbox", I click that and then the [>] arrow to add it to the layout, then move it around to where I wanted it, lastly clicking on [SAVE]

THATS IT!

Loaded up the CMS home page and voila the Chatbox is there in all it's glory.

I hope this works for you too.

--The Duck
Reply With Quote
Благодарность от:
Niak_Judge
  #2705  
Old 04-03-2013, 06:00 PM
GamerPerfection's Avatar
GamerPerfection GamerPerfection is offline
 
Join Date: Feb 2006
Posts: 389
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone tell me why the chat box (and the VSa Advanced Forum Statistics) fails to load if I visit my site without the 'www'.

http://www.gamerperfection.com - both load fine (chat box is hidden to non-members)

http://gamerperfection.com - the content on both don't load.
Reply With Quote
  #2706  
Old 04-04-2013, 08:54 AM
Xcenovis Xcenovis is offline
 
Join Date: Jun 2012
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can we change the colour of the chatbox background ? from white to something different?
Reply With Quote
  #2707  
Old 04-04-2013, 09:11 AM
GamerPerfection's Avatar
GamerPerfection GamerPerfection is offline
 
Join Date: Feb 2006
Posts: 389
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xcenovis View Post
can we change the colour of the chatbox background ? from white to something different?
Yes via the style var : editor_background. However this may change other backgrounds too so double check when you do it.
Reply With Quote
  #2708  
Old 04-05-2013, 06:18 PM
FTG LIQUID CL FTG LIQUID CL is offline
 
Join Date: Jan 2012
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would there be away to add a pm notification to the chat box kinda like the new thread and post notification.Maybe this would be something to add to the vsa chat box add on. I know DBtech chat box has this feature but I like th VSa chat box much better.
Reply With Quote
  #2709  
Old 04-28-2013, 04:11 AM
Mysterious Ride's Avatar
Mysterious Ride Mysterious Ride is offline
 
Join Date: Feb 2008
Location: US
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way to get this chat to allow guest to post messages? I've checked the permission to make sure that it wan't denying the guest usergroup, and guest can see the chat, but still they can't post messages.
Reply With Quote
  #2710  
Old 04-30-2013, 09:32 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For all of you wanting the active users showing up on other places other than Full Chatbox, see this post, https://vborg.vbsupport.ru/showthread.php?t=297725
Reply With Quote
2 благодарности(ей) от:
Hippy, Mysterious Ride
  #2711  
Old 05-04-2013, 01:15 PM
Mysterious Ride's Avatar
Mysterious Ride Mysterious Ride is offline
 
Join Date: Feb 2008
Location: US
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I still need help, is there something I can change that will let guest post into the chat?
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 07:19 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.21499 seconds
  • Memory Usage 2,410KB
  • Queries Executed 28 (?)
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
  • (5)bbcode_code
  • (1)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
  • (4)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (41)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)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_postinfo_query
  • fetch_postinfo
  • 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