MyBB Community Forums

Full Version: How to add to postbit_author_user
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I make it so it shows users date of birth in their posts? For example currently when someone posts in the forums it looks like:
[Image: jyHRnd1.png]

I would like it so it says something like

Quote:Date of birth: 04-30-1995
below the "joined" section.

Anyone know how to do this?
I am currently looking at my template postbit_author_user template and this is what it currently looks like:
{$lang->postbit_posts} {$post['postnum']}<br />
{$lang->postbit_threads} {$post['threadnum']}<br />
{$lang->postbit_joined} {$post['userregdate']}<br />
{$post['replink']}{$post['profilefield']}{$post['warninglevel']}
What do I need to change in order to get what I want done?
in general, date of birth is a optional profile field in MyBB. users need not enter it.
if you are using custom profile field for the date of birth then you can use this method
(2015-08-11, 09:52 AM).m. Wrote: [ -> ]in general, date of birth is a optional profile field in MyBB. users need not enter it.
if you are using custom profile field for the date of birth then you can use this method
I'm not using a custom profile field for it and although it is default and I have mine setup it does not show up the way I explained Sad Is there something that I am missing or not getting?
Add this code:

{$membday} -> to show the date (example: 05-23-1999)
Or:
{$membdayage} -> to show the age (example: 20)