Quote:
Originally Posted by futureaudio
You need to include global.php and declare $vbulletin as global to be able to access vbulletin and related information:
Code:
require_once('./global.php');
global $vbulletin;
|
hi futureaudio,
thank you for your answer.
I think global.php for
vb4.. My question for
vb5
Because show "Access denied." error when put
Code:
require_once('c://wamp/forum/core/global.php');
in my header
----
I added this codes to my header file.
Code:
chdir($forumpath);
require_once('./config.php');
require_once($config['core_path'] . '/includes/config.php');
global $vbulletin;
but i cant get username etc.
Code:
$vbulletin->userinfo['username'];