A port to 3.5.x of
this hack.
Description
- Change the amount of reputation needed to acquire each reputation image (gem) as displayed in the postbit among other places
- Change the type of image displayed for each level
- Optionally insert a line break (or other markup) before one or more of the images
Installing this extension adds:
- One database table.
- Two plugins.
- Two templates.
- 18 phrases.
- One php file.
- One xml file.
at a cost of:
- One (small) query per page involving display of reputation (showthread, showpost, memberlist, member).
Installation
- Download product.zip and unpack it.
- Upload the files in the upload directory:
- admincp/repgems.php
- includes/xml/cpnav_pig_rep_gems.xml
- Install the product by importing the product-pig_rep_gems.xml file into the product manager in Admin CP
Additionally, you can upload the images in 'additional images.zip' to the images/reputation directory (read 'usage' below).
Usage
(Refer to the screenshots)
After installation reputations will appear as normal. Refresh your Admin CP and you'll find a new link in the 'User Reputations' section of the navigation frame labelled 'Manage Reputation Images'.
(see screen1.png)
Use the upper form to change the settings for each reputation image and the lower form to add new images.
- 'Minimum reputation' specifies the minimum amount of reputation a user must have to acquire the image. For negative reputations, the values are (-1 * the minimum).
- The value of 'Image suffix' determines which type of image is shown for each level. A blank value corresponds to the standard dark green or dark red reputation images. A value of 'high' corresponds to the brighter coloured reputation images. These files are named reputation_highpos.gif and reputation_highneg.gif for positive and negative reputations respectively, whereas the 'blank' images are named reputation_pos.gif and reputation_highpos.gif respectively.
- If one wanted to add a new type of image, for example reputation_maxpos.gif and reputation_maxneg.gif as found in 'additional images.zip' then they should be uploaded to images/reputation and the value of 'max' should be used in the 'Image suffix' field.
- If you wish to insert a line break before a particular reputation image, change the 'insert break' setting to 'yes'. By default, this will result in the contents of the template 'postbit_pig_reputation_break' being inserted before the reputation image. This template by default contains simply:
Screenshots
- screen1.png show the Admin CP settings page after a new installation of the product.
- screen2.png shows the settings page after two levels have been added, the types of image altered and a break inserted before image 8.
- screen3.png shows the effect of the settings shown in screen2.png
- screen4.png shows the settings page using two line breaks and a custom image type ('max').
- screen5.png shows the effect of the settings shown in screen4.png.