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)

alessai 06-11-2007 11:38 AM

Quote:

Originally Posted by Rat1972 (Post 1266160)
I have folllow all the steps, but the shoutbox doesn't show up on the forum. I also checked the usergroup, can anyone tell me what maybe went wrong?


:p have you checked if the chat box is on ?

Sofia 06-11-2007 11:57 AM

Quote:

Originally Posted by Rat1972 (Post 1266160)
I have folllow all the steps, but the shoutbox doesn't show up on the forum. I also checked the usergroup, can anyone tell me what maybe went wrong?

If you have enabled chatbox in options and edit usergroups permissions, read the file Read Me and find the bloc : " Display the Chatbox on some styles". You can carry out modifications in a plugin and in your template FORUMHOME.

Tulsa 06-11-2007 12:18 PM

One question, where the members name is surrounded in <> signs, where do I go to change that to something else of my choosing?

Sofia 06-11-2007 12:44 PM

Quote:

Originally Posted by Tulsa (Post 1266200)
One question, where the members name is surrounded in <> signs, where do I go to change that to something else of my choosing?

In the xml, find :

HTML Code:

&lt;$chatbit[author]&gt;

'&lt;' and '&gt;' are < ... >

ragtek 06-11-2007 12:57 PM

search for it in the mgc_chatbox_bit template
that you have not to import the hack a second time ;)

Sofia 06-11-2007 01:01 PM

Yes, Ragtek is right, you can edit this template and search
&lt;$chatbit[author]&gt;

taxick 06-11-2007 01:08 PM

Hey...

I get this error, when i try to update the chatbox from 1.1 to 1.2

Database error in vBulletin 3.6.5:

Invalid SQL:
DELETE FROM phrase WHERE product = 'mgc_chatbox' AND languageid IN (-1, 0);

MySQL Error : Incorrect key file for table './******/phrase.MYI'; try to repair it
Error Number : 126
Date : Monday, June 11th 2007 @ 02:00:37 PM
Script : http://www.*******/forum/admincp/plu...=productimport
Referrer : http://www.*******/forum/admincp/plu...?do=productadd
IP Address : **************
Username : TaxicK
Classname : vB_Database

Magnumutz 06-11-2007 02:11 PM

Heh, glad to see the update done :)
*Clicks Install*

VBDev 06-11-2007 02:59 PM

Quote:

Originally Posted by taxick (Post 1266242)
Hey...

I get this error, when i try to update the chatbox from 1.1 to 1.2

Database error in vBulletin 3.6.5:

Invalid SQL:
DELETE FROM phrase WHERE product = 'mgc_chatbox' AND languageid IN (-1, 0);

MySQL Error : Incorrect key file for table './******/phrase.MYI'; try to repair it
Error Number : 126
Date : Monday, June 11th 2007 @ 02:00:37 PM
Script : http://www.*******/forum/admincp/plu...=productimport
Referrer : http://www.*******/forum/admincp/plu...?do=productadd
IP Address : **************
Username : TaxicK
Classname : vB_Database

Humm really strange ! Have you try to repair the table as stated in the error ? (through phpmyadmin for example).

Rat1972 06-11-2007 03:02 PM

Quote:

Originally Posted by Sofia (Post 1266184)
If you have enabled chatbox in options and edit usergroups permissions, read the file Read Me and find the bloc : " Display the Chatbox on some styles". You can carry out modifications in a plugin and in your template FORUMHOME.

oke thanks for the information

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".

bashy 06-11-2007 08:04 PM

oh ffs, wish you'd said a little sooner m8, i just gone back to 1.1 pmsl....... :o

VBDev 06-11-2007 08:19 PM

@Bashy: If you have insalled v1.2, then the revert of the templates make so that the templte of the master style is used so it's the 1.2 one :) Everything is allright for you now ? (Except from the inline chat edit ?)

@Redlabour: yeah as I said in the modification post, permissions for team command has been moved to the usergroup permissions for limiting of options in the vbulletin options and I found it was a better place for it!
What do you mean by the fact that you still only see the same teammode than before ? You mean that you still have the two tabs mode ? You can have the one tab mode (both team and general shouts in the same tab). In that mode buttons are not shown and you must use the /team command :).
The choice between the two mode is available in the acp.

The code in the modify_options is the same but the place where it must be put is not :)

bashy 06-11-2007 08:25 PM

Thanks a lot.... Yeah all working except inline for IE and guests cant see the shout box

I got them set so they can see the chat box but they still cannot? Any thoughts?

Hovering over the channel buttons say canal.... do i edit this in phrases or the template??

Edit:

Ok found it its in the template, changed it to Staff Chat and Member Chat :)

VBDev 06-11-2007 09:07 PM

Yeah for the guest, the option is present in the usergroup persmissions to see chatbox but not yet implemented in the code as stated in the description of the new version ;) I have put it coz I was doing all the permissions thing so that I won't need to dig in it again later :D

Hum for the canal name, this might come from a translation miss :) Will check that out later for next version.

Dream 06-11-2007 11:39 PM

Quote:

Originally Posted by VBDev (Post 1265973)
For RemiAlone, I had experienced such a problem between my local forum and one online. For my local forum, I had to put %d/%m/%y while on the online one d/m/y was just fine...

Don't know why :(

That's because of french locale I think. vbdate() has an option to turn off locale and use the date() function format instead "strsomething()" format.

VBDev 06-12-2007 04:51 AM

Hum, thanks for the advice Dream on the problem Dream :)

I'll correct that in the next version so !

unitedpunjab 06-12-2007 04:53 AM

I have two teams for my forum, so i have given them equal permissions. But when ever they chat on shoutbox usernames for both the teams appear with same color default: Orange.

I want to unique colors for both the teams. Like if one team has orange usernames, other can have black or green.

Please help.

And yeah i updated my MGC CHATBOX. ITZ WORKING LIKE CHAMP. But i was not able to find modify_options template anywhere. So i didn't removed that template yet. I have one template "modifyoptions" but it is without underscore.

And yeah one thing more, if certain usergroup doesn't have permission to use
/annonce command from shoutbox it create problem with database.

I entered
/annonce <text here> and pressed enter. A pop-up shoed up and when i closed it down, i was redirected to password change screen. Vbulletin was telling me that my password is 431 days old and expired. so u need to enter password.

Then i
/annonce from CP and tried again. it worked. But u should look after the error thing also...

bashy 06-12-2007 04:56 AM

Thanks, perhaps i should have a a little more :o Only tried to set the permissions about 4 times lol.....

Lok forward to the next update, great hack and gonna vote :)

Quote:

Originally Posted by VBDev (Post 1266527)
Yeah for the guest, the option is present in the usergroup persmissions to see chatbox but not yet implemented in the code as stated in the description of the new version ;) I have put it coz I was doing all the permissions thing so that I won't need to dig in it again later :D

Hum for the canal name, this might come from a translation miss :) Will check that out later for next version.


VBDev 06-12-2007 08:18 AM

Quote:

Originally Posted by unitedpunjab (Post 1266724)
I have two teams for my forum, so i have given them equal permissions. But when ever they chat on shoutbox usernames for both the teams appear with same color default: Orange.

I want to unique colors for both the teams. Like if one team has orange usernames, other can have black or green.

You mean the color of the username of your teams ? If in usergroups, you have set colors for the username in the forums, it shall be the same in the chatbox.

Quote:

Originally Posted by unitedpunjab (Post 1266724)
And yeah i updated my MGC CHATBOX. ITZ WORKING LIKE CHAMP. But i was not able to find modify_options template anywhere. So i didn't removed that template yet. I have one template "modifyoptions" but it is without underscore.

What does CHAMP mean ?

You don't have to remove the modifyoptions template (yup sorry little mistaking its witouth underscore) you have to remove the previous modifications you had to made for the v1.1 of the chatbox and apply the new modification.

Quote:

Originally Posted by unitedpunjab (Post 1266724)
And yeah one thing more, if certain usergroup doesn't have permission to use /annonce command from shoutbox it create problem with database.

I entered /annonce <text here> and pressed enter. A pop-up shoed up and when i closed it down, i was redirected to password change screen. Vbulletin was telling me that my password is 431 days old and expired. so u need to enter password.

Then i /annonce from CP and tried again. it worked. But u should look after the error thing also...

What does the popup was saying ? Normally, if permissions to use /annonce are good for you, you shall have a popup with : Announce was successfully modified or kind of (I don't know how Sofia translated it ;)).

Anyway, when changing the announce, I rebuild the vbulletin options datastore (as I update the mgc_chatbox_annonce setting, this is why it can be modified from both the chatbox and the acp). So maybe your options had not been update since a long time and you had a password age set (or kind of).

After having reset your passowrd, did the /annonce worked ?

Scotty2k 06-12-2007 09:34 AM

Hi,

no idea why but no shoutbox will work for me after new installation of server and vbulletin.

Is there a special option of configuring the apache ?

.. vbshout, dreamchat and MGC Chatbox will always freeze at "Loading.." and nothing happpens...

I can enter a text and the the text is visible in the archive but not in chatbox... only "Loading.."...

Could you please help me, my users are missing the chat and i have no idea how to fix it

VBDev 06-12-2007 11:00 AM

Quote:

Originally Posted by Scotty2k (Post 1266825)
Hi,

no idea why but no shoutbox will work for me after new installation of server and vbulletin.

Is there a special option of configuring the apache ?

.. vbshout, dreamchat and MGC Chatbox will always freeze at "Loading.." and nothing happpens...

I can enter a text and the the text is visible in the archive but not in chatbox... only "Loading.."...

Could you please help me, my users are missing the chat and i have no idea how to fix it

Does your server allows ajax requests ? Any other ajax functionnalities are working on your board ?

Maybe you should dig on that part coz this seems like ajax requests are not taken into account.

Scotty2k 06-12-2007 11:05 AM

You are right, there seems to be no ajax functionality on my server .. please cann you explain me how to turn it on ? The ajax function in vbulletin is turn on !

EDIT:

Found the error in language File .. Edit the Settings in my language German von ISO-xxxx to UTF-8 and now its working fine for me.

Seems to be, that ajax is expecting a special iso

VBDev 06-12-2007 12:02 PM

Yes that's exact ajax and more generally javascript needs the utf-8 encoding. :)

hardiono 06-12-2007 02:46 PM

Quote:

Originally Posted by VBDev (Post 1258244)
For the smilies problem, there may be a fix but I didn't tested it yet, so maybe you could try:
  1. Open the includes/function_mgc_cb.php file
  2. Find the getChatboxSmileys function
  3. In the line
    PHP Code:

    $chatbox_smileys .= '<a href="#" onclick="return ajout_smilie(\'' $textsmilie '\');" alt="' $smilie['title'] . '"><img src="' $smilie['smiliepath'] . '" border="0" /></a> '

  4. Replace # by #top

Thank you for this very nice mod, installed and voted for MOTM.
But I still could not fix the problem of jumping to the top after inserting smilie.

I changed "#top" to "#", and "" did not work, I changed it back to "#top," it keeps jumping.
Please help

Calibre_k 06-12-2007 03:31 PM

Sorry its working,

1 chat is too long how can i shorten it?

Any way to have it start & stop at a certain times of the day?

m002.p 06-12-2007 04:34 PM

Hi!

Great mod VBDev but havent installed it yet :(

My members like it on the homepage of VBa 3.0 as a module as well as the forumhome so until I can figure out how to do it with this mod I cant change from VbShout :(

Any ideas how to add it to VbAdvanced?

Also I have a question... is it possible to place the shoutbox under "whos online" rather than on top of the forums?

Thanks

pewp 06-12-2007 04:45 PM

Hey, I just downloaded/installed the newest version. I LOVE IT! the addition of the chatbox title and switching the placement of newest posts/editors are AWESOME!

thanks a bunch man, keep up the good work!

Tulsa 06-12-2007 04:45 PM

There is a tiny little issue with the top shouters in the archives. The heading reads 10 best shouters, when I only have 5 selected to be shown.

VBDev 06-12-2007 04:45 PM

Quote:

Originally Posted by hardiono (Post 1266969)
Thank you for this very nice mod, installed and voted for MOTM.
But I still could not fix the problem of jumping to the top after inserting smilie.

I changed "#top" to "#", and "" did not work, I changed it back to "#top," it keeps jumping.
Please help

I haven't look at that actually sorry, next version will try to look at that.

Quote:

Originally Posted by Calibre_k (Post 1266992)
Sorry its working,

1 chat is too long how can i shorten it?

Any way to have it start & stop at a certain times of the day?

What do ya mean by shorten it ?

For the certain times of the day, you mean only show chatbox between specified hours ?

I don't think it would be that useful, no?

VBDev 06-12-2007 04:50 PM

Quote:

Originally Posted by m002.p (Post 1267018)
Hi!

Great mod VBDev but havent installed it yet :(

My members like it on the homepage of VBa 3.0 as a module as well as the forumhome so until I can figure out how to do it with this mod I cant change from VbShout :(

Any ideas how to add it to VbAdvanced?

Also I have a question... is it possible to place the shoutbox under "whos online" rather than on top of the forums?

Thanks

To put it under the whosonline would be possible. You have to follow the little how to of the readme file for styles where the chatbox doesn't show on bottom of the page and do it so that the var to add in the template is under the whosonline.

For vbadvanced, you'll have to wait until next version I think.

Quote:

Originally Posted by Tulsa (Post 1267027)
There is a tiny little issue with the top shouters in the archives. The heading reads 10 best shouters, when I only have 5 selected to be shown.

Hum, I don't remember if I made that modification in the archive file, will put that in the todo list :)


All times are GMT. The time now is 02:30 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.02278 seconds
  • Memory Usage 1,873KB
  • 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
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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