How do you edit the newsletter default code?

Started by KensonPlays, December 25, 2009, 11:42:37 AM

Previous topic - Next topic

KensonPlays

I would like this (maybe with a different style, etc...):

POSTED BY: http://www.simplemachines.org/community/index.php?topic=302965.msg2003448#msg2003448

<html>
<body>

<table align="center" border="2" cellspacing="6" cellpadding="9" width="640" >
<tr>
<td bgcolor="cornsilk">


<table bgcolor="gold" width="90%" align="center"><tr><td align="center">
<b>
<font size="5" color="brown">Title Of Newsletter</font>
<br>
<fontsize="2" color="black">January 01, 2000 &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; Issue #123 </font>
</b>
</td></tr></table>

<br>
Welcome! Here is your subscription!<br>
Unsubscribe instructions for "Newsletter Title Here" are at the end.


<br><br><br>
<tablebgcolor="gold" cellpadding="0"cellspacing="0"><tr><td><font size="4"color="brown">In ThisIssue</font></td></tr></table>
<br>
Feature Article &nbsp; &nbsp; &nbsp; Related Articles <br>
What's New<br>
Guest Article<br>
Classifieds<br>
Feedback

<br><br><br>
<table bgcolor="gold" cellpadding="0" cellspacing="0">
<tr><td>
<font size="4" color="brown">Feature Article</font>
</td></tr></table>
<br>
blah blah goes here - usually more than one ?


<br><br><br>
<table bgcolor="gold" cellpadding="0" cellspacing="0">
<tr><td>
<font size="4" color="brown">What's New</font>
</td></tr></table>
<br>
blank if no new news - but it could also contain a link to the current meeting minutes - depends on the type of web site.

<br><br><br>
<table bgcolor="gold" cellpadding="0" cellspacing="0">
<tr><td>
<font size="4" color="brown">Guest Article</font>
</td></tr></table>
<br>
blank if no article for this period

<br><br><br>
<table bgcolor="gold" cellpadding="0" cellspacing="0">
<tr><td>
<font size="4" color="brown">Classified (or Sponsors)</font> </td></tr></table>
<br>
Forum Link (to the onsite forum)<br>
Forumwould contain Classified Section (and Sponsors Information for sometypes of web sites). <br> i.e. this section could be a link to anonline Forum - or the info could be included in this section of thenewsletter.

<br><br><br>
<table bgcolor="gold" cellpadding="0" cellspacing="0">
<tr><td>
<font size="4" color="brown">Feedback Form</font>
</td></tr></table>
<br>
A link to the Feedback Forum Section.
<br>i.e. this section could be a link to an online Forum - or a form couldbe embedded in the online page - or it could just be an email link(mailto).

<br><br><br>
<table bgcolor="gold" cellpadding="0" cellspacing="0">
<tr><td>
<font size="4" color="brown">Subscription and Archive</font>
</td></tr></table>
<br>
How to Subscribe (could be link to 'tell-a-friend' form)<br>
How to Unsubscribe<br>
Link to Newsletter Archives

<br><br><br>
<table bgcolor="gold" cellpadding="0" cellspacing="0">
<tr><td>
<font size="4" color="brown">About:</font> 'Newsletter Site Name Here' </td></tr></table>
<br>
Your Signature File or Name<br>
Your Email Address<br>
Your City, State Zip<br>
Your Phone <br>
Your Newsletter URL<br>
</td></tr>
</table>
</body></html>


to be the default instead of:


Message

Regards,
The Kcmartz's Website Team.

{$board_url})


EDIT:
As the topic title says, I would like to replace the default template mentioned above to the one at the start of my post here.

EDIT 2:
Or even a "WYSIWYG" newsletter system with the ability to save a default HTML Template, like above, that would be an awesome mod for those who want to use the newsletter function! Does anybody agree!?

Owner of Mesozoic Haven

KensonPlays

#1
Please help, I will be gone for a few hours and won't be near a computer!! Thanks, and sorry for being impatient (have to leave now)

All I need to know is what file to edit. Thanks!

Owner of Mesozoic Haven

Arantor

First up, you should KNOW by now not to bump it within 24 hours, let alone bump it twice.

Try looking in EmailTemplates.english.php

As for the mod, feel free to request it in Mod Requests, noting ALL the requirements of READ ME: How To Request A Modification (Mod).

KensonPlays

Opened it and did a "Find" and it couldn't see anything in EmailTemplates.english.php!!

Owner of Mesozoic Haven

Arantor

Anything at all, or just not that segment?

* The Grinch thought that's where it was.

You know, you could just grab a copy of the source and search yourself, which is all I'll do when I get time. Notepad++ makes that fairly easy (and runs off a USB stick, too)

KensonPlays

I did have a USB Drive, but it got broken... and I did look at the whole file and couldn't find it...


*YAY! ARANTOR IS BACK!!*

Owner of Mesozoic Haven

Arantor

So... look at the rest of the files.

And technically, I was never gone...

KensonPlays

I know, but you are not "The Grinch" anymore...

Owner of Mesozoic Haven

Arantor


KensonPlays


Owner of Mesozoic Haven

Arantor

You don't look through the files manually. I certainly don't. I just give Notepad++ a string to look for and tell it to search all the files.

KensonPlays

How do you do that? (Ill have to wait till i get home, I am on a linux at me web dev class, then a mac at my DMC class (another web dev class, but video editing added).

When I get home Ill do it. Now how do I tell it a string to search for?

Owner of Mesozoic Haven

Arantor


atokar

find <smf-directory> -exec grep -H "Regards," {} \;

KensonPlays


Owner of Mesozoic Haven

AndreT

The regards message can be found in Post.english.php as $txt['regards_team'].
$txt['regards_team'] = "Regards,\nThe " . $context['forum_name'] . ' Team.';

Good luck.

KensonPlays

#16
I just noticed that the Emailtemplates.english.php that I had for my forum currently was 34KB, and a fresh one from 2.0RC2 install was 35KB, renamed old one to Emailtemplates2.english.php and uploaded one from a fresh 2.0RC2 install.

that might have been the problem...


is the newsletter code closer to the top, middle, or bottom??

I attached old emailtemplates, and new one from fresh install...

Owner of Mesozoic Haven

Arantor

You could always just do a search in whatever editor you're using. Would be easier than me loading the file, doing exactly the same thing, only to tell you roughly where in the file it is...

KensonPlays

Well, it is in the fresh install file, could you just estimate, top, middlle, bottom?

Owner of Mesozoic Haven

KensonPlays

#19
I found out how to edit the "Regards, {boardname} Team." message, that should fix part of it..

EDIT: It didn't do anything...

EDIT2:
I did a search string, downloaded whole default/languages files onto a folder on desktop, and searched, nothing happened!!

Owner of Mesozoic Haven

Advertisement: