The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
This hack adds a birthday field to the users profile. It is viewable when a profile is viewed.
It will be required for the calendar hack. Birthday Hack v.9 Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Maybe stupid question? But why leaving out the birthyear? Is it too difficult?
|
|
#3
|
|||
|
|||
|
bad_birthday template doesnt seem to work.
when i modify my profile and change the month to a blank, but fill in a date, it says the administrator has banned my email, instead of giving the error message. |
|
#4
|
|||
|
|||
|
This has nothing to do with your email so you have done something wrong.
|
|
#5
|
|||
|
|||
|
i havent the faintest clue about what i did wrong, everything works except for that error, test it out
|
|
#6
|
|||
|
|||
|
Rangersfan? luke? anyone?
|
|
#7
|
|||
|
|||
|
After looking at the instructions for the Birthday Hack I found your error...
It says: Code:
Add this code:
[begin]
if ( ($day == -1 && $month != -1) || ($day !=-1 && $month == -1) )
{
eval("echo standarderror(\$bbtitle,\"".gettemplate("error_banemail")."\");");
exit;
}
if (($day == -1)&&($month==-1))
{
$birthday = "";
}
else
{
$birthday = $month . "," . $day;
}
[end]
Code:
Add this code:
[begin]
if ( ($day == -1 && $month != -1) || ($day !=-1 && $month == -1) )
{
eval("echo standarderror(\$bbtitle,\"".gettemplate("bad_birthday")."\");");
exit;
}
if (($day == -1)&&($month==-1))
{
$birthday = "";
}
else
{
$birthday = $month . "," . $day;
}
[end]
p.s. I think a better name for the "bad_birthday" template would be "error_badbirthday" so that it gets listed with the other errors. ![]() [Edited by wluke on 10-16-2000 at 04:48 PM] |
|
#8
|
|||
|
|||
|
[smacks himself in the head] shoulda seen that! lol, only started using vB a couple of weeks ago, but I've been watching the boards for a number of months
|
|
#9
|
|||
|
|||
|
Nice hack Rangersfan
What do you have to do to have the year of birth included as an option? like you have on your board. |
|
#10
|
|||
|
|||
|
I just need to update the instructions, will try to also get that done
![]() One of my users emailed me that her birthday was showing up wrong on the calendar. She claimed she was 28 but she was born in Dec 1972. I has to explain to her that she was really 27 and not as old as she thought. The calendar does have its benefits for the age-challenged users out there. |
![]() |
|
|