Borbole: it's pretty much the whole code.. except the <?php tags.. here it is everything again (just a very simple code):
Code:
<?php //test.php
$curdir = getcwd();
chdir($curdir.'/forums');
require_once('./global.php');
//Use $bbuserinfo.
echo('userid: ' . $vbulletin->userinfo['userid']);
echo('userid: ' . $vbulletin->userinfo['username']);
chdir($curdir);
?>
Adrian:
Your comment kindda made me think.. but I believe it is, cuz this test.php is on the same host and everything, just on an upper dir of the forums, and I'm accessing both (the forums and the test.php) on the same browser...