Version: 1.00, by Slynderdale
Developer Last Online: Nov 2023
Version: 2.2.x
Rating:
Released: 04-26-2002
Last Update: Never
Installs: 22
No support by the author.
Ok, I know its been a while, but I finally fixed up the code for this, now it all works well and its all template driven, sorry for all the errors with the old code, this was one of my first hacks I ever made and my skills improved since then.
Heres what this hack does:
It gets the users chinese and astrological zodiac from the user's birthday and also gets the users current age where you then can display it in there profile.
The zip below contains the new install instructions and also a zodiac_templates.php file to install all the templates for you (Theres one for each chinese and astrological zodiac).
I tested this pretty well and it works fine, but if some how you get an error or it doesnt work, please post about it and this time ill fix it asap.
Enjoy the hack, also like all my other hacks, if you use this on your forum, all I ask of you is to click the install button, thank you.
Also, if for some reason your getting an old version of this zip, try clearing your cache first and then download it, also right clicking on it and choosing save as might work as well.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I want to release some hacks very soon. I have some good ideas so I think people will like them.
I was watching at that screenshot of your profile and I was wondering how did you add that picture at the top of the profile. Did you make it as a custom field and made people just enter the url or did you use something better?
Originally posted by HyperS This is a great hack Slynderdale. Congrats!
I want to release some hacks very soon. I have some good ideas so I think people will like them.
I was watching at that screenshot of your profile and I was wondering how did you add that picture at the top of the profile. Did you make it as a custom field and made people just enter the url or did you use something better?
in your instructions it stated to find this line in my members.php
Code:
// Set birthday fields right here!
if ($userinfo[birthday] == '0000-00-00') {
$birthday = "N/A";
} else {
$bday = explode("-",$userinfo[birthday]);
if (date("Y")>$bday[0] and $bday[0]>1901 && $bday[0]!='0000') {
$birthday = @date($calformat1,mktime(0,0,0,$bday[1],$bday[2],$bday[0]));
} else {
// lets send a valid year as some PHP3 don't like year to be 0
// $calformat2 should not contania year identifier so the year doesn't matter
$birthday = @date($calformat2,mktime(0,0,0,$bday[1],$bday[2],1993));
}
if ($birthday=="") {
$birthday="$bday[1]-$bday[2]-$bday[0]";
}
}
eval("\$birthday = \"".gettemplate("getinfo_birthday")."\";");
}
Originally posted by 212rikanmofo you said this hack is for vb 2.2.5?
in your instructions it stated to find this line in my members.php
Code:
// Set birthday fields right here!
if ($userinfo[birthday] == '0000-00-00') {
$birthday = "N/A";
} else {
$bday = explode("-",$userinfo[birthday]);
if (date("Y")>$bday[0] and $bday[0]>1901 && $bday[0]!='0000') {
$birthday = @date($calformat1,mktime(0,0,0,$bday[1],$bday[2],$bday[0]));
} else {
// lets send a valid year as some PHP3 don't like year to be 0
// $calformat2 should not contania year identifier so the year doesn't matter
$birthday = @date($calformat2,mktime(0,0,0,$bday[1],$bday[2],1993));
}
if ($birthday=="") {
$birthday="$bday[1]-$bday[2]-$bday[0]";
}
}
eval("\$birthday = \"".gettemplate("getinfo_birthday")."\";");
}
I just installed your zodiac hack and when I went in to view the profile, none of the info was there. I went in and set the year for my birthday and it changed the whole date to December 31, 1969 for some reason and my birthday is on January 31st of another year. In my profile in the user cp it still shows the right date but in the profile view it shows the other date and the zodiac info does not show up. Any ideas on this one?