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.
Pfiffy
Registered User
Posts: 3
Joined: Fri May 29, 2009 3:35 pm
Location: Munich
Contact:

Re: Email on Birthday

Post by Pfiffy » Fri May 29, 2009 3:49 pm

I hava a question to that great mod: Is it possible to change the length of the message text? Seems to be a maximum of 255 characters now.

Thanx!

Pfiffy

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 May 29, 2009 9:23 pm

you can adjust the text in the email itself, i very much doubt there 255 char restriction!
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.

Pfiffy
Registered User
Posts: 3
Joined: Fri May 29, 2009 3:35 pm
Location: Munich
Contact:

Re: Email on Birthday

Post by Pfiffy » Sat May 30, 2009 10:18 am

You are right - it was my mistake. Thanks a lot!

Pfiffy

pieterbas12
Registered User
Posts: 46
Joined: Sun Mar 22, 2009 10:37 am

Re: Email on Birthday

Post by pieterbas12 » Sat Jun 06, 2009 8:27 am

Works on 3.0.5?

ke4obt
Registered User
Posts: 9
Joined: Sun Sep 28, 2008 10:30 pm
Location: NorthEast Florida
Name: Flip H

Re: Email on Birthday

Post by ke4obt » Sun Jul 05, 2009 9:23 pm

I'm curious too if it will work with phpBB3 v3.0.5?
Looks like a great mod.

Flip

User avatar
spaceace
Registered User
Posts: 1857
Joined: Wed Jan 30, 2008 8:50 pm
Contact:

Re: Email on Birthday

Post by spaceace » Mon Jul 06, 2009 1:39 am

pieterbas12 wrote:Works on 3.0.5?
works great for me on 3.0.5 ;)

Seether
Registered User
Posts: 74
Joined: Thu Apr 10, 2003 8:09 pm

Re: Email on Birthday

Post by Seether » Sat Aug 08, 2009 10:28 pm

It doesn't work for me.

Emails are sent several times to a user that birthday was one day before....

Code: Select all

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

Code: Select all

   set_config('birthday_run', mktime(0, 0, 0, $nowvar['mon'], $nowvar['mday'], $nowvar['year']));
I don't understand these two lines. First line checks if value in db ist lower than actual timestamp. Second line updates config value with actual timestamp....
But...one second later the if clause in the first line is true again, isn't it?

updown
Registered User
Posts: 542
Joined: Sat Jan 05, 2008 6:53 am

Re: Email on Birthday

Post by updown » Sun Aug 09, 2009 12:22 am

This is due to different dst-settings of users. Old Bug, not updated yet, check this:

http://www.phpbb.com/community/viewtopi ... 5#p5555715

thirstee
Registered User
Posts: 90
Joined: Sat Aug 21, 2004 3:49 pm

Re: Email on Birthday

Post by thirstee » Sun Aug 16, 2009 2:52 pm

where do i check to see if birthdays are enabled?

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 » Sun Aug 16, 2009 3:34 pm

thirstee wrote:where do i check to see if birthdays are enabled?
board features in the acp but what does that have to do with my mod? ;)
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
Neuropass
Registered User
Posts: 1158
Joined: Fri Apr 17, 2009 2:02 pm
Location: SciTE4AutoIt3

Re: Email on Birthday

Post by Neuropass » Sun Aug 30, 2009 8:42 pm

hello there i'm having problem with this mod and i decided to remove it from my forum..

ho do i remove the query from my database?

this was the original query
INSERT INTO phpbb_config (config_name, config_value) VALUES ('birthday_emails', '0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('birthday_run', '');

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 » Mon Aug 31, 2009 9:31 pm

you can try this:

Code: Select all

DELETE FROM phpbb_config WHERE config_name = 'birthday_emails';
DELETE FROM phpbb_config WHERE config_name = 'birthday_run';
havent tried this though
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
Neuropass
Registered User
Posts: 1158
Joined: Fri Apr 17, 2009 2:02 pm
Location: SciTE4AutoIt3

Re: Email on Birthday

Post by Neuropass » Tue Sep 01, 2009 4:17 am

thanks it worked... ;)

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 » Thu Oct 01, 2009 2:52 pm

robb58 wrote:Duh... I've just checked my code and realised I'd made a complete pigs ear of the ACP_Board.php! I've fixed it and all seems to be working now :D
hehe I did exactly the same

that line to find is a very long line, if you are blase - you will edit the new one straight into the middle of that

then the option will not be in the ACP

thanks robb58 for owning up to that

helped me :D

User avatar
Pinsho
Registered User
Posts: 14
Joined: Tue Sep 22, 2009 1:35 pm

Re: Email on Birthday

Post by Pinsho » Wed Oct 14, 2009 7:21 am

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

[The extension rar has been deactivated and can no longer be displayed.]


Locked

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