Highlander
07-17-2003, 02:17 PM
Can anybody tell me if there is an hack to turn off the Postcounter in some Usergroups? I hope anybody here can help me.
Erwin
07-18-2003, 01:53 AM
Assuming you have vB 2.x.x
In newthread.php AND newreply.php (DO THIS IN BOTH FILES),
Find:
$DB_site->query("UPDATE user SET
".iif ($foruminfo[countposts],"posts=posts+1,","")."
$dotitle"."lastpost='".time()."' WHERE userid='$bbuserinfo[userid]'");
Replace with:
if (!in_array($bbuserinfo['usergroupid'], array(8,10,20))) {
$DB_site->query("UPDATE user SET
".iif ($foruminfo[countposts],"posts=posts+1,","")."
$dotitle"."lastpost='".time()."' WHERE userid='$bbuserinfo[userid]'");
}
Replace the numbers in brackets with the usergroupids you want to turn post counter off.
Not tested but should work...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.