News:

Wondering if this will always be free?  See why free is better.

Main Menu

Birthday greetings

Started by spaZzZilla, March 18, 2008, 08:54:57 PM

Previous topic - Next topic

spaZzZilla

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?
Never argue with an idiot; they'll drag you down to their level and beat you with experience.

codenaught

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?
Dev Consultant
Former SMF Doc Coordinator

spaZzZilla

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.
Never argue with an idiot; they'll drag you down to their level and beat you with experience.

JayBachatero

Yes that is a new feature in 2.0.  We now have file based cache.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Owdy

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'  :)
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

codenaught

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.
Dev Consultant
Former SMF Doc Coordinator

Advertisement: