halo! i'd posted a question here http://drupal.org/node/75598 but doesn't seems to get any attention at all.
here's my issue. i customized my drupal profile page with user-profile.tpl.php file. on that file, i placed a snippet so that it will show the user's birthdate.. and it works.
$converted_date = convert_profile_date($account->profile_birth); print date('j F, Y', $converted_date);
my problem is, with cck.module & birthdays.module
1) users are able to set their year of birth to be hidden or not.
2) users can also hide their birthdate
so now, with a php snippet, how can i display or hide the date according to the user's settings?
Comments
Comment #1
davidbessler CreditAttribution: davidbessler commentedYour code does not work for me. It gives me a blank page. Can someone tell me how to include the users birthday on user-profile.tpl.php in a way that respects users hiding their birthdays? Right now I'm doing it in the most ridiculous way.
Comment #2
Niklas Fiekas CreditAttribution: Niklas Fiekas commentedMuch has changed in D7. Now you can just
render()
on the field.Any updates? Still need this for D6?