PDA

View Full Version : Birthday, User Age and Zodiac Hack v1.2 (Working Version)


Boofo
03-19-2003, 10:00 PM
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)

Please lick the install button if you find this hack useful.

Dan
03-19-2003, 10:33 PM
Would we be able to put this info into a postbit?

Boofo
03-19-2003, 10:37 PM
It shouldn't be too hard to port it over to that. I can take a look at it and see what I can come up with. The image might be a little much for the postbit, though. What all do you want in the postbit? Erwin released a User Age hack for the postbit already. ;)

Dan
03-19-2003, 10:39 PM
I want the symbol in the symbols in the post bit. I haven't looked at the pictures if they are big i'd make new ones that would be smaller for the postbit

Boofo
03-19-2003, 10:41 PM
The symbol? Please show me an image or something of what you mean.

Dan
03-19-2003, 10:43 PM
images as in the zodiac symbols

Vile
03-19-2003, 10:45 PM
Thanks for sharing :)

Installed, and works great.

Here is a screeny for anyone that wants to have a look:

Boofo
03-19-2003, 10:48 PM
LOL Thanks for the image. I knew I was forgetting something. Glad you like the hack. ;)

Vile
03-19-2003, 10:58 PM
Today at 12:48 AM Boofo said this in Post #8 (https://vborg.vbsupport.ru/showthread.php?postid=369646#post369646)
LOL Thanks for the image. I knew I was forgetting something. Glad you like the hack. ;)


No prob. Posting a screenshot is the easy part, writing a hack like this...that's where it gets tricky, so thank you ;)

Boofo
03-19-2003, 11:00 PM
You're very welcome. Enjoy! ;)

Dan
03-19-2003, 11:25 PM
there got it installed

/me clicks install and watches it work like a dream

Slynderdale
03-19-2003, 11:25 PM
Hmm most of that is the same code I had for my zodiac hack plus if you check the thread i Uploaded version 2.0 with code fixes and also improved the code alot

Boofo
03-19-2003, 11:31 PM
Today at 07:25 PM Slynderdale said this in Post #12 (https://vborg.vbsupport.ru/showthread.php?postid=369661#post369661)
Hmm most of that is the same code I had for my zodiac hack plus if you check the thread i Uploaded version 2.0 with code fixes and also improved the code alot

The difference between this code and yours is that it had to be re-written and corrected to work like it is supposed to. I wasn't going to release it but I saw people were still having problems with your new version. I credited you in the file, my friend. ;)

Slynderdale
03-19-2003, 11:31 PM
My updated code is also template driven for easy editing online, I uploaded the fixed 2.0 quite a while ago and it works well, I tested it on a few boards.

Hmm, only one person had a problem with it because they copied the code in a wrong please, Im not trying to be mean or any thing, and Im not mad or any thing. Good work though with fixing this.

NuclioN
03-19-2003, 11:52 PM
I've many hacks installed and my birthdaycode looks a bit different and i can't replace it with the code from this hack because it then displayed no birthdaybits anymore and wrong dates. Can you make it work with this??



// Set birthday fields right here!
if ($bbuserinfo[birthday] == '0000-00-00') {
$daydefaultselected = "selected";
$monthdefaultselected = "selected";
} else {
$birthday = explode("-",$bbuserinfo[birthday]);
$dayname = "day".$birthday[2]."selected";
$$dayname = "selected";
$monthname = "month".$birthday[1]."selected";
$$monthname = "selected";
if (date("Y")>$birthday[0] && $birthday[0]!='0000')
$year = $birthday[0];
}
eval("\$birthday = \"".gettemplate("register_birthday")."\";");
} else {
$birthday = '';
}

snyx
03-19-2003, 11:58 PM
beauty. at the top of my 2do list :D

Boofo
03-19-2003, 11:59 PM
You're in the wrong section of the member.php. You need to be in the "start get info" section. ;)

Boofo
03-20-2003, 12:03 AM
Today at 07:58 PM snyx said this in Post #16 (https://vborg.vbsupport.ru/showthread.php?postid=369676#post369676)
beauty. at the top of my 2do list :D

Great! When you 2do it, don't forget the (c)lick install. ;)

NuclioN
03-20-2003, 12:04 AM
: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?

Boofo
03-20-2003, 12:10 AM
What is your birthdate?

NuclioN
03-20-2003, 12:24 AM
1961

Boofo
03-20-2003, 12:39 AM
Today at 08:24 PM NuclioN said this in Post #21 (https://vborg.vbsupport.ru/showthread.php?postid=369687#post369687)
1961


The Chinese Zodiac Sign for 1961 is Ox.

The Year of the Ox


1913, 1925, 1937, 1949, 1961, 1973, 1985, 1997



The Year Of The Rat


1912, 1924, 1936, 1948, 1960, 1972, 1984, 1996

Bison
03-20-2003, 12:46 AM
Nice work Boofo ...

Now it would be great to add a clear image in the image placeholder for those members that don't want to share their age! That *blank* image placeholder looks out of place! ;)

Boofo
03-20-2003, 01:24 AM
On my site, I use Logician's Dynamic Templates hack and just have the whole line not show if there isn't a birth year entered. I suppose I could go in and do a space fix for that, unless you have an image to replace that. ;)

Riddel
03-20-2003, 01:43 AM
lol the example birthday you used is my birthday!

Boofo
03-20-2003, 01:47 AM
Today at 09:43 PM Riddel said this in Post #25 (https://vborg.vbsupport.ru/showthread.php?postid=369720#post369720)
lol the example birthday you used is my birthday!


November 27th, 1981?

Boofo
03-20-2003, 02:12 AM
Update!

There is a broken image if the birth year is not entered in the profile. To fix this, do the following:

In member.php, find:

$zodiacimage=$zodiacsign.".gif";

And replace it with:

$zodiacimage = "<img src=\"{imagesfolder}/zodiac/$zodiacsign.gif\" border=\"0\" alt=\"$zodiacsign\" align=\"absmiddle\">";

In the getinfo template, find:

<tr>
<td bgcolor="{firstaltcolor}"><normalfont><b>Zodiac Sign:</b></normalfont></td>
<td bgcolor="{firstaltcolor}"><img src="{imagesfolder}/zodiac/$zodiacimage" border="0" alt="$zodiacsign" align="absmiddle"></td>
</tr>

And replace it with:

<tr>
<td bgcolor="{firstaltcolor}"><normalfont><b>Zodiac Sign:</b></normalfont></td>
<td bgcolor="{firstaltcolor}">$zodiacimage</td>
</tr>

The install file in the first post is now updated. ;)

nnjj.net
03-20-2003, 05:20 AM
hi
I installe the hack
but in every profile this will come out
Can not define without a complete birthdate.

is that mean it's not working or what !

Boofo
03-20-2003, 06:14 AM
Today at 01:20 AM nnjj.net said this in Post #28 (https://vborg.vbsupport.ru/showthread.php?postid=369812#post369812)
hi
I installe the hack
but in every profile this will come out
Can not define without a complete birthdate.

is that mean it's not working or what !

Thanks for catching that. ;)

In member.php, find this:

if ($user_age<1 OR $user_age>100 OR !$user_age)
{
$user_age="Can not define without a complete birthdate.";
}

and replace it with this:

if ($user_age<1 OR $user_age>100 OR !$user_age)
{
$user_age='';
}

I'll update the install file.

sabret00the
03-20-2003, 10:16 AM
the only thing this is missing is gender, then it'd be perfect ;)

Boofo
03-20-2003, 10:25 AM
There's already been a gender hack released a while ago. ;)

Slynderdale
03-20-2003, 10:32 AM
If any one wants a zodiac and user age hack that doesnt replace any code and works with vb 3.0 and just simply copy and paste without replacing any clode and thats template driven to esily edit online go here:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=37938

Plus theres alot less code, heres an example:

if (!isset($bday) or !$bday) $bday = explode("-",$post[birthday]);
if (date("Y")>$bday[0] and $bday[0]>1901 && $bday[0]!='0000') {
$userage= date("Y") - ($bday[0]+1);
if ((date("m")==$bday[1] and $bday[2]<=date("d")) or date("m")>$bday[1])
$userage=$userage+1;
$zodiac_chinese_array = array("Rooster","Dog","Pig","Rat","Ox","Tiger","Hare","Dragon","Snake","Horse","Goat","Monkey");
$zodiacbit=$bday[0]%12;
eval("\$zodiac[chinese] = \"".gettemplate("zodiac_chinese_".strtolower(trim($zodiac_chinese_array[$zodiacbit-1])))."\";");
}
if ($bday[1]!='00' and $bday[1]>0 and $bday[2]!='00' and $bday[2]>0) {
$zodiac_astro_array = array("Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces");
$zodiac_month = array(
start => array("3","4","5","6","7","8","9","10","11","12","1","2"),
end => array("4","5","6","7","8","9","10","11","12","1","2","3")
);
$zodiac_day = array(
start => array("21","20","21","22","23","23","23","23","22","22","20","19"),
end => array("19","20","21","22","22","22","22","21","21","19","18","20")
);
for($i=0;$i<12;$i++) {
$month['start'] = $zodiac_month['start'][$i];
$month['end'] = $zodiac_month['end'][$i];
$day['start'] = $zodiac_day['start'][$i];
$day['end'] = $zodiac_day['end'][$i];
if($bday[1] == $month['start'] and $bday[2] >= $day['start'] or $bday[1] == $month['end'] and $bday[2] <= $day['end']) {
eval("\$zodiac[astro] = \"".gettemplate("zodiac_astro_".strtolower(trim($zodiac_astro_array[$i])))."\";");
break;
}
}
}


It works too, this hack boofo release was version 1.o of my code after he made small edits to it, the code was almost identicle though, So you can use Boofo's fix of version 1.0 of my code or mu version 2.0 code. Both work.

nnjj.net
03-20-2003, 10:55 AM
hi
I changed it but nothing appaer now !

Boofo
03-20-2003, 10:57 AM
If they don't enter a birth year, there won't be an age. Check to see if they have entered their birth year. ;)

Are you trying to put the age in the postbit or getinfo template?

SmartGnome
03-20-2003, 11:47 AM
Looks good boofo. Will try to install it later :D

Greetzz

Boofo
03-20-2003, 11:58 AM
Thank you for the kind words. Don't forget to (c)lick install. :) Enjoy. :)

nnjj.net
03-20-2003, 12:46 PM
the date of birth is wrritten there but still nothing
I'm wotking in getinfo template

and the problem still

Boofo
03-20-2003, 12:56 PM
Today at 08:46 AM nnjj.net said this in Post #37 (https://vborg.vbsupport.ru/showthread.php?postid=369919#post369919)
the date of birth is wrritten there but still nothing
I'm wotking in getinfo template

and the problem still

Ok, I guess I'm not understanding you here. In order for the age to show up, they must ALSO enter a year of birth, not just the date. Have they done that? Can you attach a picture of what it looks like here?

SmartGnome
03-20-2003, 03:25 PM
Today at 03:46 PM nnjj.net said this in Post #37 (https://vborg.vbsupport.ru/showthread.php?postid=369919#post369919)
the date of birth is wrritten there but still nothing
I'm wotking in getinfo template

and the problem still

Boofo the same with me. Birthday is entered, images are in images/zodiac

No zodiac img, no zodiac names and no age displayed.

Did I forgot something ??? Update a counter fi :D

Greetzz

Slynderdale
03-20-2003, 03:31 PM
Today at 12:25 PM SmartGnome said this in Post #39 (https://vborg.vbsupport.ru/showthread.php?postid=370020#post370020)


Boofo the same with me. Birthday is entered, images are in images/zodiac

No zodiac img, no zodiac names and no age displayed.

Did I forgot something ??? Update a counter fi :D

Greetzz


Try using my hack and see if it works, you can esily edit the templates for text and/or images.

Boofo
03-20-2003, 05:55 PM
Today at 11:25 AM SmartGnome said this in Post #39 (https://vborg.vbsupport.ru/showthread.php?postid=370020#post370020)


Boofo the same with me. Birthday is entered, images are in images/zodiac

No zodiac img, no zodiac names and no age displayed.

Did I forgot something ??? Update a counter fi :D

Greetzz

Did you download the update? Is the birthday showing up at all?

Slynderdale, try to have a little more class than that, will you, please? ;)

Boofo
03-20-2003, 06:05 PM
Today at 11:25 AM SmartGnome said this in Post #39 (https://vborg.vbsupport.ru/showthread.php?postid=370020#post370020)


Boofo the same with me. Birthday is entered, images are in images/zodiac

No zodiac img, no zodiac names and no age displayed.

Did I forgot something ??? Update a counter fi :D

Greetzz

Make sure you are in the "start get info" section of member.php with the birthday code. There are 2 birthday codes in that file. The one you should be changing is right above the referrals code. Can you also attach a picture here? It should be working fine. ;)

snyx
03-20-2003, 06:52 PM
Yesterday at 04:26 PM Boofo Please lick the [i]install button if you find this hack useful. [/B] I did, but it tastes like crap. ;)

Boofo
03-20-2003, 08:07 PM
Today at 02:52 PM snyx said this in Post #43 (https://vborg.vbsupport.ru/showthread.php?postid=370130#post370130)
I did, but it tastes like crap. ;)

LOL I'm sure it does, by now. ;) Thanks!

nnjj.net
03-20-2003, 08:19 PM
There are 2 birthday codes in that file. The one you should be changing is right above the referrals code

I found one only
this is my file if you like to check

thanx

Boofo
03-20-2003, 08:25 PM
Today at 04:19 PM nnjj.net said this in Post #45 (https://vborg.vbsupport.ru/showthread.php?postid=370174#post370174)
There are 2 birthday codes in that file. The one you should be changing is right above the referrals code


I found one only
this is my file if you like to check

thanx

I found your problem. You have it in the wrong part. It needs to be the birthday code right above this in your file that needs to be changed. Revert the other code back. :)

// Find out how much personal glamour does this user has

And we are not allowed to post vbulletin files here. Remove the attachment from your last message, please. ;)

Boofo
03-20-2003, 08:28 PM
Today at 11:25 AM SmartGnome said this in Post #39 (https://vborg.vbsupport.ru/showthread.php?postid=370020#post370020)


Boofo the same with me. Birthday is entered, images are in images/zodiac

No zodiac img, no zodiac names and no age displayed.

Did I forgot something ??? Update a counter fi :D

Greetzz

Make sure you are replacing the correct birthday code. It is the birthday code right above this line that needs to be changed.:

// Get referrals
if ($usereferrer) {
if ($backcolor=="{firstaltcolor}") {
$backcolor="{secondaltcolor}";
$bgclass = "alt2";
} else {
$backcolor="{firstaltcolor}";
$bgclass = "alt1";
}
$refcount = $DB_site->query_first("SELECT count(*) AS count
FROM user
WHERE referrerid = '$userinfo[userid]'");
$referrals = $refcount[count];
eval("\$referrals = \"".gettemplate("getinfo_referrals")."\";");
} else {
$referrals = '';
}

Slynderdale
03-20-2003, 08:52 PM
Your not allowed yo post full vbulletin members nnjj.net, copy right issues

amykhar
03-20-2003, 10:00 PM
Installed in minutes and worked immediately. Thank you :)

Amy

Boofo
03-20-2003, 11:01 PM
You're very welcome, young lady. ;)

nnjj.net
03-21-2003, 09:14 AM
thanx alot its working great now and sorry for the file
BTW what if I want to use pictures for the chines zodiac instead of words ?

Boofo
03-21-2003, 09:23 AM
Today at 05:14 AM nnjj.net said this in Post #51 (https://vborg.vbsupport.ru/showthread.php?postid=370539#post370539)
thanx alot its working great now and sorry for the file
BTW what if I want to use pictures for the chines zodiac instead of words ?

Just make sure you upload the images to the zodiac directory and the names need to be the same as they are in the code (example: Hare.gif). If you come across a good set of images, let me know and I can include them in the file for others to use, too. ;)

You will also need to change:

<tr>
<td bgcolor="{secondaltcolor}"><normalfont><b>Chinese Zodiac Sign:</b></normalfont></td>
<td bgcolor="{secondaltcolor}"><normalfont>$chineszodiacsign</normalfont></td>
</tr>

to:

<tr>
<td bgcolor="{secondaltcolor}"><normalfont><b>Chinese Zodiac Sign:</b></normalfont></td>
<td bgcolor="{secondaltcolor}"><normalfont>$chinesezodiacimage</normalfont></td>
</tr>

in the getinfo template.

sabret00the
03-21-2003, 10:42 AM
Yesterday at 12:25 PM Boofo said this in Post #31 (https://vborg.vbsupport.ru/showthread.php?postid=369861#post369861)
There's already been a gender hack released a while ago. ;) i know but i'm lazy just thought it would've been nice to have it all integrated into one great hack ;)

SmartGnome
03-21-2003, 11:48 AM
Works :banana:

Was in the wrong birthday part [dumb] :laugh: and install is clicked.

Last stupid question:

I'm a noob for VB [just changes from wbb to here], how can I put these into the postbit. I did use the vars, but no show :(

Again thanks for this nice addy Boofo

Greetzz

Boofo
03-21-2003, 12:14 PM
Today at 06:42 AM sabret00the said this in Post #53 (https://vborg.vbsupport.ru/showthread.php?postid=370565#post370565)
i know but i'm lazy just thought it would've been nice to have it all integrated into one great hack ;)

I've done a few hack installs myself where I wished the very same thing. ;)

Boofo
03-21-2003, 12:18 PM
Today at 07:48 AM SmartGnome said this in Post #54 (https://vborg.vbsupport.ru/showthread.php?postid=370595#post370595)
Works :banana:

Was in the wrong birthday part [dumb] :laugh: and install is clicked.

Thanks! ;)

Last stupid question:

No question is stupid if you don't know the answer. ;)

I'm a noob for VB [just changes from wbb to here], how can I put these into the postbit. I did use the vars, but no show :(

Again thanks for this nice addy Boofo

Greetzz

Erwin released an Age in postbit hack a while back just for that. The zodiacs would take some coding in the functions.php but could be done. The reason I never did it is because I didn't want to over-inflate the postbit with alot of the same info that is in the profile. I like to have fresh info in different places so users will take the time to check it all out. ;)

Boofo
03-21-2003, 01:51 PM
Today at 06:42 AM sabret00the said this in Post #53 (https://vborg.vbsupport.ru/showthread.php?postid=370565#post370565)
i know but i'm lazy just thought it would've been nice to have it all integrated into one great hack ;)

You must really be tired. You completely missed the install button. It's around here somewhere, I think. ;)

NuclioN
03-21-2003, 02:05 PM
Today at 02:18 PM Boofo said this in Post #56 (https://vborg.vbsupport.ru/showthread.php?postid=370612#post370612)


I like to have fresh info in different places so users will take the time to check it all out. ;)

I wonder if this is happening, most of our members like to have info right before their nose and are unwilling to cross different sections of the forum to harvest it.

I see the postbit as the nervecenter of a forum and there it's all come togehter to make a forum as interactive and rich in personal info as possible, without overloading it. The balance is a challenge, i admit that but in the mean time...it would be a nice addon if this images are displayed in the postbit to. ;)

Boofo
03-21-2003, 02:12 PM
Ok, Ok, you talked me into it. I will work on this later today and post it here when I have it finished. ;)

Boofo
03-21-2003, 02:42 PM
NuclioN, in the admin/functions.php file, copy the birthday code and the zodiac code (below it) AFTER the following code and put the same variables you are using in the profile where you want them to show up in the postbit. That should do it.

if ($post['receivepm'] and $enablepms==1) {
eval("\$post[pmlink] = \"".gettemplate("postbit_sendpm")."\";");
} else {
$post[pmlink] = "";
}

nnjj.net
03-21-2003, 04:17 PM
thanx alot I will search for nice pictures and update you about it ;)

Boofo
03-21-2003, 04:22 PM
Thanks. Did you code work for you ok, then?

NuclioN
03-21-2003, 05:42 PM
Do you mean we should paste all the code in functions.php as it is done in member.php under the code you placed above? I've tried that and it gives a parse error.

Parse error: parse error in /forum/admin/functions.php on line 439

Fatal error: Call to undefined function: getuserinfo() in /forum/admin/sessions.php on line 341

Boofo
03-21-2003, 07:57 PM
Ok, for a quick fix so you can use this in the postbit, too, until I can look at it further, use Erwin's Age in Postbit Hack for the birthday part and then copy the zodiac part below it and it will work, I tested it that way here.

NOTE: This wasn't written for the postbit, yet, only for the getinfo where it works fine. I will see what I can do about porting it to work in the postbit for you.

Slynderdale
03-21-2003, 08:42 PM
Boofo im not trying to mean or any thing but I fixed all the bugs with the zodiac hack before you released this and also made a few improvments including with the age, the code you have in this hack is 90% of version 1.0 of my old hack with some fixes.

The version 2.0 of my hack was completly rewritten for alot less code and also fixed the bugs in 1.0. I also made it so it doesnt need to replace that chunk of code any more so its compatible with all future versions of vB and made it esier to read.

Also I added template support so you dont have to go in and edit the member.php file and thn reupload it to the server every time you wanna make a change to the way it looks.

I thank you though for wanting to help and fixing up my original code, Im sorry if this sounds mean at all. It wasnt meant to. Also im sorry for any previous posts I made that offended you. I consider you a freind and the last thing I want is for a freind to be mad at me.

SmartGnome
03-21-2003, 10:05 PM
Yesterday at 08:42 PM NuclioN said this in Post #63 (https://vborg.vbsupport.ru/showthread.php?postid=370843#post370843)
Do you mean we should paste all the code in functions.php as it is done in member.php under the code you placed above? I've tried that and it gives a parse error.

Parse error: parse error in /forum/admin/functions.php on line 439

Fatal error: Call to undefined function: getuserinfo() in /forum/admin/sessions.php on line 341


Boofo, I get the same parse error. Will look to it further tomorrow.

I attache a file with other gifs for the zodiacs. Meko is searching for chinese pics :D

Cu

Boofo
03-21-2003, 10:32 PM
Today at 06:05 PM SmartGnome said this in Post #66 (https://vborg.vbsupport.ru/showthread.php?postid=371012#post371012)



Boofo, I get the same parse error. Will look to it further tomorrow.

I attache a file with other gifs for the zodiacs. Meko is searching for chinese pics :D

Cu

https://vborg.vbsupport.ru/showthread.php?postid=370943#post370943 ;)

NuclioN
03-22-2003, 08:08 AM
It's working great boofo, tnx :)

Boofo
03-22-2003, 08:24 AM
Glad to hear it. ;)

Littlebit
03-22-2003, 11:36 PM
03-19-03 at 07:26 PM Boofo said this in Post #1 (https://vborg.vbsupport.ru/showthread.php?postid=369628#post369628)Please lick the install button if you find this hack useful.
heheh :laugh:

this is a neat idea! Thank you...clicking install :)

Boofo
03-23-2003, 12:37 AM
Thank you and enjoy!

By the way, would you mind wiping off the button when you are done licking it. Other users, you know. ;)

Kars10
03-26-2003, 04:52 PM
Cool Hack buddy!!
Thanks for sharing with us...

* Kars10 kicks install ;)

212rikanmofo
04-19-2003, 02:50 PM
boofo this isnt workin for me, it shows the age of the person but says nothing for the zodiac and chinese zodiac field... i double checked everything to see if i put your code in the correct place and i did... the user has there full birthdate set, but it doesnt show the zodiac or chinese zodiac, the age shows though... weird, plz help!

Boofo
04-19-2003, 05:35 PM
Did you upload the image files for the zodiac signs? Also, make sure the zodiac filenames are capitalized in the first letter after you upload them.

212rikanmofo
04-19-2003, 11:27 PM
yup they are capitolized and upload to my images folder, but still nothing shows up for zodian sign or chinese zodiac sign, only the Age shows... :(

Lysithea
04-20-2003, 01:41 AM
Hey, I'm pretty new at adding hacks but this one worked very well. Thank you Boofo!

I like the zodiac sign images, but I was wondering if you also had images for the chinese zodiac signs? (i.e. ox, bull, tiger, rabbit, etc...) :)

Boofo
04-20-2003, 05:06 AM
You're very welcome. I haven't found a good set of the chinese zodiac images yet. I will post them here when I find a set that looks good. ;)

Boofo
04-20-2003, 05:11 AM
Yesterday at 06:27 PM 212rikanmofo said this in Post #75 (https://vborg.vbsupport.ru/showthread.php?postid=384396#post384396)
yup they are capitolized and upload to my images folder, but still nothing shows up for zodian sign or chinese zodiac sign, only the Age shows... :(

The images need to be in the images/zodiac folder. Check the code again and make sure you put the code in the right place in the member.php file. That will make a difference.

gmarik
04-20-2003, 07:58 AM
Is it working on 2.3.0?

TheComputerGuy
04-20-2003, 07:35 PM
Works here, thanks alot!

212rikanmofo
04-21-2003, 01:47 AM
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...

Boofo
04-21-2003, 01:54 AM
Today at 08:47 PM 212rikanmofo said this in Post #81 (https://vborg.vbsupport.ru/showthread.php?postid=384928#post384928)
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.

Boofo
04-21-2003, 01:55 AM
Today at 02:58 AM gmarik said this in Post #79 (https://vborg.vbsupport.ru/showthread.php?postid=384522#post384522)
Is it working on 2.3.0?

Yes, it has been installed on 2.3.0 and seems to be working fine.

212rikanmofo
04-21-2003, 03:00 PM
yes, here ya go...


<tr>
<td bgcolor="$backcolor"><normalfont><b>Birthday</b></normalfont></td>
<td bgcolor="$backcolor"><normalfont>$birthday</normalfont></td>
</tr>


<tr>
<td bgcolor="{secondaltcolor}"><normalfont><b>Age:</b></normalfont></td>
<td bgcolor="{secondaltcolor}"><normalfont>$user_age</normalfont></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}"><normalfont><b>Zodiac Sign:</b></normalfont></td>
<td bgcolor="{firstaltcolor}"><normalfont>$zodiacimage</normalfont></td>
</tr>
<tr>
<td bgcolor="{secondaltcolor}"><normalfont><b>Chinese Zodiac Sign:</b></normalfont></td>
<td bgcolor="{secondaltcolor}"><normalfont>$chineszodiacsign</normalfont></td>
</tr>

reismarktq2
06-11-2003, 05:24 PM
Great hack.

/me clicks install.

Shuriken-UK
06-11-2003, 05:45 PM
Ohhh funky man, great stuff :) i might make a traditional Chinese zodiac image set to accompany this for ya :)

*install

Alan Ang
02-06-2004, 04:03 AM
: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?

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?)

Boofo
02-06-2004, 04:59 AM
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. ;)

Alan Ang
02-06-2004, 09:51 AM
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. ;)

Boofo
02-06-2004, 11:43 AM
Please pm me if you come up with anything. ;)