Show only age

momokan

Active member
Registered
Joined
May 17, 2020
Messages
44
Points
28

Reputation:

Is there a way to hide the birthday and display only the age when the user registers the date of birth?
 

Warfare

[Your Welcoming Staff Member]
Staff member
Administrator
Moderator
+Lifetime VIP+
V.I.P Member
Collaborate
Registered
Joined
Apr 29, 2020
Messages
342
Points
103

Reputation:

Is there a way to hide the birthday and display only the age when the user registers the date of birth?
momokanIt would take some customization. As of right now, there is no add on that does this that I can find or know of.
 

Warfare

[Your Welcoming Staff Member]
Staff member
Administrator
Moderator
+Lifetime VIP+
V.I.P Member
Collaborate
Registered
Joined
Apr 29, 2020
Messages
342
Points
103

Reputation:

you're welcome
 
Last edited:

Warfare

[Your Welcoming Staff Member]
Staff member
Administrator
Moderator
+Lifetime VIP+
V.I.P Member
Collaborate
Registered
Joined
Apr 29, 2020
Messages
342
Points
103

Reputation:

@momokan I have been looking into this a little more deeply. I am a member of a Xenforo site that shows the date of birth and age, which has something to do with the member_view and pairsJustified. I will mess around with it and see if I can get something to work the way you are asking for on my site and let you know if it works.
 

Attachments

  • Screenshot 2020-05-21 at 4.50.25 AM.png
    Screenshot 2020-05-21 at 4.50.25 AM.png
    22.1 KB · Views: 171
  • Screenshot 2020-05-21 at 4.50.49 AM.png
    Screenshot 2020-05-21 at 4.50.49 AM.png
    8 KB · Views: 179

momokan

Active member
Registered
Joined
May 17, 2020
Messages
44
Points
28

Reputation:

I am very happy.
There was also a thread on age display in the xenforo forum.
It seems that only the year and age can be displayed and the month and day can be hidden in the settings, but I do not know how.

Thank you.
 

Warfare

[Your Welcoming Staff Member]
Staff member
Administrator
Moderator
+Lifetime VIP+
V.I.P Member
Collaborate
Registered
Joined
Apr 29, 2020
Messages
342
Points
103

Reputation:

I'm working on it, it may take me a few days to work it all out, I shall surely keep you updated!
 

Warfare

[Your Welcoming Staff Member]
Staff member
Administrator
Moderator
+Lifetime VIP+
V.I.P Member
Collaborate
Registered
Joined
Apr 29, 2020
Messages
342
Points
103

Reputation:

i've messed around with /src/Entity/UserProfile.php and it does change some things, just not to the fact of changing to show only the "age" yet. I will eventually figure it out and let you know how to do it
 
Top