2011-07-03, 05:11 PM
I've spotted if you have negative rep and minus (-) sign gets displayed before the number in posts for REP points, but if you have positive Rep no plus (+) sign get displayed. It stays the same a neutral rep (0), with nothing displayed before it.
So I looked in the reputation.php file and located this code.
I can see there is a minus sign (-) in two places for negative reps, so thought by adding the + sign in the same two places higher above that would do the trick. But it's not and no plus sign gets displayed doing this below.
Change This:
To this (red changes):
Any ideas why that didn't work? I thought it would have.
So I looked in the reputation.php file and located this code.
$positive_title = $lang->sprintf($lang->power_positive, "+".$i);
$positive_power = "\t\t\t\t\t<option value=\"{$i}\" class=\"reputation_positive\" onclick=\"$('reputation').className='reputation_positive'\"{$vote_check[$i]}>{$positive_title}</option>\n".$positive_power;
if($mybb->settings['negrep'])
{
$negative_title = $lang->sprintf($lang->power_negative, "-".$i);
$negative_power .= "\t\t\t\t\t<option value=\"-{$i}\" class=\"reputation_negative\" onclick=\"$('reputation').className='reputation_negative'\"{$vote_check[-$i]}>{$negative_title}</option>\n";
}
}
I can see there is a minus sign (-) in two places for negative reps, so thought by adding the + sign in the same two places higher above that would do the trick. But it's not and no plus sign gets displayed doing this below.
Change This:
Quote: $positive_power = "\t\t\t\t\t<option value=\"{$i}\" class=\"reputation_positive\" onclick=\"$('reputation').className='reputation_positive'\"{$vote_check[$i]}>{$positive_title}</option>\n".$positive_power;
if($mybb->settings['negrep'])
To this (red changes):
Quote: $positive_power = "\t\t\t\t\t<option value=\"+{$i}\" class=\"reputation_positive\" onclick=\"$('reputation').className='reputation_positive'\"{$vote_check[+$i]}>{$positive_title}</option>\n".$positive_power;
if($mybb->settings['negrep'])
Any ideas why that didn't work? I thought it would have.