The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Like the webmasters have done here, I want to put a table cell on my site which contains the user's info about his vB account, as well as the last 5 posts. I know how to get the last five posts, but how do i get the user's info?
|
#2
|
||||
|
||||
Easy.
As long as you have called global.php, all that info is available to you. $bbuserinfo[musername] $bbuserinfo[usergroupid] etc etc. Probably better to make a template then serve the page as a VB page. ------------------------------------ First, create a PHP page PHP Code:
then in your AdminCP, in the Style Manager - create a new Template Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <title>$vboptions[bbtitle]</title> $headinclude </head> <body> $header $navbar <YOUR CONTENT HERE> $footer </body> </html> Be sure to keep your names matching (template name in your PHP file refers to the new template you just made - so keep the name the same) And then, furthermore, you can easily add the 'Who's Online' data to you includes/functions_online.php file so you dont get the 'Unknown Location' in the WOL. BTW - this is based on a VB 3.0.8 installation (just realised the initial post date - oops) |
#3
|
|||
|
|||
or you could always just use vbadvanced, that pretty much has all the tables you'll need.
|
#4
|
||||
|
||||
This thread is 4 years old!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|