vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Chat Modifications - MGC Chatbox (with AJAX) (https://vborg.vbsupport.ru/showthread.php?t=148472)

RockMTP 11-28-2007 10:02 PM

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

VBDev 11-29-2007 04:16 AM

Quote:

Originally Posted by RockMTP (Post 1391327)
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 :)

RockMTP 11-29-2007 10:10 AM

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.

:)

VBDev 11-29-2007 10:35 AM

Ok but have you been to your usercp in to modify your options concerning the chatbox ?

RockMTP 11-29-2007 01:06 PM

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

adnedarn 11-29-2007 06:33 PM

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

powerbook 11-29-2007 06:45 PM

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 (Post 1377905)
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 :)


Semobid 11-29-2007 07:46 PM

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

RCWorld 11-29-2007 10:49 PM

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!!

VBDev 11-30-2007 04:24 AM

Quote:

Originally Posted by powerbook (Post 1391855)
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 (Post 1391891)
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 (Post 1391996)
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 ?


All times are GMT. The time now is 01:29 PM.

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.02387 seconds
  • Memory Usage 1,759KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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