I think you could achieve this pretty easily.
Open the mgc_cb_evo.php file, search for :
PHP Code:
/* Chatbox display in full mode */
if ($_REQUEST['do'] == "view_chatbox")
{
/* The user can't view the chatbox or full mode is not yet enabled ? */
if (!can_view_mgc_cb_evo() || !$vbulletin->options['mgc_cb_evo_fullmode_active'])
{
print_no_permission();
}
$HTML = build_mgc_cb_evo_display($vbulletin->options['mgc_cb_evo_fullmode_height']);
$navbits = array();
// change the line below to contain whatever you want to show in the navbar (title of your custom page)
$navbits[$parent] = $vbulletin->options['mgc_cb_evo_title'];
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
// change the line below to contain the name of the actual main output template used in your script
eval('print_output("' . fetch_template('GENERIC_SHELL') . '");');
}
Here you should change that to :
PHP Code:
/* Chatbox display in full mode */
if ($_REQUEST['do'] == "view_chatbox")
{
/* The user can't view the chatbox or full mode is not yet enabled ? */
if (!can_view_mgc_cb_evo() || !$vbulletin->options['mgc_cb_evo_fullmode_active'])
{
print_no_permission();
}
$HTML = build_mgc_cb_evo_display($vbulletin->options['mgc_cb_evo_fullmode_height']);
// change the line below to contain the name of the actual main output template used in your script
eval('print_output("' . fetch_template('mgc_cb_evo_page') . '");');
}
Then at the top of the file, add mgc_cb_evo_page in the globaltemplates var, it should look like :
PHP Code:
$globaltemplates = array(
'GENERIC_SHELL',
'mgc_cb_evo_archives',
'mgc_cb_evo_static_chatbit',
'mgc_chatbox_archives_nobit',
'mgc_cb_evo_channel_button',
'mgc_cb_evo',
'mgc_cb_evo_editor',
'mgc_cb_evo_chatbit',
'mgc_cb_evo_chatbit_menu',
'editor_jsoptions_font',
'editor_jsoptions_size',
'mgc_cb_evo_help',
'mgc_cb_evo_help_bit',
'mgc_cb_evo_smilies',
'mgc_cb_evo_rules',
'mgc_cb_evo_table',
'mgc_cb_evo_table_bit',
'mgc_cb_evo_search',
'mgc_cb_evo_page'
);
Then edit the clientscript/mgc_cb_evo/mgc_cb_evo_functions.js file append to it :
Code:
function open_chatbox_window()
{
window.open(bburl + "/mgc_cb_evo.php?" + SESSIONURL + "do=view_chatbox" , "view_chatbox", "toolbar=no,scrollbars=yes,resizable=yes,left=0 top=0,width=640,height=480");
return false;
}
Last step is to edit the mgc_cb_evo_editor template, search for :
Code:
<if condition="$vbulletin->options[mgc_cb_evo_fullmode_active] && THIS_SCRIPT != 'mgc_cb_evo'">
<if condition="$vbulletin->options[mgc_cb_evo_fullmode_link_topopup]">
<a href="mgc_cb_evo.php?$session[sessionurl]do=view_chatbox" target="_blank"><img class="inlineimg" id="mgc_cb_evo_fullmode" title="$vbphrase[mgc_cb_evo_fullmode]" src="$stylevar[imgdir_misc]/mgc_cb_evo/mgc_cb_evo_full.gif" alt="$vbphrase[mgc_cb_evo_fullmode]" border="0" /></a>
<else />
<a href="mgc_cb_evo.php?$session[sessionurl]do=view_chatbox" target="_top"><img class="inlineimg" id="mgc_cb_evo_fullmode" title="$vbphrase[mgc_cb_evo_fullmode]" src="$stylevar[imgdir_misc]/mgc_cb_evo/mgc_cb_evo_full.gif" alt="$vbphrase[mgc_cb_evo_fullmode]" border="0" /></a>
</if>
</if>
In the two links of that bit of code add before the end of the opening <a tag add :
Code:
onclick="return open_chatbox_window();"
I have not tested but this should work !
If it does I perhaps would implement that in the next version.
Don't forget to activate the chatbox in full mode option.