News:

Wondering if this will always be free?  See why free is better.

Main Menu

Template edits.

Started by NoFeaR / NFSMW, April 22, 2010, 02:49:36 AM

Previous topic - Next topic

NoFeaR / NFSMW

Hi there guys, hope you all are well.
I just want to know about a few edits again.
where do i edit the newsletter template? so that i can attach my signature to the email

and then the stats page. Where do i edit it? I want to put a graph image in.

Can anyone help?

Chas Large

To edit the newsletter is a little more complicated then any of the standard e-mail templates.

In Sources/ManageNews.php look for:

// Setup the template!
$context['page_title'] = $txt['admin_newsletters'];
$context['sub_template'] = 'email_members_compose';

$context['default_subject'] = htmlspecialchars($context['forum_name'] . ': ' . $txt['subject']);
$context['default_message'] = htmlspecialchars($txt['message'] . "\n\n" . $txt['regards_team'] . "\n\n" . '{$board_url}');

You'll need to create a new text string and add it at the end of the Themes/default/index.english.php file like

$txt['newsletter_sig']  = 'This is my newsletter signature';Edit the part in single quotes to suit your needs.

Now edit the ManageNews to add the text string to the code:
// Setup the template!
$context['page_title'] = $txt['admin_newsletters'];
$context['sub_template'] = 'email_members_compose';

$context['default_subject'] = htmlspecialchars($context['forum_name'] . ': ' . $txt['subject']);
$context['default_message'] = htmlspecialchars($txt['message'] . "\n\n" . $txt['regards_team'] . "\n\n" . $txt['newsletter_sig'] . "\n\n" . '{$board_url}');


Now when you send the newsletter, your signature text will appear two lines below the regards text

I'll get back to you about the stats page as it's more complicated.
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

NoFeaR / NFSMW

I just want to insert an image

Chas Large

Well it would have been helpful if you'd said that to start with  :-\
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

Advertisement: