PDA

View Full Version : Display a User's total posts on forumhome?


Platinumgamer
01-20-2003, 04:02 PM
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!

filburt1
01-20-2003, 04:46 PM
Too busy to write the whole thing, but a simple query using PAPI:

$userpostcount = mysqlonlyvalue("SELECT COUNT(*) FROM post WHERE userid = " . $bbuserinfo['userid']);

Kars10
01-20-2003, 06:35 PM
No Hack needet! Just place $bbuserinfo[posts] in youre forumhome-template. ;)

Platinumgamer
01-20-2003, 06:55 PM
Thanks Filburt, worked perfectly!:)

Platinumgamer
01-20-2003, 06:56 PM
Originally posted by Kars10
No Hack needet! Just place $bbuserinfo[posts] in youre forumhome-template. ;)

Never thought of doing that:o

Thanks though!

filburt1
01-20-2003, 07:02 PM
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 :)

Kars10
01-20-2003, 07:23 PM
NP! :)