The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Pull user details into new PHP page
We are creating a classifieds section in VB4 and created a PHP page and a template to go with it, and we require help with getting the user details onto this new php page as a variable.
We are fully versed in PHP, we just need to know where to look for these details. Your help is very much appreciated as we are a bit stuck. |
#2
|
|||
|
|||
You just need to include global.php. But the current directory needs to be the vb directory before you include global.php, so if your page is in another directory, you'd need something like:
Code:
$savedir = getcwd(); chdir('/path/to/vb/dir'); require_once('./global.php'); chdir($savedir); Once you do that, the user information will be in $vbulletin->userinfo[] (assuming the user is logged in). |
#3
|
|||
|
|||
Thanks mate, the coder seemed to nod when he read it so we will give it a whirl.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|