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 Cake in postbits for all b-days for the week (https://vborg.vbsupport.ru/showthread.php?t=52897)

monstergamer 05-13-2003 11:03 PM

i like it :D

Boofo 05-13-2003 11:28 PM

Quote:

Today at 06:59 PM DPoole said this in Post #10
is that only way to do it ?

as means installing another hack for something which is minor

Logician's hack is probably smaller than what it would take to do it another way. And with his hack, you can use conditionals for a lot of things.Ttrust me when I say that once you try it, you won't ever want to be without it. ;)

alkatraz 05-14-2003 02:00 AM

awesome!!!

Alien 05-14-2003 02:09 AM

Works perfectly, thanks so much!

week9 05-14-2003 03:09 AM

thank

yxboom 05-14-2003 02:56 PM

Working good on 2.2.9

eoc_Jason 05-14-2003 10:51 PM

Quote:

Yesterday at 05:12 PM DPoole said this in Post #8
i like the hack but would it be possible to swap the users avator for a pre determined one if it was their birthday ?

then when the time runs out its auto switches back to their normal one as i got an idea but need avator switching for it to work?

I suppose you could have it change the $post[avatar] variable, but remember that this actually pulls from a template if you have some custom formatting... Look above like a page or two where you implemented this hack, and you will see all the avatar code. You can just overwrite the avatar var while it is their birthday, but it might confuse some people...

Freezerator 05-16-2003 05:06 PM

very nice hack :)

my members really apreciate it :)

Tnx

Cyricx 05-22-2003 03:24 AM

Here's a question for ya :)

I'm certain I can get one of my graphics artist to do something up and making it available for you to distribute with this hack :)

Basically what I'm thinking is making it countdown.

Like 7 days before their birthday, it shows a cake with 7 candles.
6 days before a cake with 6 candles
5 days before a cake with 5 candles etc
til the day of it would display a lil gif that said happy birthday

Something along those lines. :)

Possible? If so I'll sit down with a few of my artists and work on something, if you think you could do the coding. :)

eoc_Jason 05-23-2003 05:53 PM

Sure you can do something like that... originally I had the dates pushed into an array and just a "in_array" function, but I chose the loop method just so there was one less variable floating around... But instead of just checking if it is in the array, you can find where in the array and set the count-down date accordingly...

However, I think something like that might just cause confusion among people...

Something a little simpler was if it was the actual birthday then the cake would look different than if it was just a day during the week...


All times are GMT. The time now is 10:13 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
  • Page Generation 0.01152 seconds
  • Memory Usage 1,735KB
  • 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
  • (3)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