MyBB Community Forums

Full Version: Is there a way to do this in the Postbit?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way to do this? (see below):

[Image: untitled137jq.th.png]
the Birth and Star Sign can be done so it does that by the birth date you enter in your usercp
Massacre Wrote:the Birth and Star Sign can be done so it does that by the birth date you enter in your usercp
How? I'd like to do that.
zaher1988's way will add a query for each of the items for each post. You don't need to do this, as the makepostbit function is passed all of the user profile fields along with the user.

For example, the sex:
switch($post['fid3'])
{
	case "Male":	
		$sex = "Sex: <img src=\"images/male.gif\" alt=\"Male\">";
		break;
	case "Female":
		$sex = "Sex: <img src=\"images/female.gif\" alt=\"Female\">";
		break;
	case "Other":
		$sex = "Sex: <img src=\"images/othersex.gif\" alt=\"Other\">";
		break;
	default:
		$sex = "";
}
It worked! Thanks!
Can u highlight line 745/746 ?
I got it taken care of. It was a typo on my part! Toungue

Is there a way to change "status: online/offline" to "status: (online/offline graphics)? Some of my users have trouble seeing the text.
Thanks! ^_^