Email on Birthday

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
User avatar
noth
Registered User
Posts: 2472
Joined: Fri Jan 07, 2005 7:10 pm
Location: North Surrey
Contact:

Re: Email on Birthday

Post by noth » Fri Oct 16, 2009 9:23 am

I clicked ACP and even before I entered my password I got this all at the top of my screen
'enable_status' => '1', 'enable_status_viewtopic' => '1', 'enable_status_memberlist' => '1', 'user_status_version' => '1.0.5', 'birthday_emails' => '1', 'birthday_run' => '1255647600', ), ); $this->var_expires = array ( 'mysql_version' => 1287152253, 'anniversary_list' => 1255734000, 'config' => 1287220502, ) ?>[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3929: Cannot modify header information - headers already sent by (output started at /cache/data_global.php:322)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3931: Cannot modify header information - headers already sent by (output started at /cache/data_global.php:322)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3932: Cannot modify header information - headers already sent by (output started at /cache/data_global.php:322)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3933: Cannot modify header information - headers already sent by (output started at /cache/data_global.php:322)
does anyone know what I should do please?

User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: Email on Birthday

Post by lefty74 » Fri Oct 16, 2009 8:48 pm

Pinsho wrote:Hi all!

I'm not sure if I am installing this mod correctly. When says:

Code: Select all

Comments

around line 94

Find

Tip: This may be a partial find and not the whole line.
Code: Select All

	}
	$db->sql_freeresult($result);

Replace with

		if (trim($row['user_email']) && $config['birthday_emails'])
		{
			$bd_list_ary[] = array(
				'method'	=> $row['user_notify_type'],
				'email'		=> $row['user_email'],
				'jabber'	=> $row['user_jabber'],
				'name'		=> $row['username'],
				'lang'		=> $row['user_lang']
			);
		}
	}
	$db->sql_freeresult($result);

	$nowvar = getdate(time() + ($config['board_timezone'] + $config['board_dst'])*3600 - date('Z'));

	if ( sizeof($bd_list_ary) && $config['birthday_run'] < mktime(0, 0, 0, $nowvar['mon'], $nowvar['mday'], $nowvar['year']) && $config['birthday_emails'] )
   {
   set_config('birthday_run', mktime(0, 0, 0, $nowvar['mon'], $nowvar['mday'], $nowvar['year']));

   include_once($phpbb_root_path . 'includes/functions_messenger.' . $phpEx);
	$messenger = new messenger();

	foreach ($bd_list_ary as $pos => $addr)
	{
		$messenger->template('birthday_email', $addr['lang']);

		$messenger->to($addr['email'], $addr['name']);
		$messenger->im($addr['jabber'], $addr['name']);

		$messenger->assign_vars(array(
			'USERNAME'		=> htmlspecialchars_decode($addr['name'])
		));

		$messenger->send($addr['method']);
	}
	unset($bd_list_ary);

	$messenger->save_queue();
	unset($messenger);
	}
	$cache->destroy('config');
	
I have 2 matches...in line 78 and 104...and I do not know If I have to replace both of them.
I replaced line 104 but the mod does not sent any email...It does not work :cry:

Some help please???? :roll:

Attached my edited files

Thank you in advance!
in the config table of your database, does the birthday_run field have a value?
noth wrote:I clicked ACP and even before I entered my password I got this all at the top of my screen
'enable_status' => '1', 'enable_status_viewtopic' => '1', 'enable_status_memberlist' => '1', 'user_status_version' => '1.0.5', 'birthday_emails' => '1', 'birthday_run' => '1255647600', ), ); $this->var_expires = array ( 'mysql_version' => 1287152253, 'anniversary_list' => 1255734000, 'config' => 1287220502, ) ?>[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3929: Cannot modify header information - headers already sent by (output started at /cache/data_global.php:322)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3931: Cannot modify header information - headers already sent by (output started at /cache/data_global.php:322) can
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3932: Cannot modify header information - headers already sent by (output started at /cache/data_global.php:322)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3933: Cannot modify header information - headers already sent by (output started at /cache/data_global.php:322)
does anyone know what I should do please?
noth, did you try already to delete data_global.php from the /cache directory?
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.

User avatar
noth
Registered User
Posts: 2472
Joined: Fri Jan 07, 2005 7:10 pm
Location: North Surrey
Contact:

Re: Email on Birthday

Post by noth » Sat Oct 17, 2009 7:16 am

no

I just tried it!!

ACP now raises with no errors!! :D thank you lefty!!

User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: Email on Birthday

Post by lefty74 » Sat Oct 17, 2009 8:58 am

noth wrote:no

I just tried it!!

ACP now raises with no errors!! :D thank you lefty!!
glad that did the trick ;)
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.

User avatar
noth
Registered User
Posts: 2472
Joined: Fri Jan 07, 2005 7:10 pm
Location: North Surrey
Contact:

Re: Email on Birthday

Post by noth » Tue Nov 24, 2009 6:45 pm

upgrading to 3.0.6 conflicts with this mod

the index.php does not like it

if you used auto updater to go to 306 I think you will find that your members are no longer getting emails on their birthdays :(

FIX

redo the new 3.0.6 index.php however - this no longer fits the instructions from this mod :o

User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: Email on Birthday

Post by lefty74 » Tue Nov 24, 2009 6:59 pm

thanks, noth, i am going through my mods bit by bit so this one will eventually on the top of the list to check ;)
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.

User avatar
noth
Registered User
Posts: 2472
Joined: Fri Jan 07, 2005 7:10 pm
Location: North Surrey
Contact:

Re: Email on Birthday

Post by noth » Tue Nov 24, 2009 7:46 pm

lefty I tried updating the 306 index.php

it then sent emails to every single member on my board wishing them happy birthday even when the member had no birthday in their profile :shock:

I have a mounting inbox from members protesting "IT'S NOT MY BIRTHDAY YOU PLANK!" :D

geez - I have resurrected the 3.0.6 index.php now but I think it's a bit late, all my members have had a birthday email whether they liked it or not

User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: Email on Birthday

Post by lefty74 » Tue Nov 24, 2009 8:47 pm

sorry to hear that. i will take this one next then... although it is too late for you..
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.

dimitrisg
Registered User
Posts: 40
Joined: Sun Nov 01, 2009 4:36 pm

Re: Email on Birthday

Post by dimitrisg » Sat Nov 28, 2009 5:53 am

i cant make it works as well
i received a mail once but other users dont receive any email
i have these values :

birthday_emails 1 0
birthday_run 1259366400 0

User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: Email on Birthday

Post by lefty74 » Sat Nov 28, 2009 7:29 pm

phpbb 3.0.5 or 3.0.6?
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.

dimitrisg
Registered User
Posts: 40
Joined: Sun Nov 01, 2009 4:36 pm

Re: Email on Birthday

Post by dimitrisg » Sat Nov 28, 2009 7:34 pm

3.0.4

one user just reply me that he has received a mail. We do the test with 4 users today, only the one had a mail.

User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: Email on Birthday

Post by lefty74 » Sat Nov 28, 2009 10:40 pm

should work fine, the mod is using the standard mailing feature.
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.

User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: Email on Birthday

Post by lefty74 » Wed Dec 02, 2009 11:07 pm

version 1.0.1 has been submitted to the mods database
2009-12-02 - Version 1.0.1
  • updated to work with 3.0.6
  • added logging in ACP for emails sent
this version will not work with phpbb versions older than 3.0.6
http://www.lefty74.com/viewtopic.php?f=51&t=406
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 17052
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Email on Birthday

Post by DavidIQ » Tue Dec 22, 2009 4:50 pm

MOD Updated to version 1.0.1a
See first post for Download Link
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.

User avatar
Spaldo
Registered User
Posts: 53
Joined: Sun Nov 07, 2004 9:28 pm

Re: Email on Birthday

Post by Spaldo » Tue Dec 22, 2009 10:15 pm

I just tried to install the latest version and getting funny font and errors when I click the ACP:

[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4183: Cannot modify header information - headers already sent by (output started at /language/en/acp/common.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4185: Cannot modify header information - headers already sent by (output started at /language/en/acp/common.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4186: Cannot modify header information - headers already sent by (output started at /language/en/acp/common.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4187: Cannot modify header information - headers already sent by (output started at /language/en/acp/common.php:1)
Image

Locked

Return to “[3.0.x] MOD Database Releases”