Display only users age on profile?

echoman74 - March 19, 2009 - 20:51
Project:Birthdays
Version:6.x-1.0
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I know and have read in so many post how to apply codes for the age on a users profile, but i want to know from the module maintainer or anyone. If there is a way to display JUST the age on the users profile. But visible only on the users registration? I hope instead of having to add another 100 modules if it's possible only on one, as minimal as possible? thanks :)

Btw,I'm running a test site my on Wampserver. So this is not on a live site. Also using Drupal 6.10

#1

echoman74 - April 2, 2009 - 06:14

I was really hoping for an answer someone has to know please respond.

#2

maartenvg - April 2, 2009 - 07:45

I'm not entirely use what you want to do.

You want people to input their date of birth, but only during registration not by editing their account? And you only want to show the age on the profile page? And you don't need all other features of the Birthdays module?

If that is the case, you shouldn't use this module, but write your own little module that shows a date-field on registration, saves it to the user account, and uses the date to calculate the age to show in the profile. You probably only need a hook_user() for that.

If that is not the case, please describe your whishes in as much detail as possible.

#3

echoman74 - April 4, 2009 - 15:45

please excuse me actually if this sounds like I'm switching from my original post. I like the features of this module and think they're really awesome. However most users on a social network don't want to show their date of birth on their profile.But would rather display their age.
What i mean is if it were possible for a user to have an option to either display their age and d.o.b. or just display their age.but on the user registration have the their date of birth only visible to them aswell as the site owner.Other then that awesome module.

 
 

Drupal is a registered trademark of Dries Buytaert.