MyBB Community Forums

Full Version: $post Variables
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I did use search, so don't tell me to search again Big Grin

well, i got following template modification in a postbit_signature:

<div>
<br /><br /><br />
<fieldset><legend>Подпись $post[username] : </legend><table align="left"><tr><td>
<span class="smallfont">$post[signature]</span>
</td></tr>
</table></fieldset>
</div>

and i want to add user's birthday into signature, but dont know wich var should i use Sad
can anybody help me?
should it look like this?
$post[membday]
or
{$membday}
WAW why all people are distching youToungue lo

Use
{$post['birthday']}
in postbit_signature template.

Now please merge all the above posts in one.
it shows only date, is it possible to add age also?
should it be smth like this?
{$post['birthage']}
Please don't double post... we are reaching you. LOL
This time we will have also to edit the php files

open ./inc/functions_post.php find
eval("\$post['signature'] = \"".$templates->get("postbit_signature")."\";");
above it add
	if($post['birthday'])
	{
		$membday = explode("-", $post['birthday']);
		if($membday[2])
		{
			$membdayage = get_age($post['birthday'])." years old";
		}
		else
		{
			$membdayage = '';
		}
	}
	else
	{
		$membdayage = '';
	}

In postbit_signature template add {$membdayage}
Please stop double posting.
thanks alot, i just started to think that nobody cares, that was the reason for may double posting Sad sorry