Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-03-2005, 06:53 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 12-03-2005, 08:15 AM
calorie calorie is offline
 
Join Date: May 2003
Posts: 2,804
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure Kirby, in the midst of some stuff now, but when finished, not a problem.
Reply With Quote
  #3  
Old 12-09-2005, 07:32 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*bump di bump*
NE1?

I am too lazy
Reply With Quote
  #4  
Old 12-09-2005, 05:37 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 12-09-2005, 05:47 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*slaps bob*
It would take a bit more than 30 seconds.
Reply With Quote
  #6  
Old 12-09-2005, 05:56 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

* Ouch! *

I'm sure it wouldn't take a lot more time for the vB Dev of the year.
Reply With Quote
  #7  
Old 12-09-2005, 06:30 PM
calorie calorie is offline
 
Join Date: May 2003
Posts: 2,804
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

31 seconds...

btw, didn't forget, still on
my other mod in free time
Reply With Quote
  #8  
Old 12-10-2005, 11:19 AM
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Posts: 625
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Attached Files
File Type: zip Buddy Birthday Reminders.zip (2.7 KB, 42 views)
Reply With Quote
  #9  
Old 12-10-2005, 11:53 AM
calorie calorie is offline
 
Join Date: May 2003
Posts: 2,804
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Alan for stepping in, was starting
to feel bad here not yet getting to this.

Glad you were able to get it done.
Reply With Quote
  #10  
Old 12-10-2005, 01:51 PM
klaush klaush is offline
 
Join Date: Oct 2005
Posts: 340
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*subscribed*
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:50 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07552 seconds
  • Memory Usage 2,270KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete