● [ITW] Evo Email Template System

Sat Jun 03, 2023 5:04 pm
Clan Leader
Top Dog
Nuke Dev / Coder
3022 Posts
coRpSE
Currently Offline
Offline

Most Played:
This week: 21.4hrs.
Total Played: 2,320hrs.


  
Taking a break from work!
Reputation: 7342
votes: 7
Last week, I think it was, Lonestar asked me if I wouldn't mind working on a template system for the various emails that the CMS sends out. Well, after some thinking, I decided to write up a simple system that will not remove anything, but make it so you can create an HTML template, and upload it to a certain location with a certain name. If you have that file there, then it will use that template rather than the language the system already uses.

Currently, I have the first step working on the site here, so you can send your self a PM, you will get the basic HTML Template that I wrote up for testing. When released, I will have a write-up for all themes and commands for each.

I may need a couple of testers for this, maybe not. I will keep you guys updated on the progress. You guys should be seeing more info on this in the next few days.

Here is an example of the HTML email that gets sent right now. Like I said, it's just a quick template:

Expand

The new look can be seen in this post:
Please login to see this link
Get registered or Log in


Update: I have 19 templates done, ATM:


  • group-added-template
  • group-approved-template
  • group-request-template
  • pm-template
  • post-report-template
  • topic-notify-template
  • user-password-request
  • user-confirmation-code
  • user-removed
  • admin-activate-user
  • admin-user-created
  • admin-approve-reg
  • admin-account-deactivation
  • admin-deny-account
  • admin-promote-account
  • admin-account-removed
  • admin-approve-reg
  • admin-account-restored
  • admin-account-suspended


I am sure there will be more to come.


Expand
Sun Jun 04, 2023 1:56 pm
Spammer
131 Posts
Zardos
Currently Offline
Offline
  
Doesn't like playing games!
Reputation: 903.7
Nice work coRpSe, looks great.  Thumbs Up
Mon Jun 05, 2023 11:19 am
Blabbing Noob
53 Posts
Reputation: 724.3
This is an excellent Idea  lachen
Mon Jun 05, 2023 2:57 pm
Original Poster
Clan Leader
Top Dog
Nuke Dev / Coder
3022 Posts
coRpSE
Currently Offline
Offline

Most Played:
This week: 21.4hrs.
Total Played: 2,320hrs.


  
Taking a break from work!
Reputation: 7342
votes: 7
Thanks. I am adding in more functions to it, so you can customize it a bit more. I will probably do an example video tomorrow or something on it.


 
Mon Jun 05, 2023 9:43 pm
Original Poster
Clan Leader
Top Dog
Nuke Dev / Coder
3022 Posts
coRpSE
Currently Offline
Offline

Most Played:
This week: 21.4hrs.
Total Played: 2,320hrs.


  
Taking a break from work!
Reputation: 7342
votes: 7
Okay, I just spent that last few hours writing up the custom template controls. Here are what they are:

Code: [ Select all ]

#####################################################
## Hello everyone, below is going to be a list of what commands can be used in each file.
## The way I will set it up is going to be like the following:
##
## ------------ [TEMPLATE NAME] -------------
## {COMMAND} -- (What it is)
##
## The reason I am doing it this way is some commands are used on all templates and to save from listing them over
## and over. I figured this would be the best course to go with.
##
## --Note: When designing your theme, use inline styling for better compatibility across email clients. More on the
## forum thread on the Evo site about this mod.
##
## If you have any questions, feel free to contact me, coRpSE, or Lonestar.
#####################################################

#####################################################################
#-----[ BEGIN OF COMMANDS ]------------------------------------------
#####################################################################

##
## ------------ [ ALL TEMPLATES ] -------------
##

{SITENAME} -- Site Name found in the Forums ACP->General Admin->Configuration->GENERAL BOARD SETTINGS
{C_YEAR} -- Gives the Current year, (great for copyright at the bottom
{C_URL} -- Gives the nukeurl of your site, (should be set to your sites URL)
{EMAIL_SIG} -- Email Signature you have set in the ACP->General Admin->Configuration->EMAIL SETTINGS

##
## ------------ [ group-added-template ] -------------
## ------------ [ group-approved-template.tpl ] -------------
## ------------ [ group-request-template.tpl ] -------------
##

{GROUP_NAME} -- The name of the group they have been added to.
{C_GROUPCP_URL} -- Just the URL to the group panel - Great for making your own button instead of using the {U_GROUPCP}.
{U_GROUPCP} -- Complete link, already coded with the HTML, <a>URL</a>



##
## ------------ [ group-request-template.tpl ] -------------
##

{GROUP_MODERATOR} -- The name of the group Moderator



##
## ------------ [ pm-template.tpl ] -------------
##

{C_INBOX_URL} -- Just the URL to the private message so you can create your own custom button instead of using {U_INBOX}.
{U_INBOX} -- Complete link to the PM, already coded with the HTML, <a>URL</a>.
{USERNAME} -- The username of the one receiving the PM.
{SENDER_USERNAME} -- The username of the one who sent the PM.
{PM_MESSAGE} -- The private message that was sent.



##
## ------------ [ post-report-template.tpl ] -------------
##

{USERNAME} -- The username of the one who reported the post
{C_OPTOUT} -- The URL to opt out of receiving emails
{POST_ID} -- The ID number of the post being reported.
{TOPIC_TITLE} -- The title of the topic which has the post that is being reported
{COMMENTS} -- Comments from the person that reported the topic, (The reason for the report).
{C_REPORT_URL} -- Just the URL to the report, (For custom button).
{REPORT_URL}  -- Just like the above, but already has the HTML for the link, <a>URL</a>
{C_VIEW_POST_URL} -- Just the URL to the post, (For custom button).
{U_VIEW_POST}  -- Just like the above, but already has the HTML for the link, <a>URL</a>



##
## ------------ [ topic-notify-template.tpl ] -------------
##

{USERNAME} -- This is just like "{SITENAME}", but with a "From" at the beginning. Don't ask, this was already there.
{TOPIC_TITLE} -- Title of the topic you are watching.
{THEME_NAME} -- I don't know why this is here, but it's the name of the theme I believe you or they are using.
{C_TOPIC_URL} -- Just the URL to the topic & post that you are watching, (For custom button).
{U_TOPIC} -- Just like the above, but already has the HTML, <a>URL</a>
{REPLY_BY} -- The name of the person that replied.
{CONTENTS} -- The message that they replied with.
{ATTACHMENT} -- The name of the file that is attached to the post, will display as: "The file filename.jpg was attached to the post."
{C_STOP_WATCHING_TOPIC_URL} -- Just the URL for stopping watching topic, NO HTML.
{U_STOP_WATCHING_TOPIC} -- Just like above, but with the HTML, <a>URL</a>.

#
#-----[ END OF COMMANDS ]------------------------------------------
#


Some are default of what is already there, some are custom to allow for more customization. There are some default ones, that I am not sure why they are there, but, what ever, I am not going to remove them.

Funny thing is, while doing this, I found some issues in the groups, and let Lonestar know about them. I also found a broken page in the Black Magic theme, which I have fixed. I am going to double-check to see if it's already been fixed by Lonestar and if not, I will make a post with the fix.


 
Thu Jun 08, 2023 10:27 am
Original Poster
Clan Leader
Top Dog
Nuke Dev / Coder
3022 Posts
coRpSE
Currently Offline
Offline

Most Played:
This week: 21.4hrs.
Total Played: 2,320hrs.


  
Taking a break from work!
Reputation: 7342
votes: 7
Okay, with what I have, I did write up a default template for my site here, but also did one that I will ship for others to modify. Here are a few examples.

Expand

That is the one I made for HSX, and here is a short video of the ones I did that will be given with the release of this:



I will be writing a whole post on this probably this week/weekend sometime on how to write up an HTML template for emails. They are a bit different from if you were to write one up for your website.


 
Tue Jun 13, 2023 8:36 pm
Original Poster
Clan Leader
Top Dog
Nuke Dev / Coder
3022 Posts
coRpSE
Currently Offline
Offline

Most Played:
This week: 21.4hrs.
Total Played: 2,320hrs.


  
Taking a break from work!
Reputation: 7342
votes: 7
Updated again. I went from 6 templates for 6 different emails to 19. I have updated my first post.


 
Wed Jun 14, 2023 7:32 am
Spammer
131 Posts
Zardos
Currently Offline
Offline
  
Doesn't like playing games!
Reputation: 903.7
Again great work coRpSE, thank you.  Thumbs Up


 
Forums ©