ReCom |
10-20-2008 02:22 AM |
Quote:
Originally Posted by VBDev
(Post 1647125)
I am sorry but that bit of code works for some but won't work for others.
I am saying that because this variable is used in the chatbox code to get the path to javascript files. And using the bburl option variable would lead to a path to javascript files using http//... which is recognize by some browsers as a security concern and stop the chatbox.
|
Hmmm ... but pls take a look of the said plugin:
Code:
require_once(DIR . '/includes/functions_mgc_cb_evo.php');
mgc_cb_evo_unserialize_user_params();
if (THIS_SCRIPT == 'adv_index' && !empty($forumpath))
{
$mgc_cb_evo_floc = $forumpath . '/';
}
else
{
$mgc_cb_evo_floc = '';
}
Question: where does $forumpath value come from? I peeked into the vBadvanced's main PHP (adv_index.php or something, since I have renamed mine to portal.php)
Code:
// ============================================
// Enter the full path to your forum here
// Example: /home/vbadvanced/public_html/forum
// ============================================
$forumpath = '/home/' . $acctname . '/public_html/forum';
And if $mgc_cb_evo_floc is going to be used in <script> tag in HTML output, I don't expect the browser can resolve the server full path either ...
|