Taking the idea furthur, i have sucessfully gotten it working by adding a single line to adminfunctions_template.php, which adds the ability to use substr in templates.
Add to includes/adminfunctions_template.php (
around line 1550, after
PHP Code:
'is_member_of', // function to check if $user is member of $usergroupid
PHP Code:
'substr', // substring function to compare parts of strings
Add to phpinclude_start
PHP Code:
$birthdaytoday = vbdate('m-d-Y', TIMENOW, false, false);
Add to the location that you want the image to appear in the postbit,
Code:
<if condition="substr($post['birthday'], 0, 5) == substr($GLOBALS['todaysdateforbirthdays'], 0, 5)"><img class="inlineimg" src="$stylevar[imgdir_misc]/birthday_small.gif" border="0" alt="$post[username]'s birthday is today!" /></if>
I think its a nicer method, because it allows you to update everything without the hassle of having to hack each individual file. It is necessary to add substr to the allowed functions list, though.
Sorry if i should have made a new thread