[RSS Feed/News] Rebuild User Post Counts (query)

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
MySiteGuy submitted a new resource:

Rebuild User Post Counts (query) - Quick and simple way update post counts for users.

This is a quick query which updates user post counts. It takes into consideration moderated and deleted status of threads and posts, as well as each forum's "Count messages posted in this forum toward user total" setting.

Code:

Code:
UPDATE xf_user AS user SET message_count = 
COALESCE(
 ( 
        SELECT COUNT(*)
        FROM xf_post AS post...
Click to expand...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom