MyBB Community Forums

Full Version: How To Edit This {$reputation_link} In The Template 'usercp_reputation'?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I would like to edit this {$reputation_link} which is found in the template 'usercp_reputation'?

The output is this:

<strong class="reputation_neutral">0</strong>

And I would like to change it to:

<span class="reputation_neutral">0</span>
Does anyone know?
Change both instances of strong to span here:
function get_reputation($reputation, $uid=0)
{
	global $theme;

	$display_reputation = '';

	if($uid != 0)
	{
		$display_reputation = "<a href=\"reputation.php?uid={$uid}\">";
	}

	$display_reputation .= "<strong class=\"";

	if($reputation < 0)
	{
		$display_reputation .= "reputation_negative";
	}
	elseif($reputation > 0)
	{
		$display_reputation .= "reputation_positive";
	}
	else
	{
		$display_reputation .= "reputation_neutral";
	}

	$display_reputation .= "\">{$reputation}</strong>";

	if($uid != 0)
	{
		$display_reputation .= "</a>";
	}

	return $display_reputation;
}
in inc/functions.php