MyBB Community Forums

Full Version: Edit "{$post['userreputation']}"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2011-03-16, 09:11 AM)Aries-Belgium Wrote: [ -> ]Be careful, with Yaldaram's mod there is still a closing a-tag in the code which will result in invalid html formatting. Also, you don't need to do a core mod just to delete the link of the reputation. Just edit your postbit_reputation template and change {$post['userreputation']} to {$post['reputation']} and maybe throw a span around it to change the style. For example:
<br />{$lang->postbit_reputation} <span style="color:red;font-weight:bold;">{$post['reputation']}</span>

Thanks and Will {$post['reputation']} have full style of {$post['userreputation']} ???

@AJS: I'm sorry.
(2011-03-16, 02:51 PM)NNT_ Wrote: [ -> ]Thanks and Will {$post['reputation']} have full style of {$post['userreputation']} ???

No, that's why I said to enclose it in a span to set the style. {$post['reputation']} is just the numeric value of the user reputation. Without any styling or link.
(2011-03-16, 07:53 AM)Yaldaram Wrote: [ -> ]Open ./inc/functions.php and find;
		$display_reputation = "<a href=\"reputation.php?uid={$uid}\">";
and change it to;
		$display_reputation = "";

Do you know how to remove </a> of this ?
(2011-03-17, 07:48 AM)NNT_ Wrote: [ -> ]Do you know how to remove </a> of this ?

Find the following within the same file;
	if($uid != 0)
	{
		$display_reputation .= "</a>";
	}
and Replace it to;
	if($uid != 0)
	{
		$display_reputation .= "";
	}
Thanks, Yal.
This will be last question, will this mod remove the link in postbit only ? or all link in the forums ?
Pages: 1 2