vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Simple Zodiac Hack (https://vborg.vbsupport.ru/showthread.php?t=37938)

Slynderdale 04-26-2002 10:00 PM

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.

Floris 04-27-2002 01:41 PM

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?

Slynderdale 04-27-2002 01:51 PM

Quote:

Originally posted by xiphoid
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?

that was a gender edit and users can select any zodiac sign they want, mine automaticly shows the correct zodiac sign for there birthday

Slynderdale 04-27-2002 02:01 PM

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

Slynderdale 04-27-2002 02:17 PM

Heres my profile with it

NyCwill 04-27-2002 04:22 PM

can like use pic of zodiac instead of text?

snyx 04-27-2002 06:45 PM

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

Slynderdale 04-28-2002 11:01 AM

Quote:

Originally posted by NyCwill
can like use pic of zodiac instead of text?
it already works with images, you can either change the php code to the image like <img src="cancer.gif"> or have in the template
<img src="$zodiacsign.gif"> and make images like Cancer.gif, thats all

Slynderdale 04-28-2002 11:57 AM

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

Slynderdale 04-29-2002 11:02 AM

tell me what you think :)


All times are GMT. The time now is 08:03 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01134 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete