Let user choose how many reputation points to give (up to their limit) (v1.1)

Galeras

New Member
This modification gives the user the option to choose how many reputation points to give or take when posting reputation on a post. They cannot give or take more than the number of points they have available.

When giving rep, aside from choosing if they approve or disapprove of the post and entering a comment, there is a dropdown box going from 0 to the number of rep points they have. This allows them to award or take a lower number of points than the default which uses their point value.

There is a check in place to make sure the user didn't alter the form to give or take more than the maximum value they can use. An appropriate error message is displayed.

An important thing to note about this mod is that due to a problem with Internet Explorer not being able to show the select box on top of the page when you have the ajax popups enabled, turning this mod on will override your setting for using ajax for giving reputation. It doesn't turn ajax off for anything else. The user will be taken to the default page that is used when popups are disabled if they are using Internet Explorer.

Installation: To install, unzip the product XML file, and import it to your board using the product manager in the AdminCP found under "Plugins & Products" => "Manage Products" => "Add/Import Product"

There are no templates to edit, they should be done automatically. If there is any problem with the dropdown menu showing up please let me know.

Change Log:

Version 1.1.0
Dropdown is no longer displayed for users with 0 rep power
The default value is no longer 0 and is now the user's reputation power
Fix negative reputation problem which could generate an error if the user takes more than half their rep power
Ajax popup is now enabled for non Internet Explorer users (IE bug prevents dropdown from showing in Ajax popup)
Version 1.0.0
Initial Release
 
Top