mm okaylefty74 wrote:yes, will have a look when i get some time although not everyone enters their year of birth.
great, let me know if you run into problems (which you shouldnt really ;P )ScrapbookSupplies wrote:Thanks Lefty! We'll install them.
(Trying to get your Site-News to work with v3 too) - I'm hooked.
Sorry, i forgot about this.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}
Code: Select all
'jabber' => $row['user_jabber'],
Code: Select all
'age' => ($age) ? ($now['year'] - $age) : '',
Code: Select all
'USERNAME' => htmlspecialchars_decode($addr['name'])
Code: Select all
'USERNAME' => htmlspecialchars_decode($addr['name']),
'AGE' => $addr['age']
Code: Select all
[code]Subject: Happy Birthday {USERNAME}!
Dear {USERNAME},
Many congratulations on your {AGE} birthday and have a great day !!
{EMAIL_SIG}
mmm, ok, maybe someone else finds it usefuldemon327 wrote:mm thx lefty for the code.., but i decided not to use it cause it does not fit into my tekst
What will it do when someone hasn't set his birth year??? Will it crash or simply leave the place blank?lefty74 wrote:you can try the following to get the age in the email. I have not tested this though.
open index.php
findafter addCode: Select all
'jabber' => $row['user_jabber'],
findCode: Select all
'age' => ($age) ? ($now['year'] - $age) : '',
replace wihtCode: Select all
'USERNAME' => htmlspecialchars_decode($addr['name'])
then in in your email templateCode: Select all
'USERNAME' => htmlspecialchars_decode($addr['name']), 'AGE' => $addr['age']
[/code]Code: Select all
[code]Subject: Happy Birthday {USERNAME}! Dear {USERNAME}, Many congratulations on your {AGE} birthday and have a great day !! {EMAIL_SIG}