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
  #1912  
Old 11-28-2007, 10:02 PM
RockMTP RockMTP is offline
 
Join Date: Sep 2006
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for your help, got it working.

One thing i would like to suggest (not sure if its been said before) is that if users select a new font and colour it then stays as their default.

Can't wait for the new version now!

Thanks
Reply With Quote
  #1913  
Old 11-29-2007, 04:16 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 RockMTP View Post
Thank you for your help, got it working.

One thing i would like to suggest (not sure if its been said before) is that if users select a new font and colour it then stays as their default.

Can't wait for the new version now!

Thanks
This is already done but through the user cp.

If you have done the modification to the modifyoptions template (which is mandatory) users should be able to select their default color/fonts/face for the chatbox
Reply With Quote
  #1914  
Old 11-29-2007, 10:10 AM
RockMTP RockMTP is offline
 
Join Date: Sep 2006
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi VBDev,

Thanks for your quick replies!

I did make the template changes but when i change the font/colour i get the bb code in the text box which i type my message between:

[f0nt=Book Antiqua][col0r=#FF0000]Text Here[/color][/font]

If you want to change the font / colour you have to select them for every message.

Reply With Quote
  #1915  
Old 11-29-2007, 10:35 AM
VBDev's Avatar
VBDev VBDev is offline
 
Join Date: Jan 2004
Location: France
Posts: 2,570
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok but have you been to your usercp in to modify your options concerning the chatbox ?
Reply With Quote
  #1916  
Old 11-29-2007, 01:06 PM
RockMTP RockMTP is offline
 
Join Date: Sep 2006
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I changed a few settings but no change.

Sorry, i don't mean to bug you over something so small...I'll play around with it and try and figure it out. Its not the end of the world after all!

Still a great addition....Thanks
Reply With Quote
  #1917  
Old 11-29-2007, 06:33 PM
adnedarn adnedarn is offline
 
Join Date: Jan 2007
Location: Tucson, Arizona
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

RockMTP- I think you're not looking in the right place? Go into your own User CP then under Edit Options. There you'll see options to be invisible or thread display options... scroll down till you see something like in the screen shot I provide. Set up the font/color you want there and it will be "yours" for all your posts in the shout box. hope that helps.
Andrew
Reply With Quote
  #1918  
Old 11-29-2007, 06:45 PM
powerbook's Avatar
powerbook powerbook is offline
 
Join Date: Jul 2006
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

Finally got some time to try and enable the posting rule. I got it to work and like you pointed out actually quite simple but the only thing I don't know or understand how to do is to enable a message in the shoutbox area (when disabled) telling the member why it is disabled "You can only use the shoutbox bla bla bla".

Should I add a phrase for that and call it from a new template?

Many Thanks


Quote:
Originally Posted by VBDev View Post
Basically what you have to do is edit the chatbox plugin attached to the global hook.

In this hook, you'll find a global condition to check if the chatbox is active ($vboptions[mgc_chatbox] or kinda, I don't have the code beyond the eyes so don't remember the exact one).

Before the content in the condition, you have to add an sql query to count the messages since the last 24 hours (dynamic count):

Code:
$getcount = $vbulletin->db->query_first("SELECT COUNT(postid) AS nb_posts FROM " . TABLE_PREFIX . "post WHERE userid='" . $vbulletin->userinfo['userid'] . "' AND dateline > '" . ( TIMENOW - 86400 ) . "'");
The query is not tested so you should verify before that the postid and dateline fields are the good one in the post table (for the postid I am pretty sure but not for the dateline).

Then you have to put all the actual part of the condition in a second condition :
Code:
if ($getcount['nb_posts'] > 10) {
/* Put the actual content of the condition here */
}
Where 10 is the number of posts per day you require before using the chatbox.

Of course this a homemade and hardcoded modification so you could also replace the 10 value by the one you want or even better, create a new option in the chatbox group (possible by activating the debug mode) to do just the same thing but giving easier access to modify it

Feel free to ask for any help if you encounter problems ! And give me back the final code so that I could use it in the versions following the v2.0.



I suppose you have done the mandatory modification to the modifyoptions template so you just have to go in your usercp and then you'll see chatbox options for that purpose
Reply With Quote
  #1919  
Old 11-29-2007, 07:46 PM
Semobid Semobid is offline
 
Join Date: Sep 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I upgraded to the newest version and I am still having problems. It is continuously loading, and the chatbox's width is exceeding the width of my forum. Any ideas?

I made a username that you can use to login to see what it is doing.

The forum is located at
PHP Code:
www.semobid.com/VB 
username:tester1
password: password
Reply With Quote
  #1920  
Old 11-29-2007, 10:49 PM
RCWorld RCWorld is offline
 
Join Date: Nov 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My chatbox appears on page well, but is locked up and continues to read "Loading..."
I have seen some have been helped with this problem, but I did not see the fix has been posted.

Also the archive link, link buttons and chatbox navbar dropdown links (see att.):

view_archive&page=1, view_chatbox & showaide

Must not point to the correct page, as they open to a "cannot find" page.

I have been through all of my server side files multiple times, checked and rechecked templates, reloaded Js files, and reinstalled products - all to no avail.

vB v3.6.8
Chatbox v1.5

HELP!!
Reply With Quote
  #1921  
Old 11-30-2007, 04:24 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 powerbook View Post
Hi,

Finally got some time to try and enable the posting rule. I got it to work and like you pointed out actually quite simple but the only thing I don't know or understand how to do is to enable a message in the shoutbox area (when disabled) telling the member why it is disabled "You can only use the shoutbox bla bla bla".

Should I add a phrase for that and call it from a new template?

Many Thanks
With what I pointed out, the chatbox won't show, am I right ?

Then I think you should have to create new mgc_chatbox template with only the table header and the phrase as content, calling it mgc_chatbox_lack_posts for example.

You'll have to edit:
  • both the 3 hooks regarding the display on the forumhome, forumdisplay and showthread
  • the mgc_chatbox.php file for the full mode display
  • the condition you have added by putting a else to manage the display in case of show on all pages under the navbar or in a variable
In order to display the mgc_chatbox_lack_posts template instead of the mgc_chatbox template when the user has not done enough posts.

Do you think you can handle that?

Quote:
Originally Posted by Semobid View Post
I upgraded to the newest version and I am still having problems. It is continuously loading, and the chatbox's width is exceeding the width of my forum. Any ideas?

I made a username that you can use to login to see what it is doing.

The forum is located at
PHP Code:
www.semobid.com/VB 
username:tester1
password: password
I have had a look, that's strange there are no javascript errors.

Do you have reverted all the templates of the chatbox before/after the upgrade in case you modified something ?

All uploaded files are the one ?

By the way, you have done the modification in the navbar template wrong as I have been able to infer from your link

Quote:
Originally Posted by RCWorld View Post
My chatbox appears on page well, but is locked up and continues to read "Loading..."
I have seen some have been helped with this problem, but I did not see the fix has been posted.

Also the archive link, link buttons and chatbox navbar dropdown links (see att.):

view_archive&page=1, view_chatbox & showaide

Must not point to the correct page, as they open to a "cannot find" page.

I have been through all of my server side files multiple times, checked and rechecked templates, reloaded Js files, and reinstalled products - all to no avail.

vB v3.6.8
Chatbox v1.5

HELP!!
With the new version, this should have been fixed when displayed on the forum.

Can you bring me a link of your forum or sending me by pm if you want to keep it private please so that I could perhaps point out what is wrong with your configuration ?
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:54 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.05449 seconds
  • Memory Usage 2,348KB
  • 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
  • (5)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