You might want to read what I wrote here at the bottom:
http://vbulletin.com/forum/showthrea...threadid=12189
This entire hack is redundent.
Instead of so many code lines, you can achieve exactly the same result by changing in functions.php:
Code:
function deletethread($threadid,$countposts=1)
to
Code:
function deletethread($threadid,$countposts=0)
(this will ensure that post count does not get decreased when a thread is deleted)
and if you want post count not to change when specific posts are deleted as well, then in function.php change:
Code:
function deletepost($postid,$countposts=1,$threadid=0)
to
Code:
function deletepost($postid,$countposts=0,$threadid=0)