vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Chat Modifications - MGC Chatbox Evo (https://vborg.vbsupport.ru/showthread.php?t=168992)

VBDev 09-03-2008 01:54 PM

Quote:

Originally Posted by reitube (Post 1613477)
The chat would be used as a little shoutbox (or greeting box whatsoever).
I give an example as attachment.

First line: Username (the X means Mods can delete this item)
second line: Date and time
following lines: Message itself

Best Reagrds,

I see what you mean but that option would affect the chatbox display on all pages. Which is not very beautiful on the forumhome page for example.

Angel-Wings 09-04-2008 03:07 AM

Installed :)

Just - I've reworked some JS / IF conditions like:

Quote:

<if condition="!empty($autocompletion_js)">
function mgc_cb_evo_autocomplete()
{
$("#mgc_cb_evo_input").autocomplete([$autocompletion_js]);
}
$(document).ready(function(){
mgc_cb_evo_autocomplete();
}
);</if>
Before the "IF" condition was inside the function and so created an empty JS function used for nothing.
Also about the Collapse / Show mode:

Quote:

<span id="mgc_cb_evo_title_opened"
<if condition="$vbcollapse[collapseobj_mgc_cb_evo] == ''">
<else />
style="display: none;"
</if>
>
....
<span id="mgc_cb_evo_title_closed"
<if condition="$vbcollapse[collapseobj_mgc_cb_evo] == ''">
style="display: none;"
</if>
>
Got a CSS warning - specially about the first one - because the IF condition produced an empty:

Quote:

style='display: ';
This fixes this :)

VBDev 09-04-2008 04:45 AM

Quote:

Originally Posted by Angel-Wings (Post 1614096)
Installed :)

Just - I've reworked some JS / IF conditions like:



Before the "IF" condition was inside the function and so created an empty JS function used for nothing.
Also about the Collapse / Show mode:



Got a CSS warning - specially about the first one - because the IF condition produced an empty:



This fixes this :)

Oh yes thanks for the info :) I'll add it to the "bug list" to be fixed !

solidlink 09-04-2008 04:48 AM

i've got 2 questions....... how does it affect the server load? is there anyway to clear the logs or sth? thx

solidlink 09-04-2008 04:58 AM

all the commands does not seem to work for me?

# /me : well known IRC command
# /del : remove shouts (different possibilities of removal)
# /ignore : ignore shouts from another user
# /ban : ban user from chatbox
# /pm : send a private chat to another user
# /announcement : modify the announcement on top of the chatbox

txspaderz 09-04-2008 06:48 AM

I'm getting this error when going: /ban show

Any idea's? I did uninstall the old chatbox too

Quote:

Database error in vBulletin 3.7.3:

Invalid SQL:

SELECT username,userid,usergroupid,displaygroupid
FROM user
WHERE mgc_cb_evo_banned='1'
ORDER BY username ASC;

MySQL Error : Unknown column 'mgc_cb_evo_banned' in 'where clause'
Error Number : 1054
Request Date : Thursday, September 4th 2008 @ 02:41:00 AM
Error Date : Thursday, September 4th 2008 @ 02:41:00 AM
Script : http://www.*****.com/forum/mgc_cb_evo.php?do=showban
Referrer : http://www.****.com/forum/index.php?
IP Address :
Username :
Classname : vB_Database
MySQL Version : 5.0.51a-community

carphead 09-04-2008 10:26 AM

I'm trying to disable this style on a pair of styles (Iphone and a fast loading text only style). But when I go into the Chatbox display on forumhome theres is no $search_text = '$forumhome_markread_script';. Has the plug in changed?

Code:

if($vbulletin->options['mgc_cb_evo_active'] && $vbulletin->userinfo['mgc_cb_evo_show'] && can_view_mgc_cb_evo())
{
  require_once(DIR . '/includes/functions_mgc_cb_evo.php');
   
  if (can_view_mgc_cb_evo() && $vbulletin->options['mgc_cb_evo_forumhome'])
  {
      /* Stats */
      if ($vbulletin->options['mgc_cb_evo_forumhome_stats'])
      {
        $mgc_cb_evo_stats = construct_mgc_cb_evo_forumhome_stats();
      }
     
     
      $replace = ' $mgc_cb_evo ';
     
      if($vbulletin->options['mgc_cb_evo_forumhome'] == 1)
      {
          $find = '$navbar';
          $brb = ' ';
          $bra = ' <br />';
      }
      else
      {
          $find = '$forumhome_markread_script';
          $brb = ' <br />';
          $bra = ' ';
      }
     
      $mgc_cb_evo = build_mgc_cb_evo_display($vbulletin->options['mgc_cb_evo_normalmode_height']);

      $vbulletin->templatecache['FORUMHOME'] = str_replace($find,$find . $brb . $replace . $bra,$vbulletin->templatecache['FORUMHOME']);
  }
}


VBDev 09-04-2008 11:08 AM

Quote:

Originally Posted by solidlink (Post 1614145)
i've got 2 questions....... how does it affect the server load? is there anyway to clear the logs or sth? thx

The new version is very light on the server load, far more than it used to be.

Yes it's possible through the use of a command or a periodic cron task or directly from the archives with a inline moderation removal tool.

Quote:

Originally Posted by solidlink (Post 1614150)
all the commands does not seem to work for me?

# /me : well known IRC command
# /del : remove shouts (different possibilities of removal)
# /ignore : ignore shouts from another user
# /ban : ban user from chatbox
# /pm : send a private chat to another user
# /announcement : modify the announcement on top of the chatbox

You have to set permissions boy :) Check the command management tool in the admincp.

Quote:

Originally Posted by txspaderz (Post 1614183)
I'm getting this error when going: /ban show

Any idea's? I did uninstall the old chatbox too

Did you install the 1.0.0 chatbox just when released or more recently ?

Coz there was a small mistake in the first zip file of the 1.0.0.

Quote:

Originally Posted by carphead (Post 1614281)
I'm trying to disable this style on a pair of styles (Iphone and a fast loading text only style). But when I go into the Chatbox display on forumhome theres is no $search_text = '$forumhome_markread_script';. Has the plug in changed?

Code:

if($vbulletin->options['mgc_cb_evo_active'] && $vbulletin->userinfo['mgc_cb_evo_show'] && can_view_mgc_cb_evo())
{
  require_once(DIR . '/includes/functions_mgc_cb_evo.php');
   
  if (can_view_mgc_cb_evo() && $vbulletin->options['mgc_cb_evo_forumhome'])
  {
      /* Stats */
      if ($vbulletin->options['mgc_cb_evo_forumhome_stats'])
      {
        $mgc_cb_evo_stats = construct_mgc_cb_evo_forumhome_stats();
      }
     
     
      $replace = ' $mgc_cb_evo ';
     
      if($vbulletin->options['mgc_cb_evo_forumhome'] == 1)
      {
          $find = '$navbar';
          $brb = ' ';
          $bra = ' <br />';
      }
      else
      {
          $find = '$forumhome_markread_script';
          $brb = ' <br />';
          $bra = ' ';
      }
     
      $mgc_cb_evo = build_mgc_cb_evo_display($vbulletin->options['mgc_cb_evo_normalmode_height']);

      $vbulletin->templatecache['FORUMHOME'] = str_replace($find,$find . $brb . $replace . $bra,$vbulletin->templatecache['FORUMHOME']);
  }
}


Sorry it's not $search_text but $find.

txspaderz 09-04-2008 03:54 PM

Quote:

Originally Posted by VBDev (Post 1614303)
Did you install the 1.0.0 chatbox just when released or more recently ?

Coz there was a small mistake in the first zip file of the 1.0.0.

Hi!

I downloaded it last night around midnight CST if that helps.

gtcompscientist 09-04-2008 04:56 PM

Quote:

Originally Posted by Ranger187 (Post 1588808)
I figured it out.....

MOD_SECURITY on linux boxes disables this plugin from working...

edit/create .htaccess

Add

Code:

<IfModule mod_security.c>
  SecFilterEngine Off
  SecFilterScanPOST Off
</IfModule>

Place this in the root of the forum. Done. ;)

Ranger - Thanks for this... after the upgrade lots of users were complaining of problems, and this fixed it straight-away.


All times are GMT. The time now is 03:30 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.07907 seconds
  • Memory Usage 1,766KB
  • 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
  • (3)bbcode_code_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (7)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