Advertisement:

Author Topic: Birthday greetings  (Read 11265 times)

Offline spaZzZilla

  • Semi-Newbie
  • *
  • Posts: 74
Birthday greetings
« 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?
Never argue with an idiot; they'll drag you down to their level and beat you with experience.

Offline codenaught

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 14,655
  • Gender: Male
  • Formerly Known As akabugeyes
Re: Birthday greetings
« Reply #1 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:

Code: [Select]
$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:

Code: [Select]
'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

Offline spaZzZilla

  • Semi-Newbie
  • *
  • Posts: 74
Re: Birthday greetings
« Reply #2 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.
Never argue with an idiot; they'll drag you down to their level and beat you with experience.

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,561
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: Birthday greetings
« Reply #3 on: March 18, 2008, 11:59:51 PM »
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

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,538
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Re: Birthday greetings
« Reply #4 on: March 19, 2008, 02:36:24 AM »
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

Offline codenaught

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 14,655
  • Gender: Male
  • Formerly Known As akabugeyes
Re: Birthday greetings
« Reply #5 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.
Dev Consultant
Former SMF Doc Coordinator