View Full Version : stop post count increment
Kriek
04-15-2003, 05:36 PM
Before I personally try to get my head around this idea, I want to know if it's possible in terms of light modifications to stop post count increment on certain users and display a default value such as Posts: n/a in the post bit?
Logician
04-16-2003, 12:31 PM
in newthread.php and newreply.php you can change part:
".iif ($foruminfo[countposts],"posts=posts+1,","")."
as:
".iif ($foruminfo[countposts] AND $bbuserinfo[userid]!=X,"posts=posts+1,","")."
And replace X with the userid of the member to stop his posts increasing.
But please remember that if you update counters later in your board, user's post count will be reverted back.
Kriek
04-16-2003, 09:27 PM
Thanks man that worked great. Is there any draw back to changing the posts field in the users table from TINYINT(4) to VARCHAR(4) :nervous:
Yo can use this hack to make a user's post count go any direction or to freeze it. ;)
https://vborg.vbsupport.ru/showthread.php?s=&threadid=49668
Kriek
04-16-2003, 09:55 PM
No thanks Zzed, the keyword was light modifications.
Logician
04-17-2003, 10:07 AM
Today at 12:27 AM Kriek said this in Post #3 (https://vborg.vbsupport.ru/showthread.php?postid=383090#post383090)
Thanks man that worked great. Is there any draw back to changing the posts field in the users table from TINYINT(4) to VARCHAR(4) :nervous:
don't convert it to varchar, you'll have problems. just assign 0 for post count in the Admin CP edit user section.
Kriek
04-17-2003, 11:46 AM
Ok, thanks again man. I noticed that VARCHAR can not have the UNSIGNED attribute which would throw Top 10 Posters order into a frenzy, lol
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.