MyBB Community Forums

Full Version: Not decrease post count if posts are deleted
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way to not decrease users post count if their message are deleted? (or entire topics)
No. Because if you delete something it's gone. There is one way but it's kinda weird, you can set someone's post count. But you will need to do that every time you delete something.
Well there is no way on the acp, but if you edit code you can do it.
I don't know how to do it unfortunately... someone is so kind to explain pleasE?
Open /inc/class_moderation.php, find and remove:
$db->update_query("users", array('postnum' => "postnum-{$subtract}"), "uid='".intval($uid)."'", 1, true);

		if($post['usepostcounts'] != 0 && $post['visible'] != 0 && $post['threadvisible'] != 0)
		{
			$db->update_query("users", array("postnum" => "postnum-1"), "uid='{$post['uid']}'", 1, true);
		}