The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Birhday Conditionals
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. Code:
<if condition="!birthday conditional"><script type="text/javascript" src="http://918thefan.com/forums/brie.js"></script><else />Happy Birthday!</if> |
#2
|
||||
|
||||
try: <if condition="$birthday[age]">
|
#3
|
|||
|
|||
I think I spoke too soon, let me try something
Eh, unless it takes >20 minutes to update, it's not working. |
#4
|
||||
|
||||
I put "birthday" into "Search Templates" and this is what came up in; forumhome_birthdaybit
Code:
<!--rlm--><a href="member.php?$session[sessionurl]u=$birthday[userid]">$birthday[username]</a><if condition="$birthday[age]"> <!--rlm-->($birthday[age])</if> |
#5
|
|||
|
|||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|