Current time: 05-22-2012, 11:34 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change in the MemberProfile Request
08-24-2006, 09:43 AM
Post: #1
Change in the MemberProfile Request
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 all posts by this user
Quote this message in a reply
08-24-2006, 11:39 AM
Post: #2
RE: Change in the MemberProfile Request
Find.
PHP Code:
if($memprofile['birthday']) 
Change to.
PHP Code:
if($memprofile['birthday'] && $memprofile['usergroup'] != 17

Should do it.
Find all posts by this user
Quote this message in a reply
08-24-2006, 11:58 AM
Post: #3
RE: Change in the MemberProfile Request
indeed it did
thanks! Smile
Find all posts by this user
Quote this message in a reply
08-24-2006, 12:00 PM
Post: #4
RE: Change in the MemberProfile Request
No problem, happy to help Smile
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication