Displaying Plus sign (+) before positive rep points
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #4
RE: Displaying Plus sign (+) before positive rep points
If you have Template Conditionals or PHP in Templates / Complex Templates plugin, you can try to do that via template edit:

reputation template, find:

Code:
{$user['reputation']}


Replace it with:

Code:
<if $user['reputation'] > 0 then>+</if>{$user['reputation']}


Or, if you want to do that via a core edit, you can try this:
reputation.php file, find:

PHP Code:
469
470
471
472
if(!$user['reputation'])
{
	$user['reputation'] = 0;
}


Replace it with:

PHP Code:
469
470
471
472
473
474
if(!$user['reputation'])
{
	$user['reputation'] = 0;
}elseif($user['reputation'] > 0){
	$user['reputation'] = '+'.$user['reputation'];
}


(This post was last modified: 07-05-2011 02:38 AM by RateU.)
07-05-2011 02:37 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Displaying Plus sign (+) before positive rep points - RateU - 07-05-2011 02:37 AM

 Standard Tools
Forum Jump: