The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
user_id from SESSION/COOKIE
Pulling user_id from vbulletin session/cookie
Ok im trying to create an area of my site, not withing vbulletin templates but would like it to pull the user_id of the logged in user from the cookie/session. How would i go about this? |
#2
|
||||
|
||||
couldn't you just include the global.php and then user the $bbuserinfo array?
failing that use the $_SESSION or $_COOKIE super global. the most secure would be to use the global.php method. |
#3
|
||||
|
||||
Include global.php and it's accesabile via $bbuserinfo['userid'], if that variable is set the user is logged in, if it's not they're logged out
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|