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:
HTML Code:
<br/>
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.
This is frustrating. Cant figure out why your mod does this.
Neither can I, it doesn't have anything to do with posting. Can you try disabling the mod's plugins one by one to determine which one the problem lies with?
Well if I turn off Reputation gem levels - fetch_reputation_image() then i can quick reply. If I turn off the other one, I get all kinds of crazy errors. Not sure if this helps.
Few more things. I noticed when you edit a post using the ajax editing, when you save all the rep images disappear. So you need to add editpost in your array also.
Also as a suggestion, I would recommend rather than an array, a comparison as its faster. I have a large board so optimization is important.
If you change what I posted right above with this it will be faster,
Quote:
if ((THIS_SCRIPT == 'showthread') OR (THIS_SCRIPT == 'showpost') OR (THIS_SCRIPT == 'memberlist') OR (THIS_SCRIPT == 'member') OR (THIS_SCRIPT == 'ajax') OR (THIS_SCRIPT == 'private') OR (THIS_SCRIPT == 'newreply') OR (THIS_SCRIPT == 'editpost'))
Few more things. I noticed when you edit a post using the ajax editing, when you save all the rep images disappear. So you need to add editpost in your array also.
Also as a suggestion, I would recommend rather than an array, a comparison as its faster. I have a large board so optimization is important.
If you change what I posted right above with this it will be faster,