View Full Version : vB info on the main page of a site?
BrownieDX
10 Nov 2001, 21:29
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?
GlobalFusion
15 Aug 2005, 13:45
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
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Then upload it where its needed. (root dir to make things simple)
then in your AdminCP, in the Style Manager - create a new Template
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
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)
Wordplay
15 Aug 2005, 13:55
or you could always just use vbadvanced, that pretty much has all the tables you'll need.
This thread is 4 years old!
vBulletin® v3.6.12, Copyright ©2000-2013, Jelsoft Enterprises Ltd.