Version: 1.01, by boozehound
Developer Last Online: Sep 2007
Version: 3.0.3
Rating:
Released: 02-17-2005
Last Update: Never
Installs: 11
DB Changes
No support by the author.
Change the amount of reputation needed to acquire each reputation 'gem' (as displayed in the postbit) and the type of gem displayed for each level (bright or normal).
Adding this hack will add a new option in admincp, called 'Reputation Level Manager'. In this page you can:
Change the amount reputation needed to acquire each gem
Change the type of gem displayed per level (either bright or normal)
Add new levels
Delete levels
Note that these 'gems' are separate from the normal 'reputation levels' which govern the description shown when you mouseover the gems in the postbit.
The levels are shown for positive values only; negative reputations are simply a mirror image of the positive reputation levels, and the same rules apply regarding the type of gem displayed and the amount of reputation need (albeit, negative).
Further note that to install this hack requires the ability to run SQL queries, as this hack adds an additional table.
Fully tested on 3.0.3, 3.0.4, 3.0.5 and 3.0.6.
Update 1.01 20th Feb 2005
- Settings are now cached, so this hack incurs a cost of only one query per page (for pages that show reputation levels, e.g. threads)
- Installer included
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
How many "more" queries? One per post? One per poster?
One per post. If/when I update this (I've already been requested to add support for more types of images) I'll use caching to reduce this to one per page.
In my admincp/index.php, I cannot find the lines you are refer to. Can you give me a couple of lines above and below that?
Anywhere you want really but I put it in here:
Code:
construct_nav_option($vbphrase['user_reputation_manager'], 'adminreputation.php?do=modify', '|');
construct_nav_option($vbphrase['add_new_user_reputation'], 'adminreputation.php?do=add');
construct_nav_option($vbphrase['view_reputation_comments'], 'adminreputation.php?do=list');
<-- in here -->
construct_nav_group($vbphrase['user_reputations']);
Quote:
Originally Posted by ambrosious
Got it installed, not working as of yet, all the rep gems look the same.
They will do until you change the levels in the new admincp page. If you have done so and there is no change, make sure you've changed includes/functions_reputation.php correctly, which includes the function (fetch_reputation_image) that governs how the rep gems are displayed.
- Cost of installing this hack is now only one query per page that shows reputation levels (as opposed to one per post as before).
- Queries replaced by installer.