2013-11-09, 08:37 AM
I have installed this plugin (Reputation Power) which gives users increased reputation power depending on their time online, time since registration and number of posts.
However, I would like to make a couple of modifications:
1) It rounds the reputation power down to the nearest whole number, but I want it to round to 2 decimal places, so I'm getting values like this in the drop-down list:
I have removed "floor" from the equation which calculates the reputation power but it still seems to round down to the lowest whole number:
(you will find that there are two of these equations and I have removed "floor" from both)
I understand that if I manage to show all the options too 2 decimal places then I will get a huge list of values, which brings me to my second modification.
2) Is it possible to limit it to only show the maximum negative and maximum positive reputation? I have seen this on other websites and it looks like this:
Any help would be great - thanks in advance.
Winky
However, I would like to make a couple of modifications:
1) It rounds the reputation power down to the nearest whole number, but I want it to round to 2 decimal places, so I'm getting values like this in the drop-down list:
I have removed "floor" from the equation which calculates the reputation power but it still seems to round down to the lowest whole number:
$total = $default+(floor((((((TIME_NOW-$mybb->user['regdate'])/60)/60)/24)/$days)))+(floor($mybb->user['postnum']/$posts))+(floor($mybb->user['timeonline']/$online));
(you will find that there are two of these equations and I have removed "floor" from both)
I understand that if I manage to show all the options too 2 decimal places then I will get a huge list of values, which brings me to my second modification.
2) Is it possible to limit it to only show the maximum negative and maximum positive reputation? I have seen this on other websites and it looks like this:
Any help would be great - thanks in advance.
Winky