Mod Name / Version: User List Display Limited by Post Count 1.0 <br /> <br />
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. <br /> <br /> <br />
Working Under: UBB.Threads 6.5 <br /> <br />
Mod Status: Finished <br /> <br />
Any pre-requisites: None <br /> <br />
Author(s): Anno <br /> <br />
Date: 08/03/05 <br /> <br />
Credits: <br /> <br />
Files Altered: showmembers.php <br /> <br />
New Files: none <br /> <br />
Database Altered: no <br /> <br />
Info/Instructions: <br /> In showmembers.php <br /> <br />Search for: <br /> <br />// -------------------------------------------------- <br />// Grab the total number of users out of the database <br /> <br /> <br />Insert above: <br />if ( ($user['U_Status'] != 'Moderator') && ($user['U_Status'] != 'Administrator')){ <br /> $ShowOnlyActiveUsers = " AND U_TotalPosts > 9 "; <br />} <br /> <br /> <br />Search for: <br /> $andlike <br /> <br />Insert below: <br /> $ShowOnlyActiveUsers <br /> <br />(this appears in 2 places with no other code on the same line (as $andlike), insert in both places) <br /> <br />'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. <br /> <br /> <br />
Disclaimer: Please backup every file that you intend to modify. <br />If the modification modifies the database, it's a good idea to backup your database before doing so. <br /> <br />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.