MyBB Community Forums

Full Version: Change in the MemberProfile Request
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello all,

I would like to do a minor adjustment in the MemberProfile.

Since our site is alumni-site, users are never deleted. So I've created a special usergroup for deceased.
So when people look up members and they find a record of a person who is deceased, they will see in their usergroup and through the usergroup-image I've set up. However, also the birthdate and the calculation of the age goes on.....
Sooo...to make things easy....I would like to have the following logic:

if usergroup='17', $birthdate='' else $birthdate=mybb->user[birthdate]

or even hide the entire birthdate-line if the usergroup=17

whatever is the easiest..

can someone help me code this in the member.php

cheers,
kimmo
Find.
if($memprofile['birthday'])
Change to.
if($memprofile['birthday'] && $memprofile['usergroup'] != 17)

Should do it.
indeed it did
thanks! Smile
No problem, happy to help Smile