catalin8
10-03-2005, 08:43 PM
Hello everyone.
I've tried without success to use some of vbulletins variables outside vbulletins directory.
my forum is on forum.mydomain.com and I want to check, on one of the pages from mydomain.com, if the current visitor is logged on and if so find out his/her username
I've tried it using:
require('./forum/global.php');
if ($userinfo['userid']!=0) {
print "Welcom back," .$userinfo['username'];
}
else
{
// .... please login
}
1. what am I doing wrong
2. can I find somewhere a list of exlusive vb variables and what they contain ?
thank you
I've tried without success to use some of vbulletins variables outside vbulletins directory.
my forum is on forum.mydomain.com and I want to check, on one of the pages from mydomain.com, if the current visitor is logged on and if so find out his/her username
I've tried it using:
require('./forum/global.php');
if ($userinfo['userid']!=0) {
print "Welcom back," .$userinfo['username'];
}
else
{
// .... please login
}
1. what am I doing wrong
2. can I find somewhere a list of exlusive vb variables and what they contain ?
thank you