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)

solong2 06-03-2007 03:12 PM

how can banned user

thanks

VBDev 06-03-2007 03:41 PM

Quote:

Originally Posted by solong2 (Post 1260380)
how can banned user

thanks

you type /ban followed by a space and the name of the user :)

You then can see the banned users with the /showban command and you can unban them within the show ban popup or by typing in the chatbox the /unban command followed by a space and the name of the user.

ragtek 06-03-2007 04:16 PM

just look into the help ;)

bashy 06-03-2007 04:46 PM

Hi

What can i add to this code to make the popup to the size i require please?
Code:

                <span class="smallfont">$vbphrase[mgc_cb_aide]&nbsp;<a href="#top" onClick="return open_aide();"><img id="mgc_cb_aide" src="$stylevar[imgdir_button]/collapse_alt_collapsed.gif" alt="" border="0" /></a>
</span


VBDev 06-03-2007 05:31 PM

You can't in this bit of code.

Go in the clientscript/mgc_chatbox.js file and the open_aide javascript function in the mgc_chatbox template (at the top).

There, you should find a window_open call in which you can change the width and height value :)

itdevil 06-03-2007 06:11 PM

Hi, there is seems to be problem with the with Uninstall process. After uninstalling the hack it giving me DB error when try to update groups.

Code:

Database error in vBulletin 3.6.7:

Invalid SQL:
UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
        `title` = '(COPPA) Users Awaiting Moderation',
        `description` = '',
        `usertitle` = '',
        `opentag` = '',
        `closetag` = '',
        `passwordexpires` = '0',
        `passwordhistory` = '0',
        `forumpermissions` = '655375',
        `genericpermissions` = '33554499',
        `attachlimit` = '0',
        `pmquota` = '50',
        `pmpermissions` = '0',
        `pmsendmax` = '0',
        `calendarpermissions` = '1',
        `wolpermissions` = '0',
        `adminpermissions` = '0',
        `genericoptions` = '56',
        `profilepicmaxwidth` = '100',
        `profilepicmaxheight` = '100',
        `profilepicmaxsize` = '65535',
        `avatarmaxwidth` = '80',
        `avatarmaxheight` = '80',
        `avatarmaxsize` = '20000',
        `signaturepermissions` = '0',
        `sigpicmaxwidth` = '500',
        `sigpicmaxheight` = '100',
        `sigpicmaxsize` = '10000',
        `sigmaxrawchars` = '1000',
        `sigmaxchars` = '500',
        `sigmaxlines` = '0',
        `sigmaxsizebbcode` = '7',
        `sigmaximages` = '4',
        `vbppermissions` = '0',
        `vbp_discountrate` = '0.00000',
        `vbp_paycheckamount` = '0.00000',
        `vbp_secondarycost` = '0.00000',
        `vbp_primarycost` = '0.00000',
        `mgccustomusergroupperms` = '0',
        `nbmsgshowchatbox` = ''
WHERE usergroupid=4;

MySQL Error  : Unknown column 'mgccustomusergroupperms' in 'field list'

How can i Fix it ?

VBDev 06-03-2007 06:23 PM

I think you haven't followed the uninstalling steps rightly ;)

You should have removed the files before removing the products, especially the files in includes/xml concerning the chatbox as they contains bitfields which are generated upon install and uninstall process.

The regeneration upon uninstall is here to remove the bitfield concerning the chatbox but before files must have been removed.

So to correct this, you must remove the xml files concenrnig the chatbox and then rebuild the bitfields by hand (activation of the debug mode and the in the options menu the rebuild bitfields link shall be there :))

bashy 06-03-2007 06:45 PM

Hi VBDev

The only bit of code i can find in there with regards to a window is this
Code:

function attente_fin_envoi_chat() {
    if(envoiAjax.handler.readyState == 4 && envoiAjax.handler.status == 200 && envoiAjax.handler.responseText) {
        chatEnCours = 0;
        if (envoiAjax.handler.responseText == 'do_showban')
          window.open("mgc_chatbox.php?" + SESSIONURL + "do=showban" , "showban", "toolbar=no,scrollbars=no,resizable=yes,left=0 top=0,width=600,height=900");
        else if(envoiAjax.handler.responseText != 'ok')
          myAlert(envoiAjax.handler.responseText);
        <!-- Clear du timeout pour lancer le refresh -->
        clearTimeout(refreshTimeout);
        chatbox_refresh('forced');
    }
}

problem is, the popup aint changing size, as you can see i made it quite big with no change?
It wernt at the top either, it was a little way down!

Also, this hack actually ppears to add 3 queries even without the stats enabled,

Hack active: 35 queries and server load of 4.64
Hack disabled: 32 queries and server load of 0.84

Killing my server if i may say so... Anyway of improving this please?

VBDev 06-03-2007 07:27 PM

Quote:

Originally Posted by bashy (Post 1260504)
Hi VBDev

The only bit of code i can find in there with regards to a window is this
Code:

function attente_fin_envoi_chat() {
    if(envoiAjax.handler.readyState == 4 && envoiAjax.handler.status == 200 && envoiAjax.handler.responseText) {
        chatEnCours = 0;
        if (envoiAjax.handler.responseText == 'do_showban')
          window.open("mgc_chatbox.php?" + SESSIONURL + "do=showban" , "showban", "toolbar=no,scrollbars=no,resizable=yes,left=0 top=0,width=600,height=900");
        else if(envoiAjax.handler.responseText != 'ok')
          myAlert(envoiAjax.handler.responseText);
        <!-- Clear du timeout pour lancer le refresh -->
        clearTimeout(refreshTimeout);
        chatbox_refresh('forced');
    }
}

problem is, the popup aint changing size, as you can see i made it quite big with no change?
It wernt at the top either, it was a little way down!

Also, this hack actually ppears to add 3 queries even without the stats enabled,

Hack active: 35 queries and server load of 4.64
Hack disabled: 32 queries and server load of 0.84

Killing my server if i may say so... Anyway of improving this please?

In the template mgc_chatbox, you should find this bit of code:

Code:

  function open_aide() {
    window.open("mgc_chatbox.php?" + SESSIONURL + "do=showaide" , "showaide", "toolbar=no,scrollbars=no,resizable=yes,left=0 top=0,width=600,height=375");
  }

This is where you can change the size not as you mentionned above ;)

For the query part, how did you measure the server load and the queries ?

For the queries, the chatbox actually uses 2 queries on the forumhome page, one to retrieve the smilies and one to retrieve the custom bbcode. The one for the bbcode can be removed (see a previous post in the thread, about bbcodecache :)).

The other query might be for the refresh if you saw it by another way than the debug mode of vbulletin it might have appeared.

I think more information on the way you did it might be useful.

For the smiliey part, it could be removed in the next version by activating the smilie in a popup instead of on the page itself (queries would be run only in case of click on the button to show the page :))

bashy 06-03-2007 08:56 PM

Yep thats the one lol, didnt see you mention the template, i only noticed ya mention the file int he clientscript folder lol me is blind :o

I have added 2 images for the server load as well, i also hace the refresh set to 30 seconds...(default setting)
Page loading jumps about up 3 seconds

Willl look foward to the update :)


All times are GMT. The time now is 02:47 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.02307 seconds
  • Memory Usage 1,756KB
  • 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_code_printable
  • (2)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