MyBB Community Forums

Full Version: Username display
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ok im working on perfecting a rep system but the code i have is this:
	else if($post['reputation'] == 0)
	{
		$reputation .= "<img src=\"images/reputations/neutral.gif\" title=\"This user is an unknown quantity at this point\" border=\"0\" />";

All i want to know is, rather than it saying "This user" how can i make it say the users name?

E.g

	else if($post['reputation'] == 0)
	{
		$reputation .= "<img src=\"images/reputations/neutral.gif\" title=\"Grim Line is an unknown quantity at this point\" border=\"0\" />";

But obviously i can't put just one name because then for everyones rep it would say that specified name. I want it to say the persons name of whos rep your viewing.
No worries i just replaced "This user" with {$post['username']} and it worked a treat. Smile