Version: 1.00, by Boofo
Developer Last Online: Jun 2012
Version: 2.2.x
Rating:
Released: 03-19-2003
Last Update: Never
Installs: 25
No support by the author.
Birthday, User Age and Zodiac Hack (Working Version)
Version 1.2 by Boofo (and Logician)
A very big Thank You goes out to Logician for helping to make this hack a reality. Without his expert coding and guidance, it would never have been. And a thank you also goes out to Slynderdale for giving me the idea to make this hack. Although I could never get his hack to work, it gave me some general ideas of where to start from.
What this hack does:
This will allow you to have the user's age, zodiac sign and chinese zodiac sign in the profile. It will also allow you to have the variable filled in instead of showing nothing if no information was entered.
(NOTE: This birthday code will also fix the problem that some people have encountered with the birthdate not displaying the correct date if the users birthday was before December 31, 1969. This was only reported to happen on a few installations on certain servers.)
Version 1.0 - Originally written for vBulletin 2.2.5 without the images showing.
Version 1.1 - Updated to work with vBulletin 2.2.9 and added images for the zodiac signs.
Version 1.2 - Updated the instruction file to avoid anyone changing the wrong birthday code.
This hack has been tested on version 2.2.9.
Files to edit: 1 (root/member.php)
Files to upload: 12 (zodiac image files)
Templates to Edit: 1 (getinfo)
[high]Please lick the install button if you find this hack useful.[/high]
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
i did add the code to the proper place, please help, i know for a fact that it works, cause how come the age shows up? the only part that doesnt is the zodiac and chinese zodiac fields... they're blank...
Today at 08:47 PM 212rikanmofo said this in Post #81 i did add the code to the proper place, please help, i know for a fact that it works, cause how come the age shows up? the only part that doesnt is the zodiac and chinese zodiac fields... they're blank...
Did you add the code in the getinfo template? Post it here so I can see if that might be causing your problem.
:shame: Thanks Boofo. I hope you can let this also work in the postbit. Great hack.
-- ow...i'm a rat not an ox. How to change that?
Quote:
Originally Posted by Boofo
What is your birthdate?
I think the problem is your hack is not following the Chinese Lunar Calendar.
A person borned in 1973 or 1961 is not necessarily belonging to the OX chinese zodiac.
Those who were born before the Chinese Lunar New Year belongs to the Rat zodiac. And Chinese Lunar New Year, does not fall on 1st Jan.
Are you able to make the hack follow the Chinese Calendar? (perpetually?)
Well, I did the best I could with what I had to work with. What is in the hack is what I found in numerous places on the Internet. They all had about the same thing so I went with that. If you really want to get technical, I suppose you could be right, but for most cases, what is in the hack will do nicely AND follow what I found at most other places.
Gine me the info I need and I will see about getting it implemented.
Well, I did the best I could with what I had to work with. What is in the hack is what I found in numerous places on the Internet. They all had about the same thing so I went with that. If you really want to get technical, I suppose you could be right, but for most cases, what is in the hack will do nicely AND follow what I found at most other places.
Gine me the info I need and I will see about getting it implemented.
The chinese calendar is different every year, and I am not really sure what is the formula to calculate the number of days per chinese lunar new year.
I will try to find out for you.