Thanks Xenon
I have the following code, but it produces a blank page:
PHP Code:
<?
include('../forum/global.php');
if ($bbuserinfo['userid']!=0) {
$username=$bbuserinfo['username'];
echo $username;
}
?>
Seems like if I include global.php into a file that is not in the forum directory, nothing works.
Any ideas how to make it work?
One more thing. I need to use vB's database to authenticate for some other stuff on my site. that means my own script will connect to the database. So I'm wondering how can I check if a user has activated his account in my SQL queries.