MyBB Community Forums

Full Version: reputation on postbits
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
is there a code to put the reputation on the user postbits section?
Isen't that already there? or do you mean like the reputation in numbers?
yes in numbers, the score
Go to inc/functions.php
Find:
	if(strpos(" ".$reputation, "-"))
	{ // negative
		$img = "repbit_neg.gif";
		$reputation = str_replace("-", "", $reputation);
	}
	elseif($reputation == 0)
	{ // balanced
		$img = "repbit_bal.gif";
	}
	else
	{
		$img = "repbit_pos.gif"; // positive
	}
	$numimages = intval($reputation/10); // 10 points = 1 image
	if($numimages > 10)
	{
		$numimages = 10;
	}
	if(!$numimages)
	{
		$numimages = 1;
	}
	for($i=1;$i<=$numimages;$i++)
	{
		$rep .= "<img src=\"".$theme['imgdir']."/$img\" alt=\"$alt\" />";
	}
Replace with:
	if(strpos(" ".$reputation, "-")) { // negative
		$rep = "red";
	} elseif($reputation == 0) { // balanced
		$rep = "white";
	} else {
		$rep = "green";
	}
	$rep = "<span style=\"color:{$rep}\">".$reputation."</span>";
dosent work Sad
It would help if you told me what was wrong.
have u checked ARS

no i just want it to show on the main postbit screen, keep in mind i have the vb modded top thing for user
You still didn't answer me what went wrong?
Pages: 1 2