View Full Version : Negative Reputation Promotions
Rein Masamuri
Fri 20th Jun '03, 7:58am
1. A complete description of the problem
When I try to set up a promotion with a negative integer (a.k.a. I want to set up a banning group that a person is apart of if they get certain - points) but when I set the requirment to a negative number, it sets itself to zero.
This will be great if it works as then after a certain amount of days their rep will automatically reset
2. Whether the problem exists in newly installed forums, or in upgraded vB2 boards (or both if you have checked that)
Newly installed vb3
3. The steps required to produce the error
Add a new promotion, and set the promotion level to a negative number.
4. Any steps you have found that fix the error
none as of yet.
Techguy1
Sat 21st Jun '03, 4:55am
actually a negative promotion won't work since it will look for a reputation greater than that number...
Rein Masamuri
Sat 21st Jun '03, 6:01am
Shouldn't it be set to absolute value? i.e. how far from zero instead of something thats higher for reputation?
phlogiston
Sat 5th Jul '03, 6:18pm
an aboslute value wouldn't work as reputation is not always given as one point values. Users would "jump" over promotions.
But it sounds a very good idea & unfortunately one that would be abused very quickly I think, with users ganging up to ban others by giving bad rep!
Rein Masamuri
Sun 6th Jul '03, 2:41am
I've already thought of that, both of those actually. And I think that it'd be easy to be a <> or = x numbers to be a certain promotion.
Also, I could moderate all promotions or a specific promotion.
SmartGnome
Sun 6th Jul '03, 11:12am
Just for my understanding.
Setting a value to 0 means effectively 'don't care'.
The number to 10 means '>10' before it takes effect on a promotion.
Or am I a cheeshead again :)
Rein Masamuri
Sun 6th Jul '03, 8:37pm
nope
I ment test whether its negative or not, then take the absolute number (see how far from zero it is) and have conditions every time. i.e.:
$rep=current_reputation
IF $rep = +
THEN GOTO positive_promotion_line
$rep= |$rep|
IF $rep => $lowest_integer_for_negavite_promotion
THEN $usernumber = $specified_lowest_promotion
ELSE IF $rep => $next_lowest_negative_integer_for_promotion
THEN $usernumber = $specified_promotion2
END
positive_promotion_line
IF $rep => $lowest_integer_for_positive_promotion
THEN $usernumber = $specified_lowest_promotion
ELSE IF $rep => $next_lowest_integer_for_positive_promotion
THEN $usernumber = $specified_promotion2
END
|| means absolute value
Of course the number of arguments would be relative to the number of promotions that you have made.
Sorry for my sloopy psuedo-code but I'm versed in basic, not PHP :p
Freddie Bingham
Sat 6th Sep '03, 2:03pm
Beta 6 will give you the option.
Rein Masamuri
Thu 25th Sep '03, 7:27am
Thanks!
Hope my crappy psuedo code helped!
vBulletin® v3.8.0 Beta 3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.