Jump to content

Accurate forum post number. How to?


Luis_angel

Recommended Posts

Posted

Hello, I create a forum post and the post number (attached) increase but when i delete the topic/reply the count stays the same, it does not increase. How to change it? It shows "9"

 

Thank youpost.thumb.jpg.7528564cf2d6b6a34448f69f31c99398.jpg

Posted
23 hours ago, Luis_angel said:

Hello, I create a forum post and the post number (attached) increase but when i delete the topic/reply the count stays the same, it does not increase. How to change it? It shows "9"

 

Thank youpost.thumb.jpg.7528564cf2d6b6a34448f69f31c99398.jpg

Did you mean to say that the number does not decrease? Because if a post/topic is deleted, the number should not increase. That behaviour is for posting.

That should be taken care automatically by the system. Have you installed any plugins that might have caused this?

To change it, you can do it manually but I would not recommend this. However, should you want to do it, run this query at your phpmyadmin.

UPDATE forums_forums SET posts = posts - x  WHERE id = y;

And replace the x with the number of replies that were deleted. If topics were deleted too, add the topics field in the query above. That sql query will keep the number of posts intact, but it will substract the number of deleted posts from the count. Whereas the y represents the id of of the forum where you want to adjust the post count.

And it goes wthout saying, that first of all you must make a backup of the forums table, or better yet of the entire database before you manipulate it manually.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...