Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: spaZzZilla on March 18, 2008, 08:54:57 PM

Title: Birthday greetings
Post by: spaZzZilla on March 18, 2008, 08:54:57 PM
Those birthday greetings are a nice idea. I like that there are those preset messages (karlbenson1 is my favorite).  :P  Is there a way to make your own greetings from the admin panel?
Title: Re: Birthday greetings
Post by: codenaught on March 18, 2008, 09:47:17 PM
You can edit the Themes/<theme_name>/languages/EmailTemplates.english.php to add your own.

Search for:

$birthdayEmails = array(
'happy_birthday' => array(
'subject' => 'Happy birthday from {FORUMNAME}.',
'body' => 'Dear {REALNAME},

We here at {FORUMNAME} would like to wish you a happy birthday.  May this day and the year to follow be full of joy.

{REGARDS}',
'author' => '<a href="http://www.simplemachines.org/community/?action=profile;u=2676">Thantos</a>',
),


Add after that code, your own:

'yourname' => array(
'subject' => 'Subject',
'body' => 'Dear {REALNAME},

Body here...

{REGARDS}',
'author' => 'Your name',
),


If you do change the file and upload it over the existing one, clear the file cache in Admin / Forum Maintenance afterward so the change will be applied.

How do I modify files? (http://www.simplemachines.org/community/index.php?topic=24110.0)
Title: Re: Birthday greetings
Post by: spaZzZilla on March 18, 2008, 10:14:48 PM
Cool thanks, I wasn't sure if there was a text box in another area of the ACP I wasn't seeing.

And the clearing of the file cache in Admin / Forum Maintenance, that is an action unique to 2.0 correct.
Title: Re: Birthday greetings
Post by: JayBachatero on March 18, 2008, 11:59:51 PM
Yes that is a new feature in 2.0.  We now have file based cache.
Title: Re: Birthday greetings
Post by: Owdy on March 19, 2008, 02:36:24 AM
Quote from: akabugeyes on March 18, 2008, 09:47:17 PM
You can edit the Themes/<theme_name>/languages/EmailTemplates.english.php to add your own.

Are you planning to make this work directly from admin panel? Like in drop down, - > custom'  :)
Title: Re: Birthday greetings
Post by: codenaught on March 19, 2008, 08:19:22 AM
I'm not aware of such plans, but admit that it would come in handy. Seeing as 2.0 is suppose to be feature frozen, this type of change may not be made, but we'll see.