Advertisement:
NameCheap

Author Topic: Email Template Editor  (Read 38529 times)

Offline Labradoodle-360

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,198
  • Gender: Male
    • matthew.kerle on Facebook
    • Labradoodle-360 on GitHub
    • @matthew_kerle on Twitter
Email Template Editor
« on: March 31, 2011, 10:56:52 PM »
Link to Mod

Email Template Editor


Author: Labradoodle-360
Latest Version: 1.0
Compatible With SMF: 2.0 RC4, 2.0 RC5
Special Thanks To: Bigguy & Scotty
Dedicated To: LIM



Summary
Email Template Editor finally provides SMF Admins with the ability to modify the SMF emails that are sent out by default right through your admin panel, without having to touch ANY files.

Here are some things it can do.
  • Create Custom Template - Based on any of the 52 SMF Default Emails.
  • Modify Custom Template - Allowing you to modify your custom templates, after you have created them!
  • Remove Custom Template - Want to go back to the SMF default template for that email? Simply delete it, OR leave the fields empty.
  • Testing Ability - Want to test your custom template(s) to see what they'll look like in action? Here you go.
And more!

In addition, there are NO template edits required for this mod.

Icon Set: FamFamFam Silk Icons.




Languages





Installation
Package Manager should work in most cases. If you need to make any edits, the full list can be obtained from the Parse function on the right.

Useful links
Manual Installation Of Mods
How Do I Modify Files?




Version 1.0 Changelog
+) Create Custom Email Template - Based off of any SMF Default Email.
+) Modify Custom Email Templates.
+) Remove Custom Email Templates.
+) Use all global preset variables in custom Email Templates.
+) Send Test Emails - Selecting any custom template, and inputting a recipient email address.




Files modified by Email Template Editor 1.0
SMF 2.0 RC3, SMF 2.0 RC4
Source Files (./Sources)
  • Admin.php
  • Subs-Post.php
  • +) EmailTemplateEditor.php
  • +) Subs-EmailTemplateEditor.php
Template Files (./Themes/default)
  • +) EmailTemplateEditor.template.php
Language Files (./Themes/default/languages)
  • Modifications.english.php
  • +) EmailTemplateEditor.english.php
Image Files (./Themes/default/images)
Former SMF Developer
My Modifications

Offline flapjack

  • SMF Hero
  • ******
  • Posts: 2,615
  • Gender: Male
  • I pity the fools!
Re: Email Template Editor
« Reply #1 on: April 03, 2011, 07:33:02 AM »
this is fantastic! big thumbs up!

Offline Tanks

  • Full Member
  • ***
  • Posts: 583
  • Gender: Male
  • Danish Dude
Re: Email Template Editor
« Reply #2 on: April 03, 2011, 08:12:31 AM »
Now there's a useful mod :)

Offline -=[Vyorel]=-

  • Full Member
  • ***
  • Posts: 680
  • Gender: Male
  • SMF Wiki Writer
    • DSKVyorel on Facebook
    • xeromzone on LinkedIn
    • @XeromZoneCom on Twitter
    • Xerom Zone Hosting
Re: Email Template Editor
« Reply #3 on: April 03, 2011, 09:34:21 AM »
The best mod

Romanian translate on the attachments. :)
My mods for SMF - [5].

Offline Labradoodle-360

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,198
  • Gender: Male
    • matthew.kerle on Facebook
    • Labradoodle-360 on GitHub
    • @matthew_kerle on Twitter
Re: Email Template Editor
« Reply #4 on: April 03, 2011, 01:31:10 PM »
Thank you very much for the kind words, flapjack!
this is fantastic! big thumbs up!

Again, thanks :) I really appreciate it.
Now there's a useful mod :)

I'm probably going to end up re-writing the ACP end of Email Template Editor as it was built into one function rather than separating them. I'll add in the translations when I find time to make an update. And thanks! :D
The best mod

Romanian translate on the attachments. :)
Former SMF Developer
My Modifications

Offline neCu

  • Semi-Newbie
  • *
  • Posts: 32
Re: Email Template Editor
« Reply #5 on: April 04, 2011, 04:42:31 PM »
Hello, I'm having a bit a problem with Email Template Editor. I want to move my forum to other host but I can't find where edited templates with Email Template Editor is. Could you tell me please?
SMF Latvian translator.

Offline Labradoodle-360

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,198
  • Gender: Male
    • matthew.kerle on Facebook
    • Labradoodle-360 on GitHub
    • @matthew_kerle on Twitter
Re: Email Template Editor
« Reply #6 on: April 04, 2011, 05:11:26 PM »
Email Template Editor stores custom templates in a database table, switching hosts will not affect this mod as long as you transfer the database and files.
Former SMF Developer
My Modifications

Offline neCu

  • Semi-Newbie
  • *
  • Posts: 32
Re: Email Template Editor
« Reply #7 on: April 05, 2011, 08:40:28 AM »
Thanks. This is really good modification by the way.
SMF Latvian translator.

Offline Labradoodle-360

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,198
  • Gender: Male
    • matthew.kerle on Facebook
    • Labradoodle-360 on GitHub
    • @matthew_kerle on Twitter
Re: Email Template Editor
« Reply #8 on: April 05, 2011, 11:52:12 AM »
No problem, and thank you :)
Former SMF Developer
My Modifications

Offline ade9ja

  • Jr. Member
  • **
  • Posts: 315
  • Gender: Male
    • The Personal Computer Planet
Re: Email Template Editor
« Reply #9 on: April 05, 2011, 02:14:53 PM »
Can it modify the default message meant to send to member on their birthday?
Tips on troubleshooting, installation, upgrading and general maintenance of your PC from the computer planet on www.mypchub.com

Offline Labradoodle-360

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,198
  • Gender: Male
    • matthew.kerle on Facebook
    • Labradoodle-360 on GitHub
    • @matthew_kerle on Twitter
Re: Email Template Editor
« Reply #10 on: April 05, 2011, 02:15:26 PM »
It can modify any SMF Email as long as the email is inside EmailTemplates.english.php.
Former SMF Developer
My Modifications

Offline A.SK

  • Sophist Member
  • *****
  • Posts: 1,191
  • Gender: Male
  • SMF is the best forum tool
    • IT Acumens - A Edu Community
Re: Email Template Editor
« Reply #11 on: April 05, 2011, 03:29:31 PM »
Hi Labradoodle-360, this is an unbelievable and one of the ever made best mod in smf.

Thanks for this wonderful work.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens  -  Demo Smf forum : Chat ITAcumens

Offline Labradoodle-360

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,198
  • Gender: Male
    • matthew.kerle on Facebook
    • Labradoodle-360 on GitHub
    • @matthew_kerle on Twitter
Re: Email Template Editor
« Reply #12 on: April 05, 2011, 03:32:21 PM »
Hey A.SK - Thank you very much :) You're welcome! I had a lot of fun writing it.
Former SMF Developer
My Modifications

Offline Aoife

  • Semi-Newbie
  • *
  • Posts: 98
  • Gender: Female
  • Guild Leader/Web Admin
    • Divine Alliance of Mok'Nathal
Re: Email Template Editor
« Reply #13 on: April 05, 2011, 10:46:39 PM »
Just wanted to say thank you for a great mod - makes life so much easier!   ;D 

Offline Labradoodle-360

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,198
  • Gender: Male
    • matthew.kerle on Facebook
    • Labradoodle-360 on GitHub
    • @matthew_kerle on Twitter
Re: Email Template Editor
« Reply #14 on: April 05, 2011, 10:52:52 PM »
Thanks for posting :) I appreciate it!
Former SMF Developer
My Modifications

Offline tectonny

  • Jr. Member
  • **
  • Posts: 251
    • Tectonny Eletronica
Re: Email Template Editor
« Reply #15 on: April 07, 2011, 10:06:36 AM »
First congratulations on your mod, very good ...

But I would like to create new HTML email?

I tried putting in HTML code, but generates the email showing the code.

---
http://www.tectonny.com/forum/
http://buscashare.in/

Offline Labradoodle-360

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,198
  • Gender: Male
    • matthew.kerle on Facebook
    • Labradoodle-360 on GitHub
    • @matthew_kerle on Twitter
Re: Email Template Editor
« Reply #16 on: April 07, 2011, 10:13:44 AM »
Thank you, and as of now, HTML is not allowed.
Former SMF Developer
My Modifications

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,849
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Email Template Editor
« Reply #17 on: April 07, 2011, 11:03:05 AM »
Great mod Labradoodle, surely gonna use it on my forum. Also the code is quite simple and clean ;).
Github Profile
My Mods
How to enable Post Moderation
Paid Support
Elkarte


"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Offline Labradoodle-360

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,198
  • Gender: Male
    • matthew.kerle on Facebook
    • Labradoodle-360 on GitHub
    • @matthew_kerle on Twitter
Re: Email Template Editor
« Reply #18 on: April 07, 2011, 11:09:07 AM »
Thanks Joker, happy to hear that! :)

Although I do have some cleanup to do, function wise.
Former SMF Developer
My Modifications

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,849
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Email Template Editor
« Reply #19 on: April 07, 2011, 11:14:48 AM »
Just a suggestion, you should move css edits into css files, most probably index.css.
Github Profile
My Mods
How to enable Post Moderation
Paid Support
Elkarte


"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved