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)

bashy 06-11-2007 03:29 PM

Quote:

Originally Posted by VBDev (Post 1266091)
Did you encountered that problem with both 1.2 and 1.3 versions ?


Ah actually i only got 1.1 installed pmsl..... will upgrade now ;)

bashy 06-11-2007 03:38 PM

Ok, since doing the update to 1.2 i now get this:

Code:

Chatbox_mode is not defined
http://www.bashys-place.com/forums/clientscript/mgc_chatbox.js
Line: 44

When i try to test the shoutbox i get this error in the error console

Code:

Chatbox_mode is not defined
http://www.bashys-place.com/forums/clientscript/mgc_chatbox.js
Line: 64

The chatbox dont work at all, it just says loading now!!

Line 44 is
Code:

refreshAjax.send('mgc_chatbox.php', 'do=ajax_refresh_chat&cb_status=open&chatbox_mode=' + chatbox_mode + '&canal=' + canal_actif);
line 64 is
Code:

getDerniersMsgAjax.send('mgc_chatbox.php', 'do=ajax_refresh_chat&cb_status=fermee&chatbox_mode=' + chatbox_mode + '&canal=' + canal_actif);

Ranger187 06-11-2007 04:03 PM

Honestly, the upgraded instructions are not clear.

If we already had 1.0 / 1.1 installed, all we had to do was upload files, edit the modify options removing the 1.0 / 1.1 code, then add the 1.2 code then import the chatbox xml and we are done?

You should have a specific "UPGRADE" section instead of mixing it in with the full install.

Also in the usergroup permissions: "Can use command /annonce?"

It's "announce". Hope that helps the spelling error.

VBDev 06-11-2007 04:24 PM

Quote:

Originally Posted by bashy (Post 1266322)
Ok, since doing the update to 1.2 i now get this:

Code:

Chatbox_mode is not defined
http://www.bashys-place.com/forums/clientscript/mgc_chatbox.js
Line: 44

When i try to test the shoutbox i get this error in the error console

Code:

Chatbox_mode is not defined
http://www.bashys-place.com/forums/clientscript/mgc_chatbox.js
Line: 64

The chatbox dont work at all, it just says loading now!!

Line 44 is
Code:

refreshAjax.send('mgc_chatbox.php', 'do=ajax_refresh_chat&cb_status=open&chatbox_mode=' + chatbox_mode + '&canal=' + canal_actif);
line 64 is
Code:

getDerniersMsgAjax.send('mgc_chatbox.php', 'do=ajax_refresh_chat&cb_status=fermee&chatbox_mode=' + chatbox_mode + '&canal=' + canal_actif);

But it works fine with ie ? This kind of error seems like you had customized the template of the chatbox.

Am I right ? This causes the chatbox_mode javascript var to be used in the clientscript mgc_chatbox.js file but as It's not in your template, it fires an error !

This why I tell in the installation instructions to revert the templates before :)

Quote:

Originally Posted by Ranger187 (Post 1266327)
Honestly, the upgraded instructions are not clear.

If we already had 1.0 / 1.1 installed, all we had to do was upload files, edit the modify options removing the 1.0 / 1.1 code, then add the 1.2 code then import the chatbox xml and we are done?

You should have a specific "UPGRADE" section instead of mixing it in with the full install.

Also in the usergroup permissions: "Can use command /annonce?"

It's "announce". Hope that helps the spelling error.

Yeah after rereading, instructions are not that clear.

You should :
  1. Replace the files on the ftp by the one of the new version
  2. Revert the modifications you have done to the templates of the chatbox (if any)
  3. Remove the modificaton of the modify_options template of the chatbox v1.1
  4. Import the new xml (don't forget to select the Allow Overwrite option)
  5. Do the new modification of the modify_options template
  6. Enjoy
No no there are no erros ! I develop this hack for the french community at first and we say annonce hereby :) So I won't make two versions of the commands or it will be horrible to maintain.

Anyway I don't think that's a big problem as the command syntax is shown in the help ;)

VBDev 06-11-2007 04:26 PM

* Upgrade "how to" explain added to the modification post *

da420 06-11-2007 04:53 PM

Yeah, I had the same problems as bashy but then I remembered I changed my templates and it had to be reverted. Upgraded, and working fine. Thanks vBDev!

taxick 06-11-2007 06:40 PM

Quote:

Originally Posted by VBDev (Post 1266294)
Humm really strange ! Have you try to repair the table as stated in the error ? (through phpmyadmin for example).

Hey :)

I repaired my sql database, and now its works :) - Thx for the update

redlabour 06-11-2007 07:52 PM

Quote:

Originally Posted by VBDev (Post 1266334)
You should :
  1. Replace the files on the ftp by the one of the new version
  2. Revert the modifications you have done to the templates of the chatbox (if any)
  3. Remove the modificaton of the modify_options template of the chatbox v1.1
  4. Import the new xml (don't forget to select the Allow Overwrite option)
  5. Do the new modification of the modify_options template
  6. Enjoy

1. Sure - what else?

2. Sure!

3. The Code is the same !!!??? :erm:

4. Sure !

5. Again - the Code
Code:

<div class="smallfont">$mgc_cb_ucp</div>
is the same.

Bugs:

1. The "Help" is not longer available.

2. The Teamsection is lost - no Tabs and no Pics to switch.

bashy 06-11-2007 07:53 PM

Hi

I have not customised and of the chat templates that i know of...
I have just checked and there are difference between the 2 versions 1.1 and 1.2
The change happened obviously when i upgraded, there was no edites made to any of the templates myself.... see enclosed file, this is the mgc_chatbox template compare....there is also a screener of the mgc templates that shows only the chatbox template had been changed (by upgrade)

So, are you saying i need to revert the template after the upgrade has changed it?

EDIT:

Ok done the revert and it works ok now, I dont understand actually....
When you do the revert, does it revert back to the 1.1 version of the template?
If so what was the point in the changes in the 1.2 template?

BTW still cannot inline edit using IE 7 version: 7.0.6000.16448

I concur, there is no longer any team icons nor help option!!

I am gonna go back to 1.1 if its possible lol

Back to 1.1 and work ok apart from the inline edit :(

redlabour 06-11-2007 08:01 PM

Quote:

Originally Posted by redlabour (Post 1266461)
Bugs:

1. The "Help" is not longer available.

2. The Teamsection is lost - no Tabs and no Pics to switch.


Found the Solution - everyone has to set the Userrights completely new for the Chatbox. :cool: ;)

But i still see only the same Teammode then before - there are no new "Tabs".


All times are GMT. The time now is 09:58 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.02381 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
  • (9)bbcode_code_printable
  • (6)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