[add-on] Birthday Mailings

3rd party code for phpList

Re: [add-on] Birthday Mailings

Postby duncanc » 6:53am, Mon 16 Jul, 2012

Just in case you have not yet found it, there is a plugin file earlier on the same page http://forums.phplist.com/viewtopic.php?f=7&t=2789&start=45#p89973
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London

Re: [add-on] Birthday Mailings

Postby djsaturn » 10:38pm, Fri 28 Jun, 2013

This plugin was useful but found that you can only go so far with the days. I changed it up a little to make it work for me.

In main.php I added the following to the sql
Code: Select all
and STR_TO_DATE(CONCAT('2013-', MONTH(STR_TO_DATE(VALUE, '%Y-%m-%d')), '-', DAY(STR_TO_DATE(VALUE, '%Y-%m-%d'))), '%Y-%m-%d') BETWEEN CURDATE() AND DATE_ADD(CURDATE(), INTERVAL ".$days." DAY)

What this does is it selects the users bday replaces the birth year with 2013 then compares it between now and the number of days entered by the user. I also checked to make sure the user is confirmed and is not blacklisted. The original script hack does not check for confirmed or blacklisted.

The script is also defaulted to 7 even if you change the input.

One more thing I didn't want to change the script much so in the evalDate function I just returned 1. Since all the emails selected will be good to send out birthday email.

Hope this helps
djsaturn
phpList newbie
 
Posts: 1
Joined: 10:27pm, Fri 28 Jun, 2013

Re: [add-on] Birthday Mailings

Postby mani34 » 7:23am, Fri 27 Sep, 2013

birthday mailing is more imp if u forggoton any one bday mail will remind you
mani34
phpList newbie
 
Posts: 1
Joined: 7:11am, Fri 27 Sep, 2013

Re: [add-on] Birthday Mailings

Postby deniselindow » 12:03am, Thu 17 Jul, 2014

Hi all, I upgraded to version 3 and the birthday plugin no longer works. It won't even stay activated in the plugin list. Any chance someone knows how to fix it? Thanks in advance.
deniselindow
phpList newbie
 
Posts: 1
Joined: 11:55pm, Tue 23 Oct, 2012

Previous

Return to Contributions: Plug-ins, Add-ons, Mods

Who is online

Users browsing this forum: Google [Bot] and 4 guests