![]() |
Simple Zodiac Hack
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. |
It is advicable to make a installation instruction file, so unlicensed users can't get the source :)
And, wasn't such a hack released beginning this week already? |
Quote:
|
i placed the screen shot and install text in the zipfile and also added a way to show the chinese zodiac sign too, unlike the other zodiac, the users dont choose there zodiac like the gender hack, it shows the zodiac and age depending in there birthday date, it will show N/A if the birthday date isnt set, its really simple to add, and if you want to show an image instead have like <img src="$zodiacsign.gif">, Enjoy
|
Heres my profile with it
|
can like use pic of zodiac instead of text?
|
looks tight man! im gunna play with it, try to work some of my images into, if I sucseed, I will post, if not.... I will cry! hahaha
|
Quote:
<img src="$zodiacsign.gif"> and make images like Cancer.gif, thats all |
Updates:
added a text and image varible for the zodiac hack and added a image pack for it, also fixed up some code, see the zip file ion the first post for the update |
tell me what you think :)
|
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? |
Quote:
Its actually a picture hack i made, its almost done. More info here: https://vborg.vbsupport.ru/showthrea...=&pagenumber=1 |
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! Code:
// Set birthday fields right here! |
Quote:
|
hrmm thanks for the fix, but its still not working, i tried to enter this into my postbit template and the image doesnt show up:
Code:
<img src="{imagesfolder}/zodiac/$zodiacimage" alt="$zodiacsign" align="absmiddle" border="0"> |
hmm just add $zodiacimage and tell me what it says
|
nothing shows up at all when i add $zodiacimage into my postbit template.... hrmmm
|
well for some reason nothing is showing up @ all in our postbit either...
I've tried several permutations and have currently got this: PHP Code:
anyone have any ideas? Much appreciated if anyone has any ideas... merci beaucoup, --gimP |
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? :)
|
Slynderdale, are you still supporting this hack? I can't get it to work.
|
Ok, I've narrowed it down to this: If you enter a full bithdate prior to December 31, 1969, it shows that date in your profile no matter what it is set to in your profile options. If you don't enter a year, it shows the correct day and month. But no matter what you enter or what it shows, the Userage, Zodiac Sign and Chinese Zodiac sign do not show up in the user's profile. Is there going to be any fix for this or do we need to un-install it?
|
Slynderdale FYI:
The hack instruction is not correct: a) The text that should be replaced points the wrong section: You ask to replace the text in editprofile section, where it should be the part "getinfo" and the replacement text is wrong either. b) The text that you ask to be replaced has mistakes. There are some parts which are inrelevant and should not be added and the parts that needs to be inserted has other mistakes too. c) Some of the images the hack points is not included in the instructions. (like $chinesezodiacimage) I dont use this hack, just tried to install for a friend and discovered these points. The hack cant work with the provided instructions and it requires a lot of modifications. Just wanted to let you know.. Regards, Logician |
Slynderdale,
Since you seem to no longer be supporting this hack, I will be releasing a working version shortly. The code you had (like Logocian said) had many mistakes which is why I could never get it it work right on my board. Also, your Chinese Zodiavc sign should actually be Ox instead of Buffalo. :) Just thought you should know. Thanks for steering me in the right direction, though. :) |
Quote:
|
pm me and I'll get it to you. ;)
|
I finally completly rewrote the code and fixed it up, see the first post for more info.
|
i just installed this and it is not showing up... march 19th, 2003
anyone got it working yet? |
Its works fine for me and the boards I tested it on, send me your member.php file and ill see if you added it the right spot.
|
It's showing up in the profile but not in the postbit. Also i'm an OX and that surprises me because i'm a rat. :D
|
2.0 Is a working version
|
All times are GMT. The time now is 02:02 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|