PDA

View Full Version : Want to use vBulletin variables on NON vb page..


Neo-Storm
05-06-2003, 09:45 AM
I am going to make a new site.. I want to use vB's membersystem for it..

But i can't find how to check if a user is logged in, what's his name is, and how to let him respond on my news and other items...

Can someone explain that to me...

Here or @ msn: shell@xtrusion.net

Thanks in advance!

Xenon
05-06-2003, 03:55 PM
please do a search, this has been answered several hundred times....

hint: it has to do with require global.php

Neo-Storm
05-06-2003, 06:21 PM
I really cant find it, have searched for: Variables on non vbulletin page, but then i geth hundreds of nonsence :)

filburt1
05-06-2003, 06:34 PM
At the top of every PHP page you want powered by vB, add:

require("/path/to/vb/global.php");

Neo-Storm
05-06-2003, 07:28 PM
And than i can check with:

if ($bb[username] == 'loggedon')
{
echo "loggedon";
}

Like this?