The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
User posts and Registry Date on Forumhome?
I am currently making a skin for my board and i've created a box that i've placed designated fields for the following:
Username they are logged in as The total amount of posts they have And the date which they registered Seeing as how this info is all contained in the postbit i was wondering how you could incorporate that information into the forumhome? because simply copying the variables from the postbit doesnt work because it calls from the showthread.php file im assuming... so from my guess it would be a bit of coding you would need to add to the index.php... if anybody could help me with this i'd greatly appreciate it :nervous: to view what i am talking about goto: http://micbooth.com/forums/index.php?&styleid=0 its the box on the right hand side under the topsite sponsor box |
#2
|
|||
|
|||
Seeing as how this info is all contained in the postbit
The information is available to the postbit template because the values are setup by showthread.php and the functions it calls, primarily the longish 'construct_postbit' function. You should be able to reference $bbuserinfo in index.php to get what you need for the currently logged-in user. You might try this... In index.php, find: Code:
if ($bbuserinfo['userid']) { // registered user $showmemberwelcome = true; Code:
$myUserInfo['posts'] = vb_number_format($bbuserinfo['posts']); $myUserInfo['datejoined'] = vbdate($vboptions['dateformat'], $bbuserinfo['joindate']); Code:
<if condition="$showmemberwelcome"> ... $bbuserinfo[username] ... ... $myUserInfo[datejoined] ... ... $myUserinfo[posts] ... </if> |
#3
|
|||
|
|||
is that coding from vb3? because i cant seem to locate the first bit of coding in the index.php... im workin in 2.3.5, ive tried to insert that code in the similar spot in the index file but it doesnt work..
hmmm.. i see that is the right way to go tho... ill keep trying, thx |
#4
|
|||
|
|||
this is the only bit of coding in my index.php i can find similar to that of which u posted... ive tried insertin the code you gave somewhere in it or after it and it doesnt work...
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:
|