The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to Update Post Count for a Single User
It seems like there would be an easy way to do this. Anyone have any ideas?
Thanks in advance, Tim |
#2
|
|||
|
|||
Edit the member. There is a place for post count.
|
#3
|
|||
|
|||
Ok, but I need to know what the value should be.
Tim |
#4
|
||||
|
||||
If you have phpMyAdmin, a real easy way would be to go into the post table and find all posts by that user. It then tells you in the query how many rows get returned. I think if you just want to make the query, it would be something like:
Code:
SELECT count(*) FROM `post` WHERE `userid` =x |
#5
|
|||
|
|||
Yes, but that doesn't take into account forums that posts don't increment the post counter. As far as I can tell that option is stored in an option bitfield, which I can't decypher in mysql.
Tim |
#6
|
|||
|
|||
AdminCP > Maintenance > Update Counters > Update Post Counts
READ MESSAGE GIVEN UNDER THE TITLE BEFORE YOU PROCEED |
#7
|
||||
|
||||
I guess you can modify the query to add something in the where statement: AND 'forumid' !=y
|
#8
|
|||
|
|||
Quote:
Quote:
It seems like this shouldn't be this hard. Tim |
#9
|
|||
|
|||
Updating all users post counts is the best way. Should only take 1-2 minutes.
|
#10
|
|||
|
|||
I have a feeling it is going to take a lot longer than a few min. And I have custom post counts for some users that I can't lose.
If I wanted to simply update all the users I would have just done it and not posted looking for a solution to what I thought was a simple request. Tim |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|