vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Buddy Birthday Reminder (https://vborg.vbsupport.ru/showthread.php?t=102126)

Andreas 12-03-2005 06:53 AM

Buddy Birthday Reminder
 
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

Quote:

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

Quote:

Originally Posted by Andreas
*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

1 Attachment(s)
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:

Code:

<!-- 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*


All times are GMT. The time now is 06:15 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01003 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete