PDA

View Full Version : Birhday Conditionals


ImNotKibs
30 Aug 2010, 11:34
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
30 Aug 2010, 14:26
try: <if condition="$birthday[age]">

ImNotKibs
30 Aug 2010, 19:49
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
30 Aug 2010, 20:39
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
30 Aug 2010, 21:49
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.