Eddymvp
08-04-2007, 01:01 AM
I had my website running together with Vbulletin and the way I did this was creating a page and including global.php file and I would have access to all the functions in VBulletin.
However all the sudden everything stopped working and its saying that I do not have permission to view that page.
Here is what I had
this is the index page.
error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('MVP_PORTAL', true);
chdir('path/to/forum/');
require_once('./global.php');
// Content of the page would go here"
on the global.php file I inserted the following code.
if (defined('MVP_PORTAL'))
{
$phrasegroups = array_merge($phrasegroups,
array(
'calendar',
'adv_portal',
'postbit'
)
);
$specialtemplates = array_merge($specialtemplates,
array(
'mvp_standing',
'mvp_news')
);
$globaltemplates = array_merge($globaltemplates,
array(
'mvp_portal',
'mvp_news',
'mvp_portal_footer'
)
);
}
This worked for almost 3 years and all of the sudden it stops working and I haven't changed any of the code.
However all the sudden everything stopped working and its saying that I do not have permission to view that page.
Here is what I had
this is the index page.
error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('MVP_PORTAL', true);
chdir('path/to/forum/');
require_once('./global.php');
// Content of the page would go here"
on the global.php file I inserted the following code.
if (defined('MVP_PORTAL'))
{
$phrasegroups = array_merge($phrasegroups,
array(
'calendar',
'adv_portal',
'postbit'
)
);
$specialtemplates = array_merge($specialtemplates,
array(
'mvp_standing',
'mvp_news')
);
$globaltemplates = array_merge($globaltemplates,
array(
'mvp_portal',
'mvp_news',
'mvp_portal_footer'
)
);
}
This worked for almost 3 years and all of the sudden it stops working and I haven't changed any of the code.