Thread: Chat Modifications - MGC Chatbox Evo
View Single Post
  #2379  
Old 08-31-2008, 02:06 PM
VBDev's Avatar
VBDev VBDev is offline
 
Join Date: Jan 2004
Location: France
Posts: 2,570
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ready boys ? Take a long breath and read all my answers

I hope i didn't forget anyone.

Quote:
Originally Posted by pedroenf View Post
The issue is that when chatbox is enabled you do not receive vBulletin PM pop-up.
When you are in that condition, which javascript error do you see ?

Quote:
Originally Posted by NeutralizeR View Post
I've just upgraded from the old version of this hack to evo version. I used to run my chatbox with only 1 query, now it executes 3 queries. 1 for the core hack, 1 for the smilies and 1 for something else. Is it possile to run the new version with only 1 query? (i disabled all settings need extra queries)
If you deactivate the chatbox smilies it will remove one query (used to build up the smilies toolbar).

To go down to one query you can try to remove one other query that should not be run in case of autocompletion mode inactive.
Here is what you can do to give it a try:
  1. Disable the autocompletion option
  2. Edit the functions_mgc_cb_evo.php
and replace :

PHP Code:
    $commands $vbulletin->db->query_read("SELECT * FROM " TABLE_PREFIX "mgc_cb_evo_command WHERE active='1'");
    
    while (
$command $vbulletin->db->fetch_array($commands))
    {
        if (
mgc_cb_evo_can_use_command($command))
        {
            
$show['mgc_cb_evo_command_' $command['identifier']] = true;

            
/* If autocompletion is active, add commands tips to autocompletion array */
            
if ($vbulletin->options['mgc_cb_evo_act_autocompletion'])
            {
                
$append_array get_command_autocompletion_array($command['identifier']);
                
$autocompletion_js_array array_merge($autocompletion_js_array,$append_array);
            }
        }
        else
        {
            
$show['mgc_cb_evo_command_' $command['identifier']] = false;
        }
    }
   
   if (
sizeof($autocompletion_js_array))
   {
       
/* Order table alphabetically */
       
sort($autocompletion_js_array);
   
       
/* Implode array */
       
$autocompletion_js implode(',',$autocompletion_js_array);
   } 
by

PHP Code:
    /* Retrieving of commands permissions to customize the chatbox displayed elements */
    
$autocompletion_js_array = array();
    
    if (
$vbulletin->options['mgc_cb_evo_act_autocompletion'])
    {
        
$commands $vbulletin->db->query_read("SELECT * FROM " TABLE_PREFIX "mgc_cb_evo_command WHERE active='1'");
        
        while (
$command $vbulletin->db->fetch_array($commands))
        {
            if (
mgc_cb_evo_can_use_command($command))
            {
                
$show['mgc_cb_evo_command_' $command['identifier']] = true;
    
                
/* If autocompletion is active, add commands tips to autocompletion array */
                
if ($vbulletin->options['mgc_cb_evo_act_autocompletion'])
                {
                    
$append_array get_command_autocompletion_array($command['identifier']);
                    
$autocompletion_js_array array_merge($autocompletion_js_array,$append_array);
                }
            }
            else
            {
                
$show['mgc_cb_evo_command_' $command['identifier']] = false;
            }
        }
       
       if (
sizeof($autocompletion_js_array))
       {
        
/* Order table alphabetically */
        
sort($autocompletion_js_array);
       
        
/* Implode array */
        
$autocompletion_js implode(',',$autocompletion_js_array);
       }
    } 
This should move things down to one query. I will update the chatbox code accordingly in the next version.

Quote:
Originally Posted by shot2bits View Post
PS - does the shoutbox auto update after somebody posts a message?
No, it does refresh on the other users window each specified number of seconds (you set it as called "autorefresh" time).

Quote:
Originally Posted by BozzaJos View Post
Thanks Andrew. I never noticed Dev answered my question. Anyway, here is a bigger screenshot!

Yes this is what I thought, I miss that one out

I have added it to the bug list and will correct it in the next version !

Quote:
Originally Posted by NeutralizeR View Post
I also have the same issue with BozzaJos. Plus...

By default, vbulletin asks for confirmation after clicking log out and the page turn into gray in IE. When MGC Chatbox Evo is enabled, it doesn't asks for confirmation and directly logs me out. I can see the yellow javascript error icon in the bottom left corner of IE. Maybe a conflict with the JS files.
The problem is that I am a mac user and thus can't test that . Could you try to tell me which kind of error is displayed in ie ?

I add it in the list of known bugs.

Quote:
Originally Posted by gpc10347 View Post
<can of worms>

I have talkerbot working on my site and of course, mgc chat is working well too.. Anyone else have both and - figured out some code to make the talkerbot a part of the chat?

</end worms>
Honestly this is not something I would, I don't know talkerbot at all and prefer to concentrate on bringing the chatbox to even further completness.

Quote:
Originally Posted by reitube View Post
in order to fit the chatbox on a side column of a portal like vba, it would be nice to resize the chatbox to a minimum. Therefore, it should be possible to arrange the icons (via configuration) beow the input field and have smaller icons. Furthermore, a configurable width would be great.
Thanks for the Mod, great job..

Regards.
Quote:
Originally Posted by Ranger187 View Post
Sounds more like a plugin to this mod, then a function. Not a bad idea. But, it's already a module VBa as a shotbox on the main page
I agree with Ranger187, the VBa chatbox module for my chatbox released by stangger5 already does it.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01300 seconds
  • Memory Usage 1,841KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php
  • (8)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete