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
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: Email on Birthday

Post by lefty74 »

yes, will have a look when i get some time although not everyone enters their year of birth.
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.
demon327
Registered User
Posts: 847
Joined: Thu Nov 16, 2006 2:16 pm

Re: Email on Birthday

Post by demon327 »

lefty74 wrote:yes, will have a look when i get some time although not everyone enters their year of birth.
mm okay :), thx for looking into it 8-)
ScrapbookSupplies
Registered User
Posts: 361
Joined: Tue Jan 16, 2007 7:59 pm

Re: Email on Birthday

Post by ScrapbookSupplies »

Lefty your mods are always so useful and easy, easy, easy!

Can you confirm that this one can be used with your b-day pop up? I can't see why not but would like to confirm. Thanks a bunch!
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 »

yes, they both work together. i have them on my testboard and so far have had no problems. :)
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.
ScrapbookSupplies
Registered User
Posts: 361
Joined: Tue Jan 16, 2007 7:59 pm

Re: Email on Birthday

Post by ScrapbookSupplies »

Thanks Lefty! We'll install them.

(Trying to get your Site-News to work with v3 too) - I'm hooked. ;)
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 »

ScrapbookSupplies wrote:Thanks Lefty! We'll install them.

(Trying to get your Site-News to work with v3 too) - I'm hooked. ;)
great, let me know if you run into problems (which you shouldnt really ;P )
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 »

demon327 wrote:nice mod, but is there a way to get the user age in the e-mail?

so you have something like this

Code: Select all

Subject: Happy Birthday {USERNAME}! 

Dear {USERNAME},

Many congratulations on your {age} birthday and have a great day !!

{EMAIL_SIG}
Sorry, i forgot about this.

you can try the following to get the age in the email. I have not tested this though.

open index.php
find

Code: Select all

				'jabber'	=> $row['user_jabber'],
after add

Code: Select all

				'age'		=> ($age) ? ($now['year'] - $age) : '',
find

Code: Select all

			'USERNAME'		=> htmlspecialchars_decode($addr['name'])
replace wiht

Code: Select all

			'USERNAME'		=> htmlspecialchars_decode($addr['name']),
			'AGE'			=> $addr['age']
then in in your email template

Code: Select all

[code]Subject: Happy Birthday {USERNAME}! 

Dear {USERNAME},

Many congratulations on your {AGE} birthday and have a great day !!

{EMAIL_SIG}
[/code]
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.
vlamis.gr
Registered User
Posts: 15
Joined: Fri Mar 14, 2008 4:23 pm

http://www.vlamis.gr : Email on Birthday

Post by vlamis.gr »

Dear lefty74
Now phpBB3 on the index (first forum page) shows the persons ( "Today is Mary's birthday") but wont send email to the user ...

Any help ?

PS : To remember "my case", please, read the first msg on page one ( 1/2) of this topic.

Thanks again


George Vlamis - Sail the land of ancient gods - Explore your senses in Greece
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 »

george, you did turn the option on in the Administration Control Panel, right?
all the rest i think i already answered in my previous replies ;)
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.
demon327
Registered User
Posts: 847
Joined: Thu Nov 16, 2006 2:16 pm

Re: Email on Birthday

Post by demon327 »

mm thx lefty for the code.., but i decided not to use it cause it does not fit into my tekst :D
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 »

demon327 wrote:mm thx lefty for the code.., but i decided not to use it cause it does not fit into my tekst :D
mmm, ok, maybe someone else finds it useful ;)
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.
iftitaj
Registered User
Posts: 638
Joined: Tue Jan 15, 2008 6:21 am
Location: Karachi, Pakistan

Re: Email on Birthday

Post by iftitaj »

lefty74 wrote:you can try the following to get the age in the email. I have not tested this though.

open index.php
find

Code: Select all

				'jabber'	=> $row['user_jabber'],
after add

Code: Select all

				'age'		=> ($age) ? ($now['year'] - $age) : '',
find

Code: Select all

			'USERNAME'		=> htmlspecialchars_decode($addr['name'])
replace wiht

Code: Select all

			'USERNAME'		=> htmlspecialchars_decode($addr['name']),
			'AGE'			=> $addr['age']
then in in your email template

Code: Select all

[code]Subject: Happy Birthday {USERNAME}! 

Dear {USERNAME},

Many congratulations on your {AGE} birthday and have a great day !!

{EMAIL_SIG}
[/code]
What will it do when someone hasn't set his birth year??? Will it crash or simply leave the place blank?
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 »

it will leave it blank yeah
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.
updown
Registered User
Posts: 542
Joined: Sat Jan 05, 2008 6:53 am

Re: http://www.vlamis.gr : Email on Birthday

Post by updown »

:oops: (solved)
p858snake
Registered User
Posts: 10
Joined: Wed Mar 12, 2008 5:20 am
Location: Queensland (Australia)

Re: Email on Birthday

Post by p858snake »

Would it be possibly to have it work out if they have their year in their eg:

No Year:
We wish you a happy birthday....

With Year:
We wish you a happy <yr>th birthday?
Locked

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