The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Display a User's total posts on forumhome?
Hi,
I'm trying to find a way to place a user's total posts on the forumhome so that when they return to the board they can view the total number of posts they have(a lot of my users want this). One of my style sets has a welcome panel(the most widely used style set on my board) and I'd like to place the total posts there so that when they return they can see "Welcome Back username! You currently have # Posts!" I know it's a phpinclude edit, that would be required to do this, which is why I came here for help as I'm not too fluent in php and probably couldn't properly complete this modification. Could someone help me please? Thanks! |
#2
|
|||
|
|||
Too busy to write the whole thing, but a simple query using PAPI:
Code:
$userpostcount = mysqlonlyvalue("SELECT COUNT(*) FROM post WHERE userid = " . $bbuserinfo['userid']); |
#3
|
||||
|
||||
No Hack needet! Just place $bbuserinfo[posts] in youre forumhome-template.
|
#4
|
||||
|
||||
Thanks Filburt, worked perfectly!
|
#5
|
||||
|
||||
Quote:
Thanks though! |
#6
|
|||
|
|||
Use Kars10's instead, it doesn't use any queries.
Side note: I added a hidden argument to my forum URLs that lets me display all assigned bbuserinfo keys, very useful for quickly looking this stuff up |
#7
|
||||
|
||||
NP!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|