Mod Name / Version: User List Display Limited by Post Count 1.0
Description: Users and Guests (if allowed to see the user list), will only see members with a certain minimum post count. Moderators and Administrators still have access to the full list.
Working Under: UBB.Threads 6.5
Mod Status: Finished
Any pre-requisites: None
Author(s): Anno
Date: 08/03/05
Credits:
Files Altered: showmembers.php
New Files: none
Database Altered: no
Info/Instructions: Code:
In showmembers.php
Search for:
// --------------------------------------------------
// Grab the total number of users out of the database
Insert above:
if ( ($user['U_Status'] != 'Moderator') && ($user['U_Status'] != 'Administrator')){
$ShowOnlyActiveUsers = " AND U_TotalPosts > 9 ";
}
Search for:
$andlike
Insert below:
$ShowOnlyActiveUsers
(this appears in 2 places with no other code on the same line (as $andlike), insert in both places)
'9' determines the miminum number of posts to be shown, this can be changed to any desired value. If set to 0 only members with 1 or more posts will be shown.
Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.
Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.