PDA

View Full Version : Birhday Conditionals


ImNotKibs
08-30-2010, 10:34 AM
Maybe I'm stupid, but I've been looking for a good half hour, and cannot find the basic conditional for "If it's this users birthday, display this".

Does one even exist?

What I'm trying to accomplish:
On our forum (http://918thefan.com/forums) we have a mascot that displays the PM info in a speech bubble, with a randomly generated quote at the bottom (if logged in, anyway), but I'd like it to display "Happy Birthday" if the users birthday is today.

<if condition="!birthday conditional"><script type="text/javascript" src="http://918thefan.com/forums/brie.js"></script><else />Happy Birthday!</if>

Rawr, I am all types of frustrated.

BirdOPrey5
08-30-2010, 01:26 PM
try: <if condition="$birthday[age]">

ImNotKibs
08-30-2010, 06:49 PM
try: <if condition="$birthday[age]">
I think I spoke too soon, let me try something

Eh, unless it takes >20 minutes to update, it's not working.

BirdOPrey5
08-30-2010, 07:39 PM
I put "birthday" into "Search Templates" and this is what came up in; forumhome_birthdaybit
<!--rlm--><a href="member.php?$session[sessionurl]u=$birthday[userid]">$birthday[username]</a><if condition="$birthday[age]"> <!--rlm-->($birthday[age])</if>

There may be others...

ImNotKibs
08-30-2010, 08:49 PM
I'm starting to think there is none, there are some hacks around that do stuff if it's a users birthday, I'll look into those and see if I can't dissect out what I need.

Thanks anyway for the help.