vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Why are post counts wrong for some members? (https://vborg.vbsupport.ru/showthread.php?t=285941)

Macsee 07-25-2012 01:31 PM

Why are post counts wrong for some members?
 
It's long been a pet peeve of mine that when a member's post is soft deleted, it still shows up in his post count.

But today I've got a user who's just joined and made a single post, but his profile says his Total Posts figures is 2. If I click on Find Latest Posts I see just one.

Where could his other post possibly be - a blog comment? - and why can't I access the second post from the Find Latest Posts link on his profile?

setishock 07-25-2012 02:04 PM

Soft deleting a post just makes it invisible to members. Just visible to admins and mods. It's still there. When you hard delete it, it's really gone.
If the post counts are off just run the cron job or run update from the maintenance functions in the acp.

Macsee 07-25-2012 04:05 PM

Quote:

Originally Posted by setishock (Post 2351336)
Soft deleting a post just makes it invisible to members. Just visible to admins and mods. It's still there. When you hard delete it, it's really gone.

Yes, and in those cases you are able to access those soft-deleted posts from the user profile > Find Latest Posts.

But in this case there is no link to a soft deleted post. The profile says 2 but Find Latest Posts points to only one.

This is what needs solving.

kh99 07-25-2012 04:50 PM

You could search the database post table for posts with that user's id, and see if there really are 2.

By the way, soft deleting posts *should* remove them from a user's post count (unless they're in a forum that doesn't contribute to post count, in which case they shouldn't be included in the first place).

Do you have any mods installed that might affect post count?

Macsee 07-26-2012 12:02 PM

Thanks, kh99.

The "missing post" got removed from the count when I ran a maintenance task for updating post counts. So I guess a mod hard deleted a post and the post count hadn't adjusted ... or something like that.

On soft delete not removing the post from the post count - yes, I have some mods and it's possible that one of those mods is responsible.


All times are GMT. The time now is 04:07 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01423 seconds
  • Memory Usage 1,716KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete