I just wanted to share this little code change to add a newsletter template.
I believe it is important to have consistency in the newsletters I send out, so I use a template. I used to just copy it into the subject and message boxes of 'send email' in the administration. But this little, and super easy, modification does that for you.
It is not really a mod, but I don't know what to label it, and where to post it... I think people will find it very helpful though. And I'd like to give something back after all the help and advice I received on this forum!
[MOD] Newsletter template
- This mod inserts a lay-out template that you designed into the 'send email' message and subject of the admin control panel
- It is different from the files in /lang/english/email/ in that you can see and adjust the text when you send an e-mail from the admin control panel
- tested with 4images 1.7.2
FILESFiles to be modified: (please take a backup copy of all of these!)
- /admin/email.php
- /lang/english/main.php
Find in /admin/email.php:
show_input_row($lang['send_emails_subject'], "subject", "", 45);
show_textarea_row($lang['send_emails_message'], "message", "", 60, 20);
Change to:
show_input_row($lang['send_emails_subject'], "subject", $lang['newsletter_subject'], 45);
show_textarea_row($lang['send_emails_message'], "message", $lang['newsletter_message'], 60, 20);
Add to /lang/english/main.php
$lang['newsletter_subject'] = "TYPE SUBJECT HERE";
$lang['newsletter_message'] = "TYPE MESSAGE HERE";
Don't forget to change the text in "TYPE SUBJECT HERE" and "TYPE MESSAGE HERE"