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)

shadowla05 05-20-2010 09:15 PM

Sound still does not work i have edited the .js file to the correct file path which there where 3 of them i fixed.

VBDev 05-20-2010 10:26 PM

Quote:

Originally Posted by Halfhidden (Post 2040458)
@VBDev thank you for looking in to this for me. I appreciate you are busy.
Here is the page source code in a zip.

Thanks :)

Hum couldn't find any useful info, please send me test account to your forum by PM.

Quote:

Originally Posted by Chalex4 (Post 2040464)
I just removed all the <br /> tags in the display management plugin and somehow it didn't have any effect. I must be doing something wrong :p. Do you want me to provide a seperate admin login for my site to make it a little easier for you to help?

This is the only thing that's stopping me using this shoutbox right now :D. Thanks for the help.

Might be one remaining in the template, have you check ?

Quote:

Originally Posted by harleyparts (Post 2040473)
sorry to highjack your thread but need a chat mod makers input

an external java based chat , that also has camara and voice
I think that would be the next big thing in here , you used to be able to use skype on VB but they changed the way skype works and I dont think thats possible anymore

EVO can you look into this and tell me whats the story on the cam in chat deal?
you can see a pic here of a widget i made for my board that uses this java script to do this
:erm:

Sorry but this isn't a feature I am interested in implementing.

Quote:

Originally Posted by angeljs (Post 2040484)
There is no exact database error, just a basic message on each page that there is a problem with the database with no specifics.

Don't you have server database error logs ?

Quote:

Originally Posted by jskoh (Post 2040630)
found some bug on the new release

Well let's try that fix, open the mgc_cb_evo.php file, search around line 911 for:
PHP Code:

// 2 - Member group test
if (!$hasaccess && !empty($vbulletin->userinfo['membergroupids'])) 

Replace by:
PHP Code:

// 2 - Member group test
if (!$hasaccess && is_array($command['usergroupids']) && !empty($vbulletin->userinfo['membergroupids'])) 


VBDev 05-20-2010 10:30 PM

Quote:

Originally Posted by Jeweetog (Post 2040706)
Hi,

To get the tab, you have to refresh the page first, then click once on a username.

Those tabs only appear when u click once on a username, not when u just /pm them.

Well the pre-requisite is also to have the PM command active and authorized for your usergroup and the usergroup of the user you are trying to PM.
And then you need to have the PM in a tab function working.

Quote:

Originally Posted by ellinofatsa (Post 2040719)
hi can i change the sound with mp3?

and how?

thanks

Well I never have put an mp3 on a page but this should work by replacing the swf call in the js to an mp3 call.

Have you tried modifying the mgc_cb_evo/clientscript/mgc_cb_evo_functions.js file for that purpose ?

Quote:

Originally Posted by Geissbock66 (Post 2040739)
Is it possible to get the box at the startsite of the cms fro, 4.03?
Please tell me who - great THX!

In a widget ? No, not in this version, but in the next one yes.

Quote:

Originally Posted by shadowla05 (Post 2040799)
Sound still does not work i have edited the .js file to the correct file path which there where 3 of them i fixed.

Well then this should work if you activated the notification sound option in your chatbox settings.

shadowla05 05-20-2010 10:41 PM

Quote:

Originally Posted by shadowla05
Sound still does not work i have edited the .js file to the correct file path which there where 3 of them i fixed.
Well then this should work if you activated the notification sound option in your chatbox settings.
Its not working at all i have it activated in the chatbox settings and i have edited the .js file look below,and on the .js file i edited 3 lines.

https://vborg.vbsupport.ru/external/2010/05/24.png
https://vborg.vbsupport.ru/external/2010/05/25.png

VBDev 05-21-2010 04:15 AM

And have you disabled it in your usercp ?

ellinofatsa 05-21-2010 06:07 AM

good morning from greece!!!!!

VBDev thank you for your time with my many couestions.
i need your help for this mod.
i thing if you can upload a part of sound diferent of this that you have in this mod.-:)
is that inposible;
this mod is the best choutbox bud the sound is litle tiring.

shadowla05 05-21-2010 08:57 AM

Quote:

Originally Posted by VBDev (Post 2040964)
And have you disabled it in your usercp ?

this is how i have it i even changed it to yes just to see if it worked but still no sound. does ur sound work on ur site?

https://vborg.vbsupport.ru/external/2010/05/22.png

Chalex4 05-21-2010 08:59 AM

Quote:

Originally Posted by VBDev (Post 2040834)
Might be one remaining in the template, have you check ?

Yeah, this is what I have in the display management plugin:
PHP Code:

$mgc_vbversion substr($vbulletin->options['templateversion'],0,1);

if (
$mgc_vbversion 3)
{
    global 
$MGCCbEvoCore;
    
    global 
$style;
    
    if (
THIS_SCRIPT == 'mgc_cb_evo')
    {
        
$vbcsspath 'css.php?styleid=' $vbulletin->userinfo['styleid'] . '&amp;langid=' LANGUAGEID '&amp;d=' $style['dateline'] . '&amp;sheet='
        
$head .= '<link rel="stylesheet" href="' $vbcsspath 'mgc_cb_evo.css" type="text/css">';
        
$template_hook['headinclude_bottom_css'] .= $head;    
    }
}

if(
$MGCCbEvoCore->show_chatbox() && $MGCCbEvoCore->evo_permissions->can_view()) 
{
    
$mgc_cb_evo_display            0;
    
$mgc_cb_evo_type_position    "";
    
    switch(
THIS_SCRIPT)
    {
        case 
'index':                     
            
// Manage number of users online
            
if ($vbulletin->options['mgc_cb_evo_whoisonline_active'] && $vbulletin->options['mgc_cb_evo_show_number_of_users_inchat_forumhome'])
            {
                
// Inactive mode active and delay < session delay => inactive mode delay taken
                
if ($vbulletin->options['mgc_cb_evo_inactive_mode'] && $vbulletin->options['mgc_cb_evo_inactive_mode_delay'] < $vbulletin->options['mgc_cb_evo_whoisonline_delay']) 
                {
                    
$dateline TIMENOW - ($vbulletin->options['mgc_cb_evo_inactive_mode_delay'] * 60);
                }
                else
                {
                    
$dateline TIMENOW - ($vbulletin->options['mgc_cb_evo_whoisonline_delay'] * 60);
                }
        
                
$getusers $vbulletin->db->query_read("
                    SELECT DISTINCT u.username,u.displaygroupid,u.userid,s.userid AS suserid,u.usergroupid,(u.options & " 
$vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible
                    FROM " 
TABLE_PREFIX "mgc_cb_evo_session AS cbs
                    LEFT JOIN " 
TABLE_PREFIX "user AS u ON (cbs.userid=u.userid)
                    LEFT JOIN " 
TABLE_PREFIX "session AS s ON (cbs.userid=s.userid)
                    WHERE cbs.dateline>='
$dateline' AND cbs.userid!=0
                "
);
        
                
$mgc_cb_evo_users_online 0;
                
                if (
$vbulletin->db->num_rows($getusers))
                {
                    
$first 1;
                    while (
$user $vbulletin->db->fetch_array($getusers))
                    {
                        if (
$user['invisible'])
                        {
                            if (
$MGCCbEvoCore->evo_permissions->can_see_hidden_users() OR $user['userid'] == $vbulletin->userinfo['userid'])
                            {
                                if (
$user['suserid'])
                                {
                                    
$mgc_cb_evo_users_online++;
                                }
                            }
                        }
                        else
                        {
                            if (
$user['suserid'])
                            {
                                
$mgc_cb_evo_users_online++;
                            }
                        }
                    }
                }
                
                
$mgc_cb_evo_users_in_chat construct_phrase($vbphrase['mgc_cb_evo_x_users_in_chat'],$mgc_cb_evo_users_online);
                
                
$template_hook['forumhome_wgo_stats'] .= $mgc_cb_evo_users_in_chat;
            }        
                
            
// Manage stats display
            
if ($vbulletin->options['mgc_cb_evo_forumhome_stats'])
            {
                require_once(
DIR '/mgc_cb_evo/classes/class_misc.php');        
                
$MGCCbEvoMisc = new MGCCbEvo_misc($vbulletin);
                
$mgc_cb_evo_stats $MGCCbEvoMisc->construct_forumhome_stats();                        
                
$template_hook['forumhome_wgo_stats'] .= $mgc_cb_evo_stats;
            }        
        
            
// Manage display of the chatbox on forumhome
            
if ($vbulletin->options['mgc_cb_evo_forumhome']) 
            {
                
$mgc_cb_evo_display 1;
                if(
$vbulletin->options['mgc_cb_evo_forumhome'] == 1)
                {
                    
$mgc_cb_evo_type_position    "forumhome_above";
                    
$mgc_cb_evo_insert_type        'append';
                    
$mgc_cb_evo_insert_template    'navbar'
                    
$mgc_cb_evo_brb                ' '
                    
$mgc_cb_evo_bra                ' '
                } 
                else 
                {
                    
$mgc_cb_evo_type_position    "forumhome_below";
                    
$mgc_cb_evo_insert_type     'replace';
                    
$mgc_cb_evo_insert_template 'FORUMHOME'
                    
$mgc_cb_evo_replace         ' $mgc_cb_evo ';
                    
$mgc_cb_evo_find             '$forumhome_markread_script';
                    
$mgc_cb_evo_brb             ' '
                    
$mgc_cb_evo_bra             ' '
                }
            } 
        break;
        case 
'forumdisplay':
            
// Strip filtered forumids var 
            
if (!empty($vbulletin->options['mgc_cb_evo_forumdisplay_ids']))
            {
                
$forumids explode(',',$vbulletin->options['mgc_cb_evo_forumdisplay_ids']);
            }
            
                
// Manage display
            
if ($vbulletin->options['mgc_cb_evo_forumdisplay'] && (!isset($forumids) || in_array($foruminfo['forumid'],$forumids)))
            {
                
$mgc_cb_evo_display 1;
                if(
$vbulletin->options['mgc_cb_evo_forumdisplay'] == 1)
                {
                    
$mgc_cb_evo_type_position    "forumdisplay_above";
                    
$mgc_cb_evo_insert_type        'append';
                    
$mgc_cb_evo_insert_template 'navbar'
                    
$mgc_cb_evo_brb             ' '
                    
$mgc_cb_evo_bra             ' '
                } 
                else 
                {
                    
$mgc_cb_evo_type_position    "forumdisplay_below";
                    
$mgc_cb_evo_insert_type     'replace';
                    
$mgc_cb_evo_insert_template 'FORUMDISPLAY'
                    
$mgc_cb_evo_replace         ' $mgc_cb_evo ';
                    
$mgc_cb_evo_find             '$forumhome_markread_script';
                    
$mgc_cb_evo_brb             ''
                    
$mgc_cb_evo_bra             ' '
                }
            } 
        break;
        case 
'showthread':
            
// Strip the thread id to exclude
            
if (!empty($vbulletin->options['mgc_cb_evo_showthread_ids']))
            {
                
$forumids explode(',',$vbulletin->options['mgc_cb_evo_showthread_ids']);
            }
            
// Manage display
            
if ($vbulletin->options['mgc_cb_evo_showthread'] && (!isset($forumids) || in_array($threadinfo['forumid'],$forumids))) 
            {
                
$mgc_cb_evo_display 1;
                if(
$vbulletin->options['mgc_cb_evo_showthread'] == 1)
                {
                    
$mgc_cb_evo_type_position "showthread_above";
                    
$mgc_cb_evo_insert_type        'append';
                    
$mgc_cb_evo_insert_template 'navbar'
                    
$mgc_cb_evo_brb             ' '
                    
$mgc_cb_evo_bra             ' '
                } 
                else 
                {
                    
$mgc_cb_evo_type_position    "showthread_below";
                    
$mgc_cb_evo_insert_type     'replace';
                    
$mgc_cb_evo_insert_template 'SHOWTHREAD'
                    
$mgc_cb_evo_replace         ' $mgc_cb_evo ';
                    
$mgc_cb_evo_find             '$similarthreads';
                    
$mgc_cb_evo_brb             ' '
                    
$mgc_cb_evo_bra             ' '
                }
            } 
        break;
        case 
'mgc_cb_evo':                    
        break;
        default:
            
// Display on all pages except forumdisplay, forumhome, showthread and chatbox
            
if (($vbulletin->options['mgc_cb_evo_display_on_allpages'] || $vbulletin->options['mgc_cb_evo_store_invar_allpages']) )
            {
                
// Exclude pages list
                
if (!empty($vbulletin->options['mgc_cb_evo_pages_exclude_list']))
                {
                    
$exclude_pageslists_array explode(',',$vbulletin->options['mgc_cb_evo_pages_exclude_list']);
                }
                else
                {
                    
$exclude_pageslists_array = array();
                }
                
                
// List of pages specified
                
if (!empty($vbulletin->options['mgc_cb_evo_allpages_list']))
                {
                    
$pageslists_array explode(","$vbulletin->options['mgc_cb_evo_allpages_list']);
        
                    foreach (
$pageslists_array as $index => $script)
                    {
                        if ( (
THIS_SCRIPT == $script) && (!in_array(THIS_SCRIPT,$exclude_pageslists_array)))
                        {
                            
$mgc_cb_evo_display 1;
                         }
                    }
                }
                else
                {
                    if (!
in_array(THIS_SCRIPT,$exclude_pageslists_array))
                    {
                        
$mgc_cb_evo_display 1;
                    }
                }
        
                if (
$mgc_cb_evo_display)
                {
                    if (
$vbulletin->options['mgc_cb_evo_display_on_allpages'])
                    {
                        
$mgc_cb_evo_type_position    "navbar_below";
                        
$mgc_cb_evo_insert_type        'append';
                        
$mgc_cb_evo_insert_template 'navbar';
                        
$mgc_cb_evo_brb             ' '
                        
$mgc_cb_evo_bra             ' '
                    }
                    else
                    {
                        
$mgc_cb_evo_type_position    "var";
                        
$mgc_cb_evo_insert_type        'var';        
                    }
                }
            }        
        break;            
    }
    
    if (
$mgc_cb_evo_display)
    {
        
// Construct chatbox display
        
require_once(DIR '/mgc_cb_evo/classes/class_display.php');
        
$MGCCbEvoDisplay = new MGCCbEvo_display($vbulletin,$MGCCbEvoCore);
        
        
// Headinclude
        
$head '';
        if (
$vbulletin->options['mgc_cb_evo_js_load_locally'])
        {
            
$head .= '<link rel="stylesheet" href="http://yui.yahooapis.com/combo?2.7.0/build/container/assets/skins/sam/container.css&2.7.0/build/button/assets/skins/sam/button.css">';
        }
        else
        {
            
$head .= '<link rel="stylesheet" href="mgc_cb_evo/clientscript/yui/container/assets/skins/sam/container.css" type="text/css">';
            
$head .= '<link rel="stylesheet" href="mgc_cb_evo/clientscript/yui/button/assets/skins/sam/button.css" type="text/css">';
        }
        
$head .= '<link rel="stylesheet" href="mgc_cb_evo/clientscript/widget-skin.css" type="text/css">';
        
$head .= '<link rel="stylesheet" href="mgc_cb_evo/clientscript/chatbox_tabs.css" type="text/css">';
        
        if (
$mgc_vbversion 4)
        {
            
$vbulletin->templatecache['headinclude'] .= addslashes($head);
        }
        else
        {
            global 
$style;
            
$vbcsspath 'css.php?styleid=' $vbulletin->userinfo['styleid'] . '&amp;langid=' LANGUAGEID '&amp;d=' $style['dateline'] . '&amp;sheet='
            
$head .= '<link rel="stylesheet" href="' $vbcsspath 'mgc_cb_evo.css" type="text/css">';
            
$template_hook['headinclude_bottom_css'] .= $head;
        }
        
        
// Display construction
        
$mgc_cb_evo $MGCCbEvoDisplay->construct_display($vbulletin->options['mgc_cb_evo_normalmode_height']);            
                
        
// Placement
        
if ($mgc_vbversion 4)
        {
            switch(
$mgc_cb_evo_insert_type)
            {
                case 
'append':
                    
$mgc_cb_evo str_replace('"','\"',$mgc_cb_evo);
                    
$vbulletin->templatecache["$mgc_cb_evo_insert_template"] .= $mgc_cb_evo_brb $mgc_cb_evo $mgc_cb_evo_bra;
                break;
                case 
'replace':
                    
$vbulletin->templatecache["$mgc_cb_evo_insert_template"] = str_replace($mgc_cb_evo_find,$mgc_cb_evo_find $mgc_cb_evo_brb addslashes($mgc_cb_evo_replace) . $mgc_cb_evo_bra,$vbulletin->templatecache["$mgc_cb_evo_insert_template"]); 
                break;
                case 
'var':
                    
$mgc_cb_evo_var $mgc_cb_evo;
                break;
            }            
        }
        else
        {
            switch (
$mgc_cb_evo_type_position)
            {
                case 
"forumhome_above":
                    
$template_hook['forumhome_above_forums'] .= $mgc_cb_evo;
                    break;
                case 
"forumhome_below":
                    
$template_hook['forumhome_below_forums'] .= $mgc_cb_evo;
                    break;
                case 
"forumdisplay_above":
                    
$template_hook['forumdisplay_above_threadlist'] .= $mgc_cb_evo;
                    break;
                case 
"forumdisplay_below":
                    
$template_hook['forumdisplay_below_threadlist'] .= $mgc_cb_evo;
                    break;
                case 
"showthread_above":
                    
$template_hook['showthread_above_posts'] .= $mgc_cb_evo;
                    break;
                case 
"showthread_below":
                    
$template_hook['showthread_after_activeusers'] .= $mgc_cb_evo;
                    break;
                case 
"navbar_below":
                    
// do nothing, will be processed in the next hook
                    
break;
                case 
"var":
                    if (!empty(
$vbulletin->options['mgc_cb_evo_templates_list']))
                    {
                        
$mgc_cb_evo_templates explode(',',$vbulletin->options['mgc_cb_evo_templates_list']);
                        
$mgc_cb_evo_var_array['mgc_cb_evo_var'] = $mgc_cb_evo;
                        foreach (
$mgc_cb_evo_templates AS $nom)
                        {
                            
vB_Template::preRegister($nom$mgc_cb_evo_var_array); 
                        }
                    }
                    break;                
            }
        }        
        
        
// Manage the sidebar creation if any (vB3 only)
        
if ($mgc_vbversion 4)
        {
            if (
$vbulletin->options['mgc_cb_evo_notifications_display'] == || $vbulletin->options['mgc_cb_evo_notifications_display'] == 4)
            {
                if (
$vbulletin->options['mgc_cb_evo_notifications_display'] == 3)    
                {    
                    
$mgc_cb_evo_sidebar_align 'left';
                    
$vbulletin->templatecache['header'] .= '<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr><td valign=\"top\" style=\"padding-right: 15px\" width=\"' $vbulletin->options['mgc_cb_evo_notif_sidebar_width'] . '\">' fetch_template('mgc_cb_evo_notifs_sidebar') . '</td><td valign=\"top\">';
                    
$vbulletin->templatecache['footer'] = '</td></tr></table>' .  $vbulletin->templatecache['footer'];
                }
                else
                {
                    
$mgc_cb_evo_sidebar_align 'right';
                    
$vbulletin->templatecache['header'] .= '<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr><td valign=\"top\">';
                    
$vbulletin->templatecache['footer'] = '</td><td valign=\"top\" style=\"padding-left: 15px\" width=\"' $vbulletin->options['mgc_cb_evo_notif_sidebar_width'] . '\">' fetch_template('mgc_cb_evo_notifs_sidebar') . '</td></tr></table>' .  $vbulletin->templatecache['footer'];
                }
            }
        }
    }


and it's still not aligned!

angeljs 05-21-2010 09:06 AM

Quote:

Originally Posted by VBDev (Post 2040834)
Don't you have server database error logs ?

No, there aren't any, sorry :(

andyv72 05-21-2010 09:10 AM

1 Attachment(s)
Hello people ...

Need help still ..

1st in the mgc_cb_evo.php? do = showsmilies is a mistake in it, the smilies are not displayed in the box when you click there ..

2nd I would like to have the box directly below the menu, how can I change this (see picture)
Attachment 117394
3rd an update of the German xml would be really great or how can I change myself (on what I have to) see
German Language
Attachment 117395
English Language
Attachment 117396

sry for this englisch ...it was translatet by google....


All times are GMT. The time now is 03:41 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.09460 seconds
  • Memory Usage 1,992KB
  • 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_php_printable
  • (13)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