The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
how to use vb exclusive variables outside vb directory
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 |
#2
|
||||
|
||||
1) Cookies set by forum.mydomain.com by default are not readable by mydomain.com
2) It's $bbuserinfo (for vBulletin 3.0) or $vbulletin->userinfo (for vBulletin 3.5) |
#3
|
|||
|
|||
that was it, thank you Kirby
|
#4
|
|||
|
|||
Quote:
many thanks for any help! |
#5
|
|||
|
|||
Set the cookie domain to .mydomain.com (mind the leading dot). Try if that works.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|