ZombieAndy
04-06-2005, 10:00 PM
This is a tiny little hack that even the simplest folk should be able to install.
What it does
Allows you to freeze a user's postcount from the Admin CP.
How to install
First off, you need to make a new profile field on your forums.
Type: Single Selection Radio Buttons
Title: Post Count Frozen?
Description: Selecting "Yes" Will stop this user's postcount from increasing.
Options: No
Yes
Set Default: Yes
Field Required: No
Field Editable by user: No
Private Field: Yes
Searchable on members list: No
Show on members list: No
Display Page: Edit Profile (dont worry it wont show to your members)
Once you have done that, make a note of the field number (this is shown on the profile field manager as the "name"), then open includes/functions_newpost.php and make the following edit.
Find.
$doposts = 'posts = posts + 1,';
Replace with.
if ($bbuserinfo['fieldXX']=="Yes")
{
$doposts = 'posts = posts - 0,';
} else {
$doposts = 'posts = posts + 1,';
}
Replace XX with field number of the profile field you just made. save and upload. and voila. you now have the option to freeze users postcounts.
ive attached an image of where it will appear on the user manager screen.
What it does
Allows you to freeze a user's postcount from the Admin CP.
How to install
First off, you need to make a new profile field on your forums.
Type: Single Selection Radio Buttons
Title: Post Count Frozen?
Description: Selecting "Yes" Will stop this user's postcount from increasing.
Options: No
Yes
Set Default: Yes
Field Required: No
Field Editable by user: No
Private Field: Yes
Searchable on members list: No
Show on members list: No
Display Page: Edit Profile (dont worry it wont show to your members)
Once you have done that, make a note of the field number (this is shown on the profile field manager as the "name"), then open includes/functions_newpost.php and make the following edit.
Find.
$doposts = 'posts = posts + 1,';
Replace with.
if ($bbuserinfo['fieldXX']=="Yes")
{
$doposts = 'posts = posts - 0,';
} else {
$doposts = 'posts = posts + 1,';
}
Replace XX with field number of the profile field you just made. save and upload. and voila. you now have the option to freeze users postcounts.
ive attached an image of where it will appear on the user manager screen.