The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Fetch User Information
Hello,
I am writing a script and have the base function working. Now i would like to move it into vbulletin. I am unable to figure out how to get it to use vbulletins user information (just a username is enough). Can someone tell me the variable I need for this (and any required includes to retrieve it). I intend to run the page inside an Iframe so need to know how to make a full page that just outputs the users username (if logged in) otherwise it just posts "Guest". Anyone who can help is greatly appreciated. Thankyou |
#2
|
||||
|
||||
Take a look at line 395 of the index.php file in your forums directory.
|
#3
|
|||
|
|||
Do i need to include/require any particular files? or should
Code:
<? echo $vbulletin->userinfo['username']; ?> |
#4
|
||||
|
||||
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|