View Full Version : Is there a hack for "locking" number of posts when I mass prune threads ?
Leo[GR]
09-08-2002, 08:18 AM
When I mass prune threads the post counter of the members is going down. Is there a way to prevent this ? I am usin vb 2.2.6 Many thanks in advance. :classic:
g-force2k2
09-08-2002, 08:21 AM
open admin/functions.php
find:
if (is_array($userpostcount)) {
while(list($postuserid,$subtract)=each($userpostco unt)) {
$DB_site->query("UPDATE user SET posts=posts$subtract WHERE userid='$postuserid'");
}
}
and change it to this:
/* if (is_array($userpostcount)) {
while(list($postuserid,$subtract)=each($userpostco unt)) {
$DB_site->query("UPDATE user SET posts=posts$subtract WHERE userid='$postuserid'");
}
} */
find:
if ($countposts) {
$DB_site->query("UPDATE user SET posts=posts-1 WHERE userid='$postinfo[userid]'");
}
change it to this:
/* if ($countposts) {
$DB_site->query("UPDATE user SET posts=posts-1 WHERE userid='$postinfo[userid]'");
} */'
regards... Enjoy :)
Notice: just don't update the member post counters ;) regards...
g-force2k2
Leo[GR]
09-08-2002, 10:43 AM
]Many thanks g-force. This worked. :D
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.