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

Reply
 
Thread Tools
MGC Chatbox (with AJAX) Details »»
MGC Chatbox (with AJAX)
Version: 1.5, by VBDev VBDev is offline
Developer Last Online: Dec 2021 Show Printable Version Email this Page

Category: Chat Modifications - Version: 3.6.9 Rating:
Released: 05-29-2007 Last Update: 09-19-2007 Installs: 764
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

Last version - MGC Chatbox Evo available : here

Description

When I had left the vBulletin world, I was in the past the co-author of a little chatbox (shoutbox), very well known in the vBulletin world.
This chatbox had been developed by Svaliotti (known as Poseidon on vb.org) for vB2 in the past and I had made the porterage (with is authorisation as we were both members of the same french non-official support forum) and the improvement for vB3.

It is thus normal that in my return in the vBulletin world, I begin by getting down to this hack. Even if several versions of chatbox are already present in the vBulletin world, I said to myself that it would be a good thing to make a made in France.

Naturally, I don't deal with a "copy" version of the other chatbox, I have any coded at the beginning (it was preferable because the front code wasn't so clean any more), and I integrated a good quantity of very interesting features.

New version features

The new version contains all the features from the previous version. Description of these versions can be found in Sofia's post hereabove (https://vborg.vbsupport.ru/showpost.php?p=1257510&postcount=3).

Modifications from previous version are the following :
  • 1.5 :
    • Fixed bugs :
      • Chatbox is shown two times in full page mode when the Display on all pages under the navbar option is selected.
      • "Fermer" is not in a sentence.
      • Overflow problem with Netscape.
      • Uppercase transformed to lowercase in the PM channel.
      • The ban cron debans user indefinitly banned.
      • Chatbox continuously loading on some forums.
      • Inactivity and guests problem.
      • Team icon blinking is not working properly.
      • Coma error in the who is online.
      • 2 spaces instead of one between the date and the time.
    • New functionnalities :
      • Option to deactivate the random smilies.
      • Option to deactivate the automatic PM sending when banning a user.
      • New permission to allow or not the downloading of shouts.
      • Option to specify the name under which unregistered users shouts appear.
      • Syntax change for the /ban, /ignore, /del, /pm commands : Possibility to use them with the username or the userid (For more information about the new syntax, check the help button in the chatbox).
    • Removed functionnalities :
This hack is very light in term of queries : only one for every recharging / refreshment of the chatbox and 5 for the statistics in the load of the page if you actiate them. If you don't activate advanced options of course as stated aside each in the acp

Installation

Read the file "Installation" in the pack.

Once the installation is ended, go in usergroups and edit permissions to see the Chatbox.

By default, no group has access to the chatbox.

Screenshots

The screenshots are in french as I have made it on an online website which is in french. Don't hesitate to give me new one if you want in english

They are up to date of 1.3 version.

See the following post : https://vborg.vbsupport.ru/showpost.php?p=1292136&postcount=559

User manual

Coming soon ...

Copyright

This hack is under copyright MGC (Mtor&Grog Corporation) 2007-forever and was developed for vBulletin-Resources.com & vb-hacks.org. Its redistribution on another forum that vbulletin-ressources.com, vb-hacks.org or vbulletin.org are prohibited without aggreement of the authors!

Evolutions and improvements

This sixth version of the chatbox is already very complete, but like each product, its evolution depends on all. Then don't hesitate especially to share your ideas of improvements so that we can improve even more this chatbox.

Languages

Actually available :
  1. French
  2. English
  3. Arabic [Translator : alessai]
  4. German [Translator : captainslater]
  5. Vietnamese [Translator : Anhyeu12000]
  6. Turkish [Translator : neutralizer and bocek]
  7. Spanish [Translator : obmob] [TO BE UPDATED FOR 1.5]
To be available [Translation in progress] :
  1. Bosnian [Translator : Benjaminbih]
[FONT='Calibri','sans-serif']For the translators : phrases with version number 1.5 in the English language file are the one that have been modified or added in the new version so you should probably find the modification for your language file easily.[/font]

Contact me if you want to participate and add your own country language file

Support

Several possible problems are explained in the file "Read Me"
Chatbox in iBProarcade and vBadvanced CMPS

See the readme file for iBProarcade.

For vbadvanced, a module is available here : https://vborg.vbsupport.ru/showthread.php?t=163628.

FAQ

Q: I installed the chatbox but it doesn't display
R: Check if you have allowed users (permissions in usergroups)

Q: I see shouts but in the collapsed chatbox
R: You can specify number of shouts in the collapsed chatbox. If you don't want to see it, put "0" for this option.

Q: The chatbox doesn't display below or in the top of one of the pages while in the other position it displays
R: You use a style and it's possible that variables used in templates aren't present. (Read the file "Read Me")

Q: I have a problem with accents in the Chatbox
R: Read the file "Read Me"

Q: How to change the value of color for date and for command /me?
R: When you add additionnal CSS for each style, you can change color in class CSS.

Thanks to Sofia for her earlier help on the chatbox.

You can donate if you want to show your support

Last version - MGC Chatbox Evo available : here

Show Your Support

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

Comments
  #2102  
Old 01-10-2008, 07:28 AM
lordtopcat lordtopcat is offline
 
Join Date: Oct 2004
Location: New Zealand
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there,

I was wondering, if there was any way I could gain the IP address of a guest? This guest continually spams our shout box with rude comments...and pages of them. For now we have disabled guests posting all together, but we only want this to be temporary as this is a form of contact for our guests, as we don't allow them to post in the forum.

Thanks
LTC
Reply With Quote
  #2103  
Old 01-10-2008, 07:45 AM
VBDev's Avatar
VBDev VBDev is offline
 
Join Date: Jan 2004
Location: France
Posts: 2,570
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by physiart View Post
That's exactly what I was trying to check out. I'm not sure about that, 'cause I can't verify the results (i.e. the hourly cleanup what cleans up?). Anyway, clicking on "Run now" old shouts should be removed immediately, but they don't. I don't know if it's relative that my host server runs in safe mode.
BTW, when checking the Scheduled Task Log Viewer it displays allright the actions (Old messages of MGC Chatbox removed), but old shouts are still there.

Maybe, but it's not really a problem, rather than annoying. I won't give it further thinking, until any of my users notice it.
Have you tested on a local test forum with the same parameters for the scheduled tasks ?

Quote:
Originally Posted by lordtopcat View Post
Hi there,

I was wondering, if there was any way I could gain the IP address of a guest? This guest continually spams our shout box with rude comments...and pages of them. For now we have disabled guests posting all together, but we only want this to be temporary as this is a form of contact for our guests, as we don't allow them to post in the forum.

Thanks
LTC
This requires some modification coding, unless you have those skills I can't be of any help for the moment, I'm sorry.

Basically you'd need to add a field in the mgc_chatbox sql table to log ip, and modify the request that insert a shout in the database (in the mgc_chatbox.php file).
Reply With Quote
  #2104  
Old 01-10-2008, 12:42 PM
yeku yeku is offline
 
Join Date: May 2005
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by VBDev

This is a known bug.

Open the mgc_chatbox.php file and search for :

PHP Code:
$pagenav construct_page_nav($pagenumber$perpage$getnb_chats['nb_chats'],
        
$vbulletin->options['bburl'] . '/mgc_chatbox.php?' $vbulletin->session->vars['sessionurl'] . 'do=view_archive'); 
Replace it by :

PHP Code:
$pagenav construct_page_nav($pagenumber$perpage$getnb_chats['nb_chats'],
        
$vbulletin->options['bburl'] . '/mgc_chatbox.php?' $vbulletin->session->vars['sessionurl'] . 'do=view_archive&what=' $what); 
Once the change was done but do not work, follow the same error

Please enter my forum....VBDev

user= User100
Pass= myforum

Axarquiarturismo.com
Reply With Quote
  #2105  
Old 01-10-2008, 05:12 PM
firstrebel's Avatar
firstrebel firstrebel is offline
 
Join Date: Dec 2005
Location: West London
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by VBDev View Post
Originally Posted by firstrebel
I followed the install instructions exactly. I tried displaying at top and bottom, Same problem - 2 chatboxes.

Bob
And in the showthread or forumdisplay pages ?
Reinstalled and OK. Now working OK on live forum. Great job. Thanks.

Maybe a means of limiting image size in shouts for future release?

Bob
Reply With Quote
  #2106  
Old 01-11-2008, 02:25 AM
yashua yashua is offline
 
Join Date: Apr 2007
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When ever I type /ban somones name it says user does not exist and when I do /pm somones name it says I don't have permission
Reply With Quote
  #2107  
Old 01-11-2008, 02:53 AM
bhanuprasad1981 bhanuprasad1981 is offline
 
Join Date: Apr 2007
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i tried to install ,uploaded files imported language ,but when i try to set user permissions its giving me sql error as follows:-
Code:
Database error in vBulletin 3.6.8:

Invalid SQL:
UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
	`title` = 'Registered Users',
	`description` = '',
	`usertitle` = '',
	`opentag` = '',
	`closetag` = '',
	`passwordexpires` = '0',
	`passwordhistory` = '0',
	`mgccustomusergroupperms` = '261',
	`nbmsgshowchatbox` = '5',
	`trgpermissions` = '0',
	`forumpermissions` = '782847',
	`genericpermissions` = '505943751',
	`attachlimit` = '0',
	`pmquota` = '50',
	`pmpermissions` = '3',
	`pmsendmax` = '5',
	`calendarpermissions` = '63',
	`wolpermissions` = '1',
	`adminpermissions` = '0',
	`genericoptions` = '62',
	`profilepicmaxwidth` = '100',
	`profilepicmaxheight` = '100',
	`profilepicmaxsize` = '65535',
	`avatarmaxwidth` = '100',
	`avatarmaxheight` = '100',
	`avatarmaxsize` = '20000',
	`signaturepermissions` = '235519',
	`sigpicmaxwidth` = '500',
	`sigpicmaxheight` = '100',
	`sigpicmaxsize` = '10000',
	`sigmaxrawchars` = '1000',
	`sigmaxchars` = '500',
	`sigmaxlines` = '0',
	`sigmaxsizebbcode` = '7',
	`sigmaximages` = '4'
WHERE usergroupid=2;

MySQL Error  : Unknown column 'mgccustomusergroupperms' in 'field list'
Error Number : 1054
Date         : Thursday, January 10th 2008 @ 08:52:10 PM
Script       : http://www.xxxxxxx.org/admincp/usergroup.php?do=update
Referrer     : http://www.xxxxxxx.org/admincp/usergroup.php?do=edit&usergroupid=2
IP Address   : xx.xx.xx.xxx
Username     : xxxxx
Classname    : vB_Database
Reply With Quote
  #2108  
Old 01-11-2008, 04:29 AM
BigDog56 BigDog56 is offline
 
Join Date: Jan 2007
Posts: 430
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lordtopcat View Post
Hi there,

I was wondering, if there was any way I could gain the IP address of a guest? This guest continually spams our shout box with rude comments...and pages of them. For now we have disabled guests posting all together, but we only want this to be temporary as this is a form of contact for our guests, as we don't allow them to post in the forum.

Thanks
LTC
I installed a site meter in the footer of our forum. It logs every IP, time and pages viewed. Match up the times and you should be able to figure out who it is. It's at the bottom of every page, including our cover page. Click on it, and it will give you instructions on how to use it. It's free.
Reply With Quote
  #2109  
Old 01-11-2008, 05:18 AM
VBDev's Avatar
VBDev VBDev is offline
 
Join Date: Jan 2004
Location: France
Posts: 2,570
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yeku View Post
Once the change was done but do not work, follow the same error

Please enter my forum....VBDev

user= User100
Pass= myforum

Axarquiarturismo.com
As a registered user I only have access to the first channel and can't use the chatbox (just can see it).

What's strange is that the link when clicking to see archives redirect to the index again is that the problem ? If yes then its a vbulletin misconfiguration you made.

You shouldn't have left the index.php in the url in your options.

Quote:
Originally Posted by firstrebel View Post
Reinstalled and OK. Now working OK on live forum. Great job. Thanks.

Maybe a means of limiting image size in shouts for future release?

Bob
[high]* VBDev is not accepting new features please [/high]

I want to finish the version with the things I have planned so for the moment my requests acceptance list is closed and loggin nothing lol but feel free to ask me again once the new one will be release.

Quote:
Originally Posted by yashua View Post
When ever I type /ban somones name it says user does not exist and when I do /pm somones name it says I don't have permission
The syntax is not /ban username or /pm username your_message.

It's more complicated than that, please check the help in the chatbox, it describes exactly those commands syntaxes.

Quote:
Originally Posted by bhanuprasad1981 View Post
i tried to install ,uploaded files imported language ,but when i try to set user permissions its giving me sql error as follows:-
Code:
Database error in vBulletin 3.6.8:
 
Invalid SQL:
UPDATE usergroup SET
 
### UPDATE QUERY GENERATED BY fetch_query_sql() ###
    `title` = 'Registered Users',
    `description` = '',
    `usertitle` = '',
    `opentag` = '',
    `closetag` = '',
    `passwordexpires` = '0',
    `passwordhistory` = '0',
    `mgccustomusergroupperms` = '261',
    `nbmsgshowchatbox` = '5',
    `trgpermissions` = '0',
    `forumpermissions` = '782847',
    `genericpermissions` = '505943751',
    `attachlimit` = '0',
    `pmquota` = '50',
    `pmpermissions` = '3',
    `pmsendmax` = '5',
    `calendarpermissions` = '63',
    `wolpermissions` = '1',
    `adminpermissions` = '0',
    `genericoptions` = '62',
    `profilepicmaxwidth` = '100',
    `profilepicmaxheight` = '100',
    `profilepicmaxsize` = '65535',
    `avatarmaxwidth` = '100',
    `avatarmaxheight` = '100',
    `avatarmaxsize` = '20000',
    `signaturepermissions` = '235519',
    `sigpicmaxwidth` = '500',
    `sigpicmaxheight` = '100',
    `sigpicmaxsize` = '10000',
    `sigmaxrawchars` = '1000',
    `sigmaxchars` = '500',
    `sigmaxlines` = '0',
    `sigmaxsizebbcode` = '7',
    `sigmaximages` = '4'
WHERE usergroupid=2;
 
MySQL Error  : Unknown column 'mgccustomusergroupperms' in 'field list'
Error Number : 1054
Date         : Thursday, January 10th 2008 @ 08:52:10 PM
Script       : http://www.xxxxxxx.org/admincp/usergroup.php?do=update
Referrer     : http://www.xxxxxxx.org/admincp/usergroup.php?do=edit&usergroupid=2
IP Address   : xx.xx.xx.xxx
Username     : xxxxx
Classname    : vB_Database
You haven't uploaded the two products of the archive
Reply With Quote
  #2110  
Old 01-11-2008, 07:15 AM
abroad abroad is offline
 
Join Date: Mar 2007
Posts: 231
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have vb 3.7.0 Beta 3 and when I go to my forum the chat appears but it doesnt stop loading...see attachment
Reply With Quote
  #2111  
Old 01-11-2008, 08:25 AM
VBDev's Avatar
VBDev VBDev is offline
 
Join Date: Jan 2004
Location: France
Posts: 2,570
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you uploaded the files in the clientscript directory ?
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 12:55 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.07478 seconds
  • Memory Usage 2,366KB
  • 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
  • (2)bbcode_php
  • (9)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
  • (4)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