"disable" year?

Mod that adds a birthday field to the users profile, theire age are displayed beside the posts, and on there birthday they will have a greeting popup
Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

"disable" year?

Postby Nymala on Mon 21. Feb, 2005 13:41

hiya

I have a question

Is it possible to disable just the year-mask in profil ?

I have a lot of elder users who find the idea of celebrating b'day great, but they don't necessarily want the others to know how old they actually are.
(search me - I am proud to be 51 - :lol:)

I've searched on phpbb.de, but couldn't find anything, so maybe someone here could help me?

Thanks in advance

regards
Nym
Hell was full - so they sent me back here!
Nymala
Poster
Poster
 
Posts: 2
Joined: Thu 29. Aug, 2002 21:40
Location: Augustfehn - Germany

Postby rizlablue on Sat 02. Apr, 2005 00:45

Ditto - replying in the hope that this'll bump the question back up.

I'd like to display the day and month, but not the year of birthdays.

Any tips?
rizlablue
Poster
Poster
 
Posts: 1
Joined: Sun 27. Mar, 2005 03:52

Postby Tokeda on Tue 05. Apr, 2005 06:27

does anyone know how to do this? I am an administrator on a RPG Forum. We would like to add the birthday ability with the pop-up upon log-in, but we don't want ages appearing next to their names since these are characters and not the real person behind it.
Tokeda
Poster
Poster
 
Posts: 1
Joined: Tue 05. Apr, 2005 06:23

Postby Peter77s on Fri 08. Apr, 2005 09:05

Exactly... this would be a great idea. :idea:
Peter77s
Poster
Poster
 
Posts: 34
Joined: Sat 26. Mar, 2005 19:46

Postby Lowreh on Wed 04. May, 2005 00:26

Sadness that this was never answered, as I am also very eager to know. I have sought help at phpbbhacks.com, but no one there can help.
Lowreh
Poster
Poster
 
Posts: 5
Joined: Sun 01. May, 2005 12:46

Postby easygo on Thu 05. May, 2005 12:27

Here we go now... let me try to solve your problem.

All you have to do is the following...

Code: Select all
#
#-----[ OPEN ]---------------------------------------------
#
includes\usercp_viewprofile.php

#
#-----[ FIND ]---------------------------------------------
#
   $user_birthday = realdate($lang['DATE_FORMAT'], $profiledata['user_birthday']);

#
#-----[ REPLACE WITH ]--------------------------------------
#

//   $user_birthday = realdate($lang['DATE_FORMAT'], $profiledata['user_birthday']);
   $user_birthday = realdate('j. M', $profiledata['user_birthday']);

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

Descriptions:
j => day of the month without leading zero
M => name of the month (first 3 letters)

This is just an example. Feel free to costumize... :wink: easy
Here we go ^^
Image
easygo
Poster
Poster
 
Posts: 44
Joined: Tue 02. Nov, 2004 17:03

Postby Lowreh on Sun 08. May, 2005 18:28

Danka :) Now I may use that, but first let me ask...

Instead of getting rid of the year altogether, I've managed to get rid of most places on the forum where the birth year or age would be shown. The only thing I still need help with is the user profile. Is there any way to show only the birthdate and month on a profile?
Lowreh
Poster
Poster
 
Posts: 5
Joined: Sun 01. May, 2005 12:46

Postby easygo on Tue 10. May, 2005 21:18

Lowreh wrote:Is there any way to show only the birthdate and month on a profile?


Sorry, but I can't follow... where is the difference?

My little hack (see above) seems to be exactly that what you want.

:wink: easy
Here we go ^^
Image
easygo
Poster
Poster
 
Posts: 44
Joined: Tue 02. Nov, 2004 17:03

Next

Return to Birthday [2.0.10/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron