UBB.Dev
Mod Name / Version: Show Post Count to Admins and Mods only 2.0

Description: Allows the administrator to select whether the Post Count will be displayed on the forum (for each user) and to whom (admins, admins and mods, all, none). Very useful modification if you have users (I have one of them) who don't have anything to do all day and loiter the forum with posts that contain either one laughing graemlin or words of wisdom like "I agree" - so that they can increase their post count.

Working Under: UBB.Threads 6.5

Mod Status: Finished

Any pre-requisites:

Author(s): dimopoulos

Date: 06/01/04

Credits: dimopoulos for original code. adapted to 6.5 by scroungr

Files Altered: showflat.php, templates/default/showflat.tmpl, showthreaded.php, templates/default/showthreaded.tmpl, showprofile.php, templates/default/showprofile.tmpl, showmembers.php, templates/default/showmembers.tmpl, admin/features.php, admin/dofeatures.php, languages/.../admin/features.php, templates/default/admin/features.tmpl
,

New Files: None

Database Altered: No

Info/Instructions: INSTALLATION (9 Steps)

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.


Attached File
A different aproach would be to exclude users from having the post count upped

in addpost.php:


// ------------------------
// Up their totalposts by 1
if ($Username != "trouble_maker"){
$Totalposts = $user['U_Totalposts'] + 1;
}
© UBB.Developers