![]() |
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. |
Screenshot:
(note, I use the variable on both sides of their username, so it displays 2 cakes) |
You need to place your instructions in a txt file so unregistered users/unlicenced users cant view it.
Good hack btw:) |
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... |
Nice idea. Good work. ;)
|
excellent hack :D
|
Great idea! :D
|
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? |
Just use Logician's Dynamic Template hack to do it right in the template with a conditional. ;)
|
Quote:
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|