Forums
This topic is locked
How to show how many posts a user has posted
Posted 25 Jun 2002 16:24:08
1
has voted
25 Jun 2002 16:24:08 Kristian Waagsboe posted:
I'm creating a Forum for my website. The Forum code itself is finished, but I'm making additions to the code. So heres my problem. Like on this forum, to the left we can see the name of the poster. On this forum is there also a counter to tell how many posts that specific user has posted... How do I fix this on my site. Login is required to post, and I guess I would need to forms with one post button (OR????)I guess it's much like that hits for the special parameter tutorial I found at this site, but I don't know exactly how to do this one...
(Sorry if I'm not understandable <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle> )
Replies
Replied 25 Jun 2002 18:21:57
25 Jun 2002 18:21:57 Andrew Watson replied:
do you have a recordset on the post page that shows the users record? you will probably to show who posts it.
add a number field to the users table called PostCount or whatever and add a couple of lines just after the insert code on the post page.
rsThisUser("PostCount" = rsThisUser("PostCount" + 1
rsThisUser.Update
cheers
LEED
:: Son, im Thirty.... ::
add a number field to the users table called PostCount or whatever and add a couple of lines just after the insert code on the post page.
rsThisUser("PostCount" = rsThisUser("PostCount" + 1
rsThisUser.Update
cheers
LEED
:: Son, im Thirty.... ::