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