Okay, I tried to make the 100% score thing work by changing the math:
In traderratings.php, on line 460
Old: $tradeall = $userinfo[tradepos] + $userinfo[tradeneu] + $userinfo[tradeneg];
New: $userinfo[tradescore] = 100 / $userinfo[tradepos] + $userinfo[tradeneg] * $userinfo[tradepos];
The problem is that I get a division by zero error on the traderratings.php page. However, I believe the math is correct. Now how can I make this work? I'm no PHP programmer so I'm gonna have a very hard time making that work.
So what is the @$userinfo[tradepcnt] = (1 - ($userinfo[tradeneg] / $tradeall) ) * 100; line for? Does that do what I want already? (line 465)
|