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)

IvyKeepMommy 10-09-2007 11:08 PM

Quote:

Originally Posted by VBDev (Post 1355323)
It's possible to limit who can download the archives but not who can view.

If I do something like it would rather be to limit specified usergroup from seing the archives not a per user setting as it become more specific use.

I suppose this won't fill up your needs ?

No, that would work quite nicely for me.

VBDev 10-10-2007 10:37 AM

Quote:

Originally Posted by Dagoor (Post 1356156)
Thanks for this great product.

I installed this and everything is working except that i can get this thing below forum. I tried everything, double check all the codes again, everything is right. when i put it BELOW FORUM nothing happens when i put it ABOVE FORUM it appears.

the link in the navbar is working and takes me to the separate page for chatting but i need it on the forumhome. i know i cant add this: $mgc_chatbox but it could be usefull for my template.

I'm using Blaze for tamplate that has a right login column in its forumhome. maybe that is throwing it off!

I also have 2 other products at the bottom of the page. last 24 users online and adv statistic i even disabled these but nothing...

what part am i doing wrong?

Check the readme, there is a style issue tip which should help you to go through that problem ! :)

Quote:

Originally Posted by IR15H (Post 1356224)
Yeah. :/

That's strange, I add it to the bug list to check that out for the next version.

VBDev 10-10-2007 10:38 AM

Quote:

Originally Posted by IvyKeepMommy (Post 1356535)
No, that would work quite nicely for me.

I add it to the todo list :)

angeljs 10-10-2007 11:24 AM

I can't display the images for the bbcode or the shoutbox submit image.
http://www.swapahome.co.uk/index.php

Edit: My bad....I hadn't uploaded the images to the correct style folder! :erm:

eghm 10-10-2007 05:11 PM

Nice.

My team uses IRC so they are used to scrolling from the bottom up, be a nice feature for adimcp configuration I think.

I didn't see these images include in the download, and I'm missing something?
Code:

File does not exist: /public_html/testvb/images/smilies/cheesy.gif
File does not exist: /public_html/testvb/images/smilies/shocked.gif
File does not exist: /public_html/testvb/images/smilies/smiley.gif


VBDev 10-11-2007 05:28 AM

Quote:

Originally Posted by angeljs (Post 1356805)
I can't display the images for the bbcode or the shoutbox submit image.
http://www.swapahome.co.uk/index.php

Edit: My bad....I hadn't uploaded the images to the correct style folder! :erm:

No big deal ;)

Quote:

Originally Posted by eghm (Post 1357004)
Nice.

My team uses IRC so they are used to scrolling from the bottom up, be a nice feature for adimcp configuration I think.

I didn't see these images include in the download, and I'm missing something?
Code:

File does not exist: /public_html/testvb/images/smilies/cheesy.gif
File does not exist: /public_html/testvb/images/smilies/shocked.gif
File does not exist: /public_html/testvb/images/smilies/smiley.gif


This functionnality is already implemented :)

This is maybe because this smileys are in your database but not present anymore in your folders.

You should remove them in the smileys manager of the acp.

alessai 10-11-2007 06:29 PM

i have an idea

:D<< maybe its stuiped .... but when any one refresh the page the chatbox go and fetch the data again (And sometimes no one cares about the chatbox) so the idea i had is to add one tiny option in the admincp which make the chatbox in the unactive mode when someone open the page .... and im sure this option will make load lesser by 50% at least

VBDev 10-12-2007 06:01 AM

Yup I add it :)

Dagoor 10-12-2007 09:26 AM

thanks man its working now!
see if my vps can handle you chatbox :D

Verbose 10-12-2007 09:00 PM

Just installed... looks great!

jonbaker 10-12-2007 11:46 PM

forgive my ignorance, and my un-willingness to read over 120 pages of text..

i am new to Vbulletin, and modding. i get this error..

MySQL Error : Unknown column 'nbmsgshowchatbox' in 'field list'
Error Number : 1054


www.metrodubs.com


thank you.

VBDev 10-14-2007 04:32 PM

Quote:

Originally Posted by jonbaker (Post 1358604)
forgive my ignorance, and my un-willingness to read over 120 pages of text..

i am new to Vbulletin, and modding. i get this error..

MySQL Error : Unknown column 'nbmsgshowchatbox' in 'field list'
Error Number : 1054

www.metrodubs.com


thank you.

No problem.

I think you haven't installed all the products or that you have installed the product before putting the files ?

jonbaker 10-14-2007 05:00 PM

well i went he the "new installation" i can double check i missed something. is there a place i should start my investigation?

VBDev 10-15-2007 04:55 AM

Yup:
- First check if both bitfield_mgc.xml and bitfield_mgc_chatbox.xml are in the includes/xml folder => If not, then add them and reinstall the chatbox
- Then go in your admincp in the product list check if there is the MGC chatbox and the MGC bitfields products => If not, then upload the missing product.

This should cover your problem.

iJoe 10-15-2007 11:09 AM

for some reason my box just loads.... and loads..... and loads....

VBDev 10-15-2007 01:20 PM

Have you uploaded the js files ?

jonbaker 10-15-2007 01:54 PM

where does this file go
"templateedits-mgc_chatbox.xml"

it is just in the main chatbox folder

VBDev 10-15-2007 03:34 PM

This is if you want to do the automatic template edits with the TMS system of Andreas :)

If you have his product installed, with this xml file, template modifications are done only by uploading this xml file. (Instead of having to do them all manually).

Karabaja 10-15-2007 06:22 PM

Got a bug to report. I never noticed it on my board. But installed a chatbox on friends board which is not English but in Ex-Yugoslavian languages like Croatian,Bosnian etc.
And this happens when someone tries to use a special character letters from that language like:
Code:

Čć?đ?
A shout containing those letters is not displayed. Nor error received. But afterwards messages that don't contain them can't be posted either by that member, they get an error:
"error: please wait some seconds before sending a new message".

After that logging out seems to help to loose that error.

jonbaker 10-15-2007 06:51 PM

never mind.. got it.. !!! thank you for all your help!

Verbose 10-15-2007 08:31 PM

Hey, this mod rocks.. thanks so much!

I followed the install instructions and have it working well, but I have a small issue - the "MGC Chat" link in the top navbar (between "Calendar" and "New Posts") does not do anything when clicked on.

Here is the code I put into my navbar template that is showing this link...

Code:

<!-- START CHATBOX CODE -->

                        <td id="mgc_cb" class="vbmenu_control">

                            <a href="#">MGC Chatbox</a>
                            <script type="text/javascript">
                                vbmenu_register("mgc_cb");
                            </script>
                        </td>
               
<!-- END CHATBOX CODE -->

Any ideas? :confused:

I'm running vBulletin 3.6.8 and MGC Chatbox 1.5 (English). Thanks.

Verbose 10-15-2007 08:36 PM

I just realized that this link doesn't actually link anywhere, which explains why the link doesn't work...

Code:

<a href="#">MGC Chatbox</a>
Is this a bug or did I do something wrong?

class101 10-15-2007 09:51 PM

Greetings from france, god job buddie, france 0wnz, well ok no luck at rugby ======> []

class101 10-15-2007 11:13 PM

looking for the vbadvanced CMPS integration and all is awesome in this addon

class101 10-15-2007 11:29 PM

Ha no found a bug, I'm using vbulletin replacements variables to rename defaut vbulletin's smillies to mine, they are correctly appearing in the smillies mebu selection but when the post is displayed the replacement variable isn't used so the default smillies appear

in french, j'utilise les variables de remplacements pour détourner le nom des smilies par défaut de vbulletin sur les miens, ça me permet de garder le skin de vbulletin standard intacte tout en pouvant rediriger les images vers celles que je veux grace aux vars de remplacement. Apparemment ça marche bien dans le menu de selection des smiles mais quand je poste, le smilie de vbulletin par defaut est affiché donc la var de remplacement na pas été prise en compte.

J'ai pris une screen sur le problème , c'est plus parlant, j'y ai poste le smilie qui devrait etre bleu mais comme la var n'est pas prise en compte j'ai le redface normal de vbulletin.

VBDev 10-16-2007 04:07 AM

Quote:

Originally Posted by Karabaja (Post 1360923)
Got a bug to report. I never noticed it on my board. But installed a chatbox on friends board which is not English but in Ex-Yugoslavian languages like Croatian,Bosnian etc.
And this happens when someone tries to use a special character letters from that language like:
Code:

Čć?đ?
A shout containing those letters is not displayed. Nor error received. But afterwards messages that don't contain them can't be posted either by that member, they get an error:
"error: please wait some seconds before sending a new message".

After that logging out seems to help to loose that error.

This is a problem of character encoding and ajax.

I am unfortunately not skilled enough in that domain to find out what could fix that :(

Do you encounter the same problem when using the quick reply with ajax ?

VBDev 10-16-2007 04:10 AM

Quote:

Originally Posted by jonbaker (Post 1360945)
never mind.. got it.. !!! thank you for all your help!

Cool :)

Quote:

Originally Posted by Verbose (Post 1361052)
I just realized that this link doesn't actually link anywhere, which explains why the link doesn't work...

Code:

<a href="#">MGC Chatbox</a>
Is this a bug or did I do something wrong?

There are two bit of code to add in the navbar template, you added one but maybe not the other part ?

Quote:

Originally Posted by class101 (Post 1361117)
Greetings from france, god job buddie, france 0wnz, well ok no luck at rugby ======> []

Yes :(

Quote:

Originally Posted by class101 (Post 1361172)
Ha no found a bug, I'm using vbulletin replacements variables to rename defaut vbulletin's smillies to mine, they are correctly appearing in the smillies mebu selection but when the post is displayed the replacement variable isn't used so the default smillies appear

in french, j'utilise les variables de remplacements pour d?tourner le nom des smilies par d?faut de vbulletin sur les miens, ?a me permet de garder le skin de vbulletin standard intacte tout en pouvant rediriger les images vers celles que je veux grace aux vars de remplacement. Apparemment ?a marche bien dans le menu de selection des smiles mais quand je poste, le smilie de vbulletin par defaut est affich? donc la var de remplacement na pas ?t? prise en compte.

J'ai pris une screen sur le probl?me , c'est plus parlant, j'y ai poste le smilie qui devrait etre bleu mais comme la var n'est pas prise en compte j'ai le redface normal de vbulletin.

I think that replacement variables are maybe not taken into account in the shouts, this is strange, I add it to the list to check that out.

Karabaja 10-16-2007 06:55 AM

Quote:

Originally Posted by VBDev (Post 1361303)
This is a problem of character encoding and ajax.

I am unfortunately not skilled enough in that domain to find out what could fix that :(

Do you encounter the same problem when using the quick reply with ajax ?

Actually I do, never noticed that either. But writing a numerical code of that character works, and it is translated to the letter in shoutbox.
Like if I write:
Code:

&?#268;
it will turn out as:
Code:

Č
in the shoutbox. Maybe that can be of some help.

P.S. Had to insert a question mark after "&" sign in that numerical code or else it got translated into letter Č here as well :)

class101 10-16-2007 10:51 AM

Btw if someone with a vbAdvanced CMPS not in the same home of its forum and congrats to display the chatbox on the cmps homepage please post informations here for everyone.

class101 10-16-2007 12:41 PM

je suis sur la piste de trouver ce qui ne va pas VBDev pour vbadvanced, je te met au courant des que ma box n'ets plus bugg? mais jarrive enfin a lafficher sur vba et le forum sans qu'il n'ai ? ?tre dans le m?me dossier :)

class101 10-16-2007 03:54 PM

MGC Chatbox 1.5 & vBadvanced CMPS Integration

First read the documentation to build the chatbox module in vBa, I assume you already have your Chatbox template module linked to a template adv_portal_mgc_chatbox with the variable
$mgc_chatbox into. Then follow theses instructions:

1) MGC Chatbox > Display and position > Display on defined pages above the navbar > NO
2) MGC Chatbox > Display and position > Display on defined pages in a variable > YES
3) vBa CMPS > Default Settings > Main Options > Portal Output Global Variables > Enter the value mgc_chatbox
4) Plugins & Products > Plugin Manager > Product : MGC chatbox : Variables globales chatbox > Click Large Edit Box and start editing as mentioned below:

FIND

Code:

        if (THIS_SCRIPT == 'adv_index' && !empty($forumpath)) {
                $mgc_cb_floc = $forumpath;
        } else {
                $mgc_cb_floc = '.';
        }

AND DELETE IT, SAVE THE FILE.

5) Styles & Templates > Style Manager > Edit Templates > MGC Chatbox Templates > mgc_chatbox and start editing as mentioned below:

FIND

Code:

var mgc_cb_jsloc = "$mgc_cb_floc";
REPLACE BY

Code:

var mgc_cb_jsloc = "$vboptions[bburl]";
FIND

Code:

<script type="text/javascript" src="$mgc_cb_floc/clientscript/mgc_chatbox.js"></script>
REPLACE BY

Code:

<script type="text/javascript" src="$vboptions[bburl]/clientscript/mgc_chatbox.js"></script>
6) Styles & Templates > Style Manager > Edit Templates > MGC Chatbox Templates > mgc_chatbox_editor and start editing as mentioned below:

FIND

Code:

<a href="mgc_chatbox.php?$session[sessionurl]do=view_chatbox" target="_blank">
REPLACE BY

Code:

<a href="$vboptions[bburl]/mgc_chatbox.php?$session[sessionurl]do=view_chatbox" target="_blank">
FIND

Code:

<a href="mgc_chatbox.php?$session[sessionurl]do=view_chatbox" target="_top">
REPLACE BY

Code:

<a href="$vboptions[bburl]/mgc_chatbox.php?$session[sessionurl]do=view_chatbox" target="_top">
Pay attention to correct each steps carefully and MGC will run smoothly :) (This does not alter in any way how MGC is working, I have checked carefully my modifications the way that it shouldnt produce new bugs or disable functions, but if you have a problem feel free to report.)
It makes MGC no more dependent on directories paths so you must be able to place it in any dir/pages with $mgc_chatbox like vba wich is often placed in another one.

france 0wwnz ;)) Greetings VBDev , hope I helped you out

Amiga75 10-16-2007 05:21 PM

Great, Thanks.

class101 10-17-2007 01:17 AM

have figured out how to workaround the chatbox width problem on the portal, when you have a small width portal then the chatbox is too long and will break the layout, figured out how to correct it like in the picture attached, if some need explanations feel free to request

VBDev 10-17-2007 05:27 AM

Thanks for your sharing class101.

However, your solution was kinda like the previous way I did the integration with vbportal and also why I removed it.

Let me explain it a bit.

In that code :
Code:

var mgc_cb_jsloc = "$vboptions[bburl]";
You're adding the $vboptions[bburl] var. So ajax calls in the mgc_chatbox.js file will be done with a full http url.

Calling ajax with full http url is generally not allowed by browsers (forbidden action in the javascript language definition).

It might work on some host but it might also not work at all on others.

So I recommend to becareful when using your fix as this could not work.

class101 10-17-2007 09:44 AM

No problems in IE and Firefox, who cares of others ? ;) You must try out the various browsers ouuta there but I doubt this is a problem, I have IE 7 + Firefox and there is no problems at all , no scripting error spawn at all so I guess all is ok if both major broswers are rendering it correctly, personnaly I prefer to use that way because the forum path isn't defined in all vbuletin config, most are forgetting to set it up, and having the local path of the computer showable in the source is not really security friendly :) I mean you just have to read the source of the index to read what is the full system path with the /home included of your box, really not security friendly (that's probably why vbulletin replaces the defaults mysql error page by a standalone one wich looks like a 404 error to hide the path to each errors).

Well anyway you dont like it or not I think I showed you enough to understand from where vbadvanced is giving some complications, that path can be modified in seconds if you prefer another way but the main goal to make 1.5 working with vba is done :)

VBDev 10-17-2007 10:42 AM

This doesn't seem to depend on the browser.

In the 1.4 version, the code was the same as yours but this caused problem on some host.

Don't know exactly why on some but not all ... But when there was an error it said that this action was not allowed (I mean the call of a js files with full http url).

Putting the $forumpath was the only simple way I found as for now. Indeed it might not be secure enough but the big problem is the full http url in the path.

This problem is not that simple and needs more reflexion to find the perfect solution which I don't have for the moment.

class101 10-17-2007 11:01 AM

a ok I see you mean some web hosting problems. Well then warn in the documentation some host may disallow direct .js linking explaining a workaround for that issue because your script is very fine and that's not to you to workaround stupid server's configuration, just my 2cent mind.

jonbaker 10-17-2007 05:30 PM

new problem. it seems that some users do not have access to the chatbox, but many others do. they are all lumped in the same primary usergroups. the odd think is that i have a test screen name that does not have access to the chatbox when i log in under that name.

VBDev 10-18-2007 05:22 AM

Have you made the modifications to the modifyoptions template ?

andrewtr89 10-18-2007 10:24 PM

Quote:

Originally Posted by VBDev (Post 1348745)
It seems that it depends of the server configuration coz user with big boards haven't experienced such problems while few of you have.

What refresh rate have you put for the chatbox ?

Have you activated team message warning system and inactive mode ?



I have the reset rate at 10 seconds.

All Mods and Admins (11 total) have access to the chatbox. Only registered users with 5 or more posts can view it, which is only around 500 members.


All times are GMT. The time now is 06:14 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.03317 seconds
  • Memory Usage 1,863KB
  • 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
  • (19)bbcode_code_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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