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)
-   -   Birthday, User Age and Zodiac Hack v1.2 (Working Version) (https://vborg.vbsupport.ru/showthread.php?t=50482)

NuclioN 03-20-2003 12:24 AM

1961

Boofo 03-20-2003 12:39 AM

Quote:

Today at 08:24 PM NuclioN said this in Post #21
1961

Quote:

The Chinese Zodiac Sign for 1961 is Ox.

The Year of the Ox


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


Quote:

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

Quote:

Today at 09:43 PM Riddel said this in Post #25
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:

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

In the getinfo template, find:

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

And replace it with:

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

[high]The install file in the first post is now updated.[/high] ;)

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

Quote:

Today at 01:20 AM nnjj.net said this in Post #28
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:

PHP Code:

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


and replace it with this:

PHP Code:

if ($user_age<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 ;)


All times are GMT. The time now is 12:04 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.01180 seconds
  • Memory Usage 1,743KB
  • 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_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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