View Full Version : Buddy Birthday Reminder
Andreas
12-03-2005, 06:53 AM
A Useroption "Notify me when a Buddy has a birthday"
A cronjob checking for others that have a birthday in X days and that do allow to display their DOB.
If there are results, check which users do have them on their buddylist and have the above option enabled.
Process this data and send an eMail
Hello $username.
One ore more on your buddies do have a birthday in $days days:er
$buddybirthdaylist
Yours,
$vboptions[bbtitle] Team
Where $buddybirthdaylist should be
user1 will become age1 on date1
user2 will become age2 on date2
NE1 willing to code that?
calorie
12-03-2005, 08:15 AM
Sure Kirby, in the midst of some stuff now, but when finished, not a problem. :)
Andreas
12-09-2005, 07:32 AM
*bump di bump*
NE1?
I am too lazy :(
Boofo
12-09-2005, 05:37 PM
*bump di bump*
NE1?
I am too lazy :(
As good as you are, you can't take 30 seconds to make this? LOL
Andreas
12-09-2005, 05:47 PM
*slaps bob*
It would take a bit more than 30 seconds.
Boofo
12-09-2005, 05:56 PM
* Ouch! *
I'm sure it wouldn't take a lot more time for the vB Dev of the year. ;)
calorie
12-09-2005, 06:30 PM
31 seconds... ;)
btw, didn't forget, still on
my other mod in free time
Alan @ CIT
12-10-2005, 11:19 AM
Hi Andreas,
I've knocked something together this morning that should work. Take a look at the attached zip.
It's designed to run as a cronjob each Sunday, it'll then look for birthdays that occur in the next 7 days and send e-mails based on that.
I've run a few tests here on my local test board, and it appears to work as designed, but it could do with some cleaning up if it's going to be used on a big big big forum, and it may well have a bug or 2 that I haven't noticed :)
(Note to anyone else who might download this zip: This isn't an official hack release, so I won't be extending / supporting it - use at your own risk)
Edit: Forgot to add the template edit :)
Edit the modifyoptions template and add:
<!-- Buddy Birthday Reminders -->
<fieldset class="fieldset">
<legend><labal for="sel_buddybirthdays">$vbphrase[buddy_list_birthday_reminders]</label></legend>
<table callpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
<tr>
<td>$vbphrase[buddy_list_birthday_reminders_desc]</td>
</tr>
<tr>
<td>
<div><label for="cb_buddybirthdays"><input type="checkbox" name="buddybirthdays" value="1" id="cb_buddybirthdays" $checked[buddybirthdays] />$vbphrase[remind_me_of_my_buddies_birthdays]</label></div>
</td>
</tr>
</table>
</fieldset>
<!-- / Buddy Birthday Reminders -->
Where ever you want it to appear.
Thanks,
Alan.
calorie
12-10-2005, 11:53 AM
Thanks Alan for stepping in, was starting
to feel bad here not yet getting to this.
Glad you were able to get it done. :)
klaush
12-10-2005, 01:51 PM
*subscribed*
Alan @ CIT
12-15-2005, 07:23 PM
oops, forgot a phrase. If anyones actually using this hack, add a phrase called remind_me_of_my_buddies_birthdays to User Tools (Global) with text of "Remind me of my buddies birthdays"
Alan @ CIT
06-16-2006, 11:19 PM
Out of interest, did anyone ever use/test this?
If someone can confirm it actually works, I'll release it as a proper hack :)
Thanks,
Alan.
Yes, I also would like to know if this works ok ;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.