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)

kronnos 02-28-2009 09:34 AM

Quote:

Originally Posted by desirulez (Post 1756681)
looks like you are not going to help

I think he already did by pointing you in the right direction.

lille L 02-28-2009 10:27 AM

VBDev: Yes a link to the full page mode ;)

Hm, I have it, and its uploaded. I wil get a new try

But.. In the online window, its only showing whos online a short time after they logged in. Is there any way to get the box to show whos online all the time? And everyone whos watching the box also incl?

I wonder if my styles dont like this, because it looks far away from your screenshoots.. :)

VBDev 02-28-2009 11:46 AM

Quote:

Originally Posted by fukdawrld (Post 1756231)
When i test my board I test it in several browsers and they all come up the same...registered user see whatever is opposite to the settings. [I.E., firefox, chrome, and opera]

How do I check on the if thing {IF}

Instead of seeing the images i see submit query and the image url is forum/{IF}/misc/menu_open.gif

Well I don't know, is that something particular that {IF} thing ?

Is this default vB possiblity ?

Quote:

Originally Posted by gmerin (Post 1756379)
would it be possible to add replacement variables within the chatbox?

Well what do you need it for ?

Quote:

Originally Posted by beatthecasino (Post 1756564)
I Installled the latest version on VB 3.8.0 It looks ok except it endlessly says loading...and shows the progress.gif

If i try to enter a chat it says in an error box

Error : A chat is already being processed, please wait.

Any Ideas?

Thanks
KS

There are issues with vB if you have zlib compression on your website. Do you have that active ?

Quote:

Originally Posted by desirulez (Post 1756681)
looks like you are not going to help

Well have you even had a look at the uninstall instructions ? You have this issue because you have not removed the files of the chatbox prior to the uninstall ;)

So just remove the chatbox files, especially the one in includes/xml directory, then you should be fixed.

VBDev 02-28-2009 12:03 PM

Quote:

Originally Posted by punk23 (Post 1756745)
Excellent Mod :)

I will purchase the branding free option if someone can tell me how I achieve the following....

I need it so that just the chatbox gets launched in its own window (without anything else - no forum header, logo, navbar or other VB stuff), say 640x300px in size, via a single link to launch it.

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.

VBDev 02-28-2009 12:07 PM

Quote:

Originally Posted by lille L (Post 1756785)
VBDev: Yes a link to the full page mode ;)

Hm, I have it, and its uploaded. I wil get a new try

But.. In the online window, its only showing whos online a short time after they logged in. Is there any way to get the box to show whos online all the time? And everyone whos watching the box also incl?

I wonder if my styles dont like this, because it looks far away from your screenshoots.. :)

Full page mode link is : mgc_cb_evo.php?do=view_chatbox.

I haven't understood what you mean in your online issue thing.

punk23 02-28-2009 12:28 PM

Quote:

Originally Posted by VBDev (Post 1756843)
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.

Fantastic (and I'll keep my promise about buying the branding free when this is finished).

Only problem I have is that it DOES open the right sized popup window but it's blank at the moment...what did I miss :P

VBDev 02-28-2009 01:33 PM

Lol I forgot a step :D

Create a template called mgc_cb_evo_page, and in the content copy the content of the GENERIC_SHELL template and remove the things you don't need like navbar and so on.

fukdawrld 02-28-2009 02:19 PM

Quote:

Originally Posted by VBDev (Post 1756837)
Well I don't know, is that something particular that {IF} thing ?

Is this default vB possiblity ?




Yes It is a replacement variable {IF} = voodoo/images

When I erase it it removes many other images from my site. Is there away around this?

punk23 02-28-2009 02:31 PM

Quote:

Originally Posted by VBDev (Post 1756899)
Lol I forgot a step :D

Create a template called mgc_cb_evo_page, and in the content copy the content of the GENERIC_SHELL template and remove the things you don't need like navbar and so on.

That's great!

I am trying to set this up with a button on my homepage. Whilst it does actually launch, it doesn't open that cool little window, it opens a full page tab. Please could you tell me if this code is all I need to paste? BTW - the window launches perfectly from the actual chat box.
Code:

<if condition="is_member_of($vbulletin->userinfo, 6,7,5,73)">
<div align="center">
<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 src="images/buttons/staff-chat.gif" width="160" height="33" border="0" onclick="return open_chatbox_window();"/></a>
        <else />
          <a href="mgc_cb_evo.php?$session[sessionurl]do=view_chatbox" target="_top"><img src="images/buttons/staff-chat.gif" width="160" height="33" border="0" onclick="return open_chatbox_window();"/></a>           
        </if><br />
    </if></if>

...because I have tried it and just get the full tabbed window every time :(

Thank you.

VBDev 02-28-2009 03:57 PM

You have to put the onclick in the tag a not the tag img


All times are GMT. The time now is 02:23 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.06335 seconds
  • Memory Usage 1,828KB
  • 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
  • (7)bbcode_code_printable
  • (6)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)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