vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Chat Modifications - [AJAX] cChatBox (https://vborg.vbsupport.ru/showthread.php?t=169725)

christrato 02-04-2008 10:00 PM

[AJAX] cChatBox
 
cChatBox - AJAX-based ChatBox for vBulletin 3.6.8 & 3.7.x

by ChriStrato - vbulletin-italia.it




Features:
  • Enable / Disable ChatBox
  • Select if unregistred user can use or only show the chat.
  • Ban Usergroup/Users from AdminCP
  • Set Height of ChatBox
  • Set Name Of BOT
  • A BOT that answer when use a "action" or "command".
  • The Number of message to be displayed is not influenced by messages of BOT because some mess of bot are visualizable only by who have used the "action" or "command".
  • Command for users: /me /myip (show your ip, only you see) /stats (show statistics of chatbox)
  • System of "Action" for Admin or other usergroup that you set in AdminCP.
  • List of "Action": /help /topic /listaction /say /mute /unmute /lunarize /unlunarize /kennylize /unkennylize /removeactions /delmess /deleteall
  • Into AdminCP you can select the allowed action.
  • The Administrator by default can use the "Action"
  • A Topic that is displayed at right of title "cChatBox". Can set Topic via AdminCP or with Action /topic <message>
  • Select the Allowed BBCode into AdminCP.
  • Into AdminCP can select the usergroup can edit/delete all messages and if users can edit/delete their own message.
  • Can select if show the ChatBox on template FORUMDISPLAY (Forum List) or SHOWTHREAD (Thread List) and the Position.
  • Can Enable the Users List at right of ChatBox
  • Send Private Message from the menu of Users List.
  • Select if display (on Users List) all user logged or only who have write on ChatBox and set the Width.
  • Double Click on messages for display the Editor for Edit/Delete message.
  • Editor with image of the style: Bold, Italic, Underline, Color, Smilie, URL, IMG & Remove Text Formatting
  • vBMenu Popup for: Color, Smilie & Fonts.
  • Border of Editor image change color when select (highlight) / deselect (default).
  • Statistics of ChatBox is only visible by command "/statistics", show: Tot Mess, Your Mess & Top 5
  • Can delete all message (action: /deleteall) for clear chatbox or database and not lose statistics.
  • This "Action" affect the message of users: /mute (Mutes user) /lunarize (User talk funny) /kennylize (Message will be affected)
  • If you can use "Action" the /help command retrieve the list of "Action" allowed, else show you the list of command.
  • Can enable and insert a "Announce" and show it below chatbox.
  • Select various tag for the username.
  • The cChatBox is disponible in 2 language: English or Italian.
  • ChatBox and Users List are autorefresh
  • Select if use the class "smallfont" for the text of ChatBox
  • Preview of smilies into popup
  • ... and more ...
Installation:
  1. Download the file "product-cchatbox-1.4.1_eng.zip" if you use English language on your forum, if you use Italian language download the file "product-cchatbox-1.4.1_ita.zip".
  2. Upload file 'cchatbox.php', directory 'includes' and directory 'clientscript' into forum root.
  3. Import XML File: AdminCP -> Plugin System -> Manage Products -> Add / Import Product
  4. Go into: "AdminCP -> vBulletin Options -> cChatBox" and set options for the ChatBox.
Note:

This product is compatible with vbulletin 3.6.8 and 3.7.x.
I have tested only with this version of vbulletin.

I've write also a little tool for convert the statistics of VBSHOUT for the cChatBox! You can find in the directory: "not upload/tool_cchatbox.php".
Use of this tool: Upload file "tool_cchatbox.php" in the root directory of forum and start the script only if you have installed the product cChatBox.


ATTENTION:

If you update from the version 1.0 or 1.0.1 you must delete all messages with the command /deleteall, because in the new version the "userid" of BOT is different.


History:

v1.0 - (02/05/08)
First Public Release

v1.0.1 - (02/05/08)

Fix: Underline / Italic button
Fix: Add TABLE_PREFIX on a table of query for Users List

v1.1 - (02/12/08)
Fix: Output Date/Time for message visble only by who have write the message
Fix: Action: mute / lunarize / kennylize / topic
Fix: Message counter for statistics.
Add: Select if unregistred user can use or only show the chat.
Add: Usergroup/User that can use the "Action", although affected by them, they can use them.
Add: Send Private Message from the menu of Users List
Add: Show Button URL and IMG if select into admincp
Add: Select various tag for the username
Add: Can enable and insert a "Announce" and show it below chatbox.

v1.2 - (02/13/08)
Fix: Problems with a query of users list
Fix: Value of "Messages Time Limit (in hour) for Users List" options. Now can select 1 and the users list work.
Add: Can select if use the class "smallfont" for the chatbox.
Add: Can set the number / row of smilies into popup from the admincp.
Add: Preview of smilie when mouse is over the smilie.

v1.3 - (02/18/08)
Add: Expire time for this actions: mute, lunarize, kennylize.
Add: Checkbox for select the usergroup into admincp.
Add: Check if user is invisible and not show into users list. Are visible only by usergroup can see hidden users.
Add: Can select the position (up or down) of editor toolbar.
Add: Set the refresh time of ChatBox and Users List
Add: ONLY FOR 3.7.x VERSION: Can add friend from Users List menu.
Add: ONLY FOR 3.7.x VERSION: Show "+" after username into Users List if the user is a friend.

v1.3.1 - (02/18/08)
Add: 5 and 15 minutes for expire time of actions
Fix: Now can see the Toolbar for FORUMDISPLAY and SHOWTHREAD templates

v1.4 - (03/12/08)
Fix: Problem with users list when use the action "/say".
Fix: Query for show users list.
Mod: Modified the principal template "cchatbox".
Add: Hook system.
Add: Javascript engine.


v1.4.1 - (08/16/08)
Fix: Query for show users list for the "All Online User" option.
Fix: Select of colour.
Fix: SQL Injection problem.


v1.5 - (08/28/08)
Fix: Friend Request via "User List".
Add: Update Session when write a message.
Add: Set min posts for use the cChatBox




Thanks to:


Enzo and all community of vbulletin-italia.it that they have supported to me for this project.



Click INSTALL if you use this product TNX

christrato 02-05-2008 05:18 PM

More Screenshot...

Simasher 02-05-2008 05:34 PM

hmm...
it's like beatiful ;) i try my chance :p

OmekaTeam 02-05-2008 05:57 PM

Hello

Very, very nice.

Audentio 02-05-2008 07:26 PM

Woa, thats advanced stuff :D. Niiice.

projectego 02-05-2008 07:53 PM

[high]* projectego clicks install :)[/high]

Jezlad 02-05-2008 08:09 PM

Tested this.

Looks awesome thanks alot!

Extreme24 02-05-2008 08:26 PM

Does this autorefresh?

rinkrat 02-05-2008 09:41 PM

This is very cool, I love the Kennylize etc. Great stuff!

hilfe-forum 02-05-2008 09:52 PM

reali cool ;)
How can i cange that unregistered user can use the Chat

SwollenCranium 02-06-2008 01:09 AM

No Admin mass delete option ?

No archive ?

christrato 02-06-2008 05:37 AM

Quote:

Originally Posted by hilfe-forum (Post 1437046)
reali cool ;)
How can i cange that unregistered user can use the Chat

i add this options on next version.

Quote:

Originally Posted by SwollenCranium (Post 1437132)
No Admin mass delete option ?

No archive ?

for delete all messages you can use the command: /deleteall

for the archive.. is coming soon..!

Quote:

Originally Posted by Extreme24 (Post 1436988)
Does this autorefresh?

yes is autorefresh! chatbox and userlist.


Now i work for version 1.0.2 where add the option "send private message" in menu when click on user on users list, and fix some problem.


bye bye

mktrilogy 02-06-2008 11:03 AM

how does this compare with other shout or chatbox in terms of queries? the other chatbox i use killed my bandwidth.

Fearlessninja 02-06-2008 04:45 PM

whoa, looks really nice =)

Magnumutz 02-06-2008 05:22 PM

Very nice but this would fit nice ONLY below the forums... just above the footer.

darksoulz 02-07-2008 01:39 AM

nice little system, it's already a hit on our board. One feature request though... can you make it check for actions/commands before applying them? I kennylized myself playing around and had to get someone else to undo it because it wouldn't recognize the command.

christrato 02-07-2008 05:29 AM

Quote:

Originally Posted by darksoulz (Post 1437806)
nice little system, it's already a hit on our board. One feature request though... can you make it check for actions/commands before applying them? I kennylized myself playing around and had to get someone else to undo it because it wouldn't recognize the command.

eheeh if you kennylized yourself you are crazy lol ok... if you are kennylized / lunarize / mute and can use action, if use action for unmute / unlunarize / unkennylized this action work. i make this on next version ;)

and add the expire time for the action.

nutnut 02-08-2008 01:33 AM

This is great, thanks!

Have you considered optional alerts in the chat when posts are made in the forum? This was a feature in a previous chatbox and I loved it so I didn't have to refresh the page.

christrato 02-08-2008 05:24 AM

Quote:

Originally Posted by nutnut (Post 1438604)
This is great, thanks!

Have you considered optional alerts in the chat when posts are made in the forum? This was a feature in a previous chatbox and I loved it so I didn't have to refresh the page.

tnx man!

but in a forum with a huge post/user ? i think is a good idea.. but i think to make a extra field into "NEW THREAD" and if you check this field the title of this thread appear into chatbox. ok?

nutnut 02-09-2008 04:52 AM

Sounds good!

Namaless 02-10-2008 08:37 AM

View into line 110, I have edited musername system.
Use this example for get username style:
PHP Code:

    function tagusername($userid$username)
    {
        global 
$db$vbulletin;

        
$tagusername $db->query_first("SELECT * FROM " TABLE_PREFIX "user WHERE userid = $userid;");

        if (
$tagusername['username'] == $username)
        {
            
//$tag['opentag'] = $vbulletin->usergroupcache[$tagusername['usergroupid']]['opentag'];
            //$tag['closetag'] = $vbulletin->usergroupcache[$tagusername['usergroupid']]['closetag'];

            //return $tag['opentag'] . $tagusername['username'] . $tag['closetag'];
            
return fetch_musername($tagusername);

        }
        else
        {
            return 
$username;
        }
    } 

To me works perfectly :)

jerrygad 02-10-2008 08:51 AM

This is great, but it would be nice if admin have priv. to delete certain message (unpleasant message, I mean).

Namaless 02-10-2008 08:56 AM

For cache templates use the attachment.

soniceffect 02-10-2008 07:17 PM

Some excellent work ya put in here m8. Dunno about anyone else, but the only thing that would stop me using this over the Evo one, is the fact that ya can have more than one channel in Evo..

Love the IRC type ideas implemented I gotta say :)

christrato 02-12-2008 06:35 AM

tnx namaless for musername and cache templates!

Namaless 02-12-2008 07:00 AM

Quote:

Originally Posted by christrato (Post 1441287)
tnx namaless for musername and cache templates!

Di niente.. se trovo altri problemi te lo dico :)


No problem, if found another problem, take to you my solution :)

Namaless 02-12-2008 07:04 AM

Sorry, but into Time Variables is possible to get with span class="time"??

Thanks :)

trance nation 02-12-2008 08:06 AM

It made some of my forum text red >.< - sorted

When i enable the online suer list i get a mysql error

Database error in vBulletin 3.7.0 Beta 4:

Invalid SQL:

(SELECT DISTINCT user.username AS username,user.userid,session.userid,user.options AS options,cchatbox.username AS cchatusername
FROM vb_cchatbox_message AS cchatbox
LEFT JOIN vb_user AS user USING (userid)
LEFT JOIN vb_session AS session USING (userid)
WHERE session.lastactivity > 1202809562 AND cchatbox.userid = user.userid AND cchatbox.time > 1202810462 - (0*3600)
ORDER BY cchatusername ASC)
UNION DISTINCT
(SELECT DISTINCT user.username AS username,user.userid,session.userid,user.options AS options,cchatbox.username AS cchatusername
FROM vb_session AS session
LEFT JOIN vb_user AS user USING (userid)
LEFT JOIN cchatbox_message AS cchatbox USING (userid)
WHERE session.lastactivity > 1202809562 AND user.userid = session.userid
ORDER BY username ASC);;

MySQL Error : Table 'servermax5.cchatbox_message' doesn't exist
Error Number : 1146
Date : Tuesday, February 12th 2008 @ 10:01:02 AM
Script : http://www.xevolution.co.uk/cchatbox.php?do=userlist
Referrer : http://www.xevolution.co.uk/index.php
IP Address :******
Username : *****
Classname : vB_Database
MySQL Version : 5.0.22

I did put my prefixes as vb_ maybe thats why?

FassoL 02-12-2008 09:14 AM

That is a great job, thank you :)

Can You Plese Make it (right to left) ?
<<< my forum is arabic

asj 02-12-2008 09:31 AM

Woa, thats advanced stuff

christrato 02-12-2008 01:28 PM

Quote:

Originally Posted by trance nation (Post 1441309)
It made some of my forum text red >.< - sorted

When i enable the online suer list i get a mysql error

Database error in vBulletin 3.7.0 Beta 4:

Invalid SQL:

(SELECT DISTINCT user.username AS username,user.userid,session.userid,user.options AS options,cchatbox.username AS cchatusername
FROM vb_cchatbox_message AS cchatbox
LEFT JOIN vb_user AS user USING (userid)
LEFT JOIN vb_session AS session USING (userid)
WHERE session.lastactivity > 1202809562 AND cchatbox.userid = user.userid AND cchatbox.time > 1202810462 - (0*3600)
ORDER BY cchatusername ASC)
UNION DISTINCT
(SELECT DISTINCT user.username AS username,user.userid,session.userid,user.options AS options,cchatbox.username AS cchatusername
FROM vb_session AS session
LEFT JOIN vb_user AS user USING (userid)
LEFT JOIN cchatbox_message AS cchatbox USING (userid)
WHERE session.lastactivity > 1202809562 AND user.userid = session.userid
ORDER BY username ASC);;

MySQL Error : Table 'servermax5.cchatbox_message' doesn't exist
Error Number : 1146
Date : Tuesday, February 12th 2008 @ 10:01:02 AM
Script : http://www.xevolution.co.uk/cchatbox.php?do=userlist
Referrer : http://www.xevolution.co.uk/index.php
IP Address :******
Username : *****
Classname : vB_Database
MySQL Version : 5.0.22

I did put my prefixes as vb_ maybe thats why?


I correct this problem, but it seems to me wrong.

Go to line: 284 and substitute this code into file "functions_cchatbox.php":

PHP Code:

            LEFT JOIN cchatbox_message AS cchatbox USING (userid

with:

PHP Code:

            LEFT JOIN " . TABLE_PREFIX . "cchatbox_message AS cchatbox USING (userid

bye and excuse me :(

trance nation 02-12-2008 02:10 PM

What file am i looking at?

Namaless 02-12-2008 02:15 PM

Another fix (I have fixed in old version, but with new version you have recreate bug).

For fetch_musername require all user informations. THis is fixed function:
PHP Code:

    function tagusername($userid$username)
     {
        global 
$db$vbulletin;
        
         
$tagusername $db->query_first("SELECT * FROM " TABLE_PREFIX "user WHERE userid = $userid;");
        
         if (
$tagusername['username'] == $username) {
            
             return 
fetch_musername($tagusername);
            
             } else {
            
            return 
$username;
            
             } 
        
        } 

Get this :)

Bye !

trance nation 02-12-2008 02:17 PM

I hate being new, How do i add that :p

christrato 02-12-2008 04:54 PM

Quote:

Originally Posted by Namaless (Post 1441476)
Another fix (I have fixed in old version, but with new version you have recreate bug).

For fetch_musername require all user informations. THis is fixed function:
PHP Code:

    function tagusername($userid$username)
     {
        global 
$db$vbulletin;
        
         
$tagusername $db->query_first("SELECT * FROM " TABLE_PREFIX "user WHERE userid = $userid;");
        
         if (
$tagusername['username'] == $username) {
            
             return 
fetch_musername($tagusername);
            
             } else {
            
            return 
$username;
            
             } 
        
        } 

Get this :)

Bye !


are you sure that this function require all informations???

works with only usegroupid and username.

if you see the functions inside the file functions.php you can see that this functions require only "username" and "usergroupid".

bye

trance nation 02-13-2008 08:17 AM

Password on the rar, Help?

christrato 02-13-2008 08:28 AM

opssssssssssssss! excuse me! i have zipped file with password for error :( now have reupload the file with no password. excuse me :(

trance nation 02-13-2008 08:31 AM

Thanks, Amazing work!

Fearlessninja 02-13-2008 06:38 PM

I suggest a way to give bots custom commands =) with custom answers/responses. That will make this make awesome!

christrato 02-13-2008 07:43 PM

Quote:

Originally Posted by Fearlessninja (Post 1442419)
I suggest a way to give bots custom commands =) with custom answers/responses. That will make this make awesome!

you can custom the answers / response from the admincp -> language & phrases -> search phrases

for the custom commands... i think in future ;)


All times are GMT. The time now is 06:04 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01570 seconds
  • Memory Usage 1,860KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete