The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
What variables must I pass from page to page ?
Hi,
I developed a custom page and I see that I forgot to pass some parameters like "userid" to the page. I don't really need this one, but it looks like this parameter should not be lost because it is used on other VB pages. What are the parameters that must always be passed from page to page when a user is logged in ? Regards, Razvan M. |
#2
|
||||
|
||||
You only have to call global.php, it will handle all that for you.
|
#3
|
|||
|
|||
Quote:
Actually, I am asking this because on a custom page the following: $user_id = $vbulletin->userinfo['userid']; is not defined while this: $username = $vbulletin->userinfo['username'];; is defined. Why is the "userid" not available ? |
#4
|
||||
|
||||
How is your page coded?
|
#5
|
|||
|
|||
This is happening inside a function:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|