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)

eoc_Jason 05-12-2003 10:00 PM

Birthday Cake in postbits for all b-days for the week
 
I searched high and low for something that would display a little birthday cake (or even text) in the postbits when it was someones birthday and came up empty, so I wrote my own with a twist. I decided to have it display a cake for anyones birthday for the entire week (week being Sun-Sat). That way they get a little more recognition that just on their actual b-day.

This should work with all versions of vB...

All you have to do is add a couple lines of code to your admin/functions.php and add the variable to your postbits. :) Simple!

I just used the bday cake from MSN Messenger Page I'm not posting it here for legal reasons. If you want it to display just text you can change the line accordingly...

Like I said, I don't know if this has been done before, but my searches came up with nothing when searching for "birthday".

Enjoy.

eoc_Jason 05-13-2003 05:03 PM

Screenshot:

(note, I use the variable on both sides of their username, so it displays 2 cakes)

assassingod 05-13-2003 05:10 PM

You need to place your instructions in a txt file so unregistered users/unlicenced users cant view it.

Good hack btw:)

eoc_Jason 05-13-2003 06:00 PM

Okay, I moved it to a text file. I'm pretty sure if you aren't registered then the PHP code blocks say "You need to be licenced to see this code" or something like that...

Yeah, this came out of need to try and reduce the "Happy B-Day" threads... I have about 10 b-days every day, so it can get a little out of hand sometimes. Now I tell them just to PM the person if they want to wish them happy b-day, it's a little more personal and doesn't cause so much clutter...

Boofo 05-13-2003 06:04 PM

Nice idea. Good work. ;)

msimplay 05-13-2003 06:43 PM

excellent hack :D

Mike Gaidin 05-13-2003 07:39 PM

Great idea! :D

DPoole 05-13-2003 09:12 PM

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?

Boofo 05-13-2003 09:22 PM

Just use Logician's Dynamic Template hack to do it right in the template with a conditional. ;)

DPoole 05-13-2003 10:59 PM

Quote:

Yesterday at 11:22 PM Boofo said this in Post #9
Just use Logician's Dynamic Template hack to do it right in the template with a conditional. ;)

is that only way to do it ?

as means installing another hack for something which is minor


All times are GMT. The time now is 10:25 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.02091 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
  • (1)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