Advertisement:

Author Topic: Email Template Editor  (Read 64944 times)

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Email Template Editor
« Reply #20 on: April 07, 2011, 11:24:28 AM »
If I did decide to move CSS into an external file, it would be my OWN file. If I had one class, it would be different. But there's no point in adding another edit (to index.css) when I could just include my own file. EmailTemplateEditor.css

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Email Template Editor
« Reply #21 on: April 07, 2011, 11:32:28 AM »
Yup that would also do the needful.
Github Profile
Android apps
Medium

How to enable Post Moderation

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

All support seeking PM's get microwaved

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Email Template Editor
« Reply #22 on: April 07, 2011, 11:35:44 AM »
Although in this case I don't see much of a benefit to moving my CSS to it's own file. It'd still be returned in $context['html_headers'].

Offline Bluey

  • Jr. Member
  • **
  • Posts: 146
Re: Email Template Editor
« Reply #23 on: April 22, 2011, 06:29:12 PM »
Great mod. Pity it was not available for v1.1.13

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Email Template Editor
« Reply #24 on: April 22, 2011, 07:39:28 PM »
Thank you :) Yeah, it's too bad, although I'm not going to spend my time back-porting it.

Offline Yourmum90

  • Semi-Newbie
  • *
  • Posts: 77
Re: Email Template Editor
« Reply #25 on: May 16, 2011, 05:06:32 PM »
Hi,

Excellent mod by the way, i was looking to customize the mod further by using BBCode links etc.. is this possible anyway as i can't seem to get it to work. the main one i would like to use is

Please activate your account by clicking here

Also is there a list of all the commands anywhere?

thx,

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Email Template Editor
« Reply #26 on: May 16, 2011, 05:10:56 PM »
Thank you very much :)

I considered adding the support for basic HTML/BBC although just wanted to get it released after a lot of work, I'll reconsider this for the update when 2.0 goes final, basic HTML is possible for emails.

Also, I do believe I added the list of preset variables (as I call them) in a helptext somewhere...

Offline Yourmum90

  • Semi-Newbie
  • *
  • Posts: 77
Re: Email Template Editor
« Reply #27 on: May 16, 2011, 05:24:50 PM »
appologies, i have found a list on the left side when editing the email that has forumname, scripturl, themeurl and a couple more but i can't seem to find a readme file that has a list of all of them. The only reason i ask is that the username is not in the list on the left but is used in the default text.

Sorry for stupid question,

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Email Template Editor
« Reply #28 on: May 16, 2011, 05:32:55 PM »
Not a stupid question, so no problem.

It's possible I left one out from the left, I'll look into it for the update as well.

Offline Yourmum90

  • Semi-Newbie
  • *
  • Posts: 77
Re: Email Template Editor
« Reply #29 on: May 16, 2011, 05:43:54 PM »
I also noticed {realname} are these tags already predifined in SMF and that your taping into them allowing us to edit them, or have your created all the tags yoourself? it could be that if some of them are built into SMF i am asking in the wrong area?

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Email Template Editor
« Reply #30 on: May 16, 2011, 06:36:57 PM »
I made all of the ones listed on the left, although SMF has some extended for certain templates, which if used out of scope will not display anything but the raw {var}.

A possible feature I was considering adding would be custom "presets" which would allow you to add your own, although for the time involved, I didn't think it'd be worth it.

Offline Yourmum90

  • Semi-Newbie
  • *
  • Posts: 77
Re: Email Template Editor
« Reply #31 on: May 23, 2011, 06:49:15 PM »
Hi,

i have had to reinstall the mod on another forum but when i try and create the custom template, i get this error, i tried changing the permissions but did not fix the issue. can you help?

Forbidden
You don't have permission to access /forum/index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 Server at www.blackphoenix.org.uk Port 80

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Email Template Editor
« Reply #32 on: May 23, 2011, 07:13:40 PM »
I would make sure your permissions are correct for the files, if not, possibly try contacting your host

Offline Yourmum90

  • Semi-Newbie
  • *
  • Posts: 77
Re: Email Template Editor
« Reply #33 on: May 24, 2011, 09:18:26 AM »
Hi,

Thanks for the advice, i have checked the permissions and all seem ok, i am also able to use other mods and use the forum without issues. I have contacted my host and awaiting a reply, are there particular permissions that are required for the mod to go through. A long shot just not to sure what else to check as it worked ok on another fourm with the same host.

Offline phantomm

  • Sophist Member
  • *****
  • Posts: 1,064
  • Gender: Male
    • pages/smfpl/171860759503032 on Facebook
    • Polish ElkArte community
Re: Email Template Editor
« Reply #34 on: June 06, 2011, 07:04:48 AM »
Polish translation (for now only UTF-8):

./Themes/default/languages/Help.polish-utf8.php
Code: [Select]
// Labradoodle-360; Email Template Editor
global $context, $txt, $scripturl, $settings;
$helptxt['email_template_help_global_presets'] = 'Globalne zmienne są prostymi skrótami, które mogą być dostępne w dowolnym wzorze email.<br /><br /><strong>Lista Globalnych zmiennych</strong><br /><div style="font-size: 6pt;">{FORUMNAME} => '. $context['forum_name']. '<br />{SCRIPTURL} => '. $scripturl. '<br />{THEMEURL} => '. $settings['theme_url']. '<br />{IMAGESURL} => '. $settings['images_url']. '<br />{DEFAULT_THEMEURL} => '. $settings['default_theme_url']. '<br />{REGARDS} => '. $txt['regards_team']. '</div><br /><em>Skrót => Wynik</em>';
$helptxt['email_template_help_send_test_email'] = 'Wysłanie testowego emaila pozwala na wybranie wzoru wiadomości oraz wpisanie adresu email odbiorcy w celu przetestowania własnego wzoru email.';
// End Labradoodle-360; Email Template Editor

./Themes/default/languages/Modifications.polish-utf8.php
Code: [Select]
// Labradoodle-360; Email Template Editor
$txt['email_template_editor'] = 'Email Template Editor';
// End Labradoodle-360; Email Template Editor

Polskie wsparcie SMF na simplemachines.org

My mods

Offline admiral888

  • Newbie
  • *
  • Posts: 9
Re: Email Template Editor
« Reply #35 on: June 23, 2011, 12:58:58 PM »
competiple with smf 2.0 ?

thank you for the mod.

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Email Template Editor
« Reply #36 on: June 23, 2011, 01:01:07 PM »
It should be compatible with SMF 2.0 using Version Emulate, either way, I'll be providing an official update shortly. It's on my to-do list.

Offline Martingonnella

  • Jr. Member
  • **
  • Posts: 148
Re: Email Template Editor
« Reply #37 on: July 08, 2011, 09:45:09 PM »
Hello,

Really like this MOD...I did the Emulate thing and it works on 2.0, then I reverted back to 2.0 and it still works. It would be Nice to have a 2.0 version made.

Is it possible to have the Test Button send out Test emails with the Normal Varibles and not the Test once instead?

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Email Template Editor
« Reply #38 on: July 08, 2011, 10:09:09 PM »
Eventually, I will release a version of Email Template Editor for SMF 2.0, although I am working on much more important things; especially since it works with emulate anyways.

Regarding the variables that can be sent in test emails, as I explained in the help text (I think?) the only variables that can be passed using the Test Email Template are the GLOBAL variables, all other variables are not global, and would have to be honed to a specific file, this would cause many more edits required for the mod, and then would still not fully allow all variables to be used, this is the way it will always be, unfortunately, and I apologize for the inconvenience.

Best Regards,
Labradoodle-360

Offline studiowi33

  • Jr. Member
  • **
  • Posts: 221
Re: Email Template Editor
« Reply #39 on: July 25, 2011, 12:16:53 PM »
This is great! Now all I need is a PM template creator.
SMF 2.0.2