Uutiset:

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

Main Menu
Advertisement:

Editing the SMF notification email text

Aloittaja Talentville, kesäkuu 11, 2011, 12:21:06 IP

« edellinen - seuraava »

Talentville

When smf sends a notification email, it looks basically like the following:

"A reply has been posted to a topic you are watching by Once Upon A Star.

View the reply at: http://www.simplemachines.org/community/index.php?topic=437227.new;topicseen#new

Unsubscribe to this topic by using this link: http://www.simplemachines.org/community/index.php?action=notify;topic=437227.0

More replies may be posted, but you won't receive any more notifications until you read the topic.

Regards,
The Simple Machines Community Forum Team."


Granted this is from the SMF community forum, but within my own implementation of SMF, where can I find the textual template of the email so that I can customize the contents of the email?  The skeletons of all notifications have to be stored somewhere, can anyone direct me to the location of that so that I can customize the text contents of the emails sent to my members?

Illori

Koodi (Themes/default/languages/post.english.php) [Valitse]

$txt['notify_boards'] = 'A new topic, \'%s\', has been made on a board you are watching.' . "\n\n" . 'You can see it at' . "\n" . '%s' . "\n\n";
$txt['notify_boards_subject'] = 'New Topic: %s';
$txt['notify_boards_once'] = 'More topics may be posted, but you won\'t receive more email notifications until you return to the board and read some of them.';
$txt['notifyUnsubscribe'] = 'Unsubscribe to this topic by clicking here';
$txt['notify_boardsUnsubscribe'] = 'Unsubscribe to new topics from this board by clicking here';

$txt['notification_reply_subject'] = 'Topic reply: %s';
$txt['notification_reply'] = 'A reply has been posted to a topic you are watching by %s.' . "\n\n" . 'View the reply at: ';
$txt['notification_sticky_subject'] = 'Topic stickied: %s';
$txt['notification_sticky'] = 'A topic you are watching has been marked as a sticky topic by %s.' . "\n\n" . 'View the topic at: ';
$txt['notification_lock_subject'] = 'Topic locked: %s';
$txt['notification_lock'] = 'A topic you are watching has been locked by %s.' . "\n\n" . 'View the topic at: ';
$txt['notification_unlock_subject'] = 'Topic unlocked: %s';
$txt['notification_unlock'] = 'A topic you are watching has been unlocked by %s.' . "\n\n" . 'View the topic at: ';
$txt['notification_remove_subject'] = 'Topic removed: %s';
$txt['notification_remove'] = 'A topic you are watching has been removed by %s.';
$txt['notification_move_subject'] = 'Topic moved: %s';
$txt['notification_move'] = 'A topic you are watching has been moved to another board by %s.' . "\n\n" . 'View the topic at: ';
$txt['notification_merge_subject'] = 'Topic merged: %s';
$txt['notification_merge'] = 'A topic you are watching has been merged with another topic by %s.' . "\n\n" . 'View the new merged topic at: ';
$txt['notification_split_subject'] = 'Topic split: %s';
$txt['notification_split'] = 'A topic you are watching has been split into two or more topics by %s.' . "\n\n" . 'View what remains of this topic at: ';



Talentville

In looking through the language files, my implementation does not work that way.  In the Emailtemplates.english file I have the following (only an excerpt for notifications shown here):

'notify_boards_once_body' => array(
      /*
         @additional_params: notify_boards_once_body
            TOPICSUBJECT: The subject of the topic causing the notification
            TOPICLINK: A link to the topic.
            MESSAGE: This is the body of the message.
            UNSUBSCRIBELINK: Link to unsubscribe from notifications.
         @description:
      */
      'subject' => 'New Topic: {TOPICSUBJECT}',
      'body' => 'A new topic, \'{TOPICSUBJECT}\', has been made on a board you are watching.

You can see it at
{TOPICLINK}

More topics may be posted, but you won\'t receive more email notifications until you return to the board and read some of them.

The text of the topic is shown below:
{MESSAGE}

Unsubscribe to new topics from this board by using this link:
{UNSUBSCRIBELINK}

{REGARDS}'


In the previous reply, is that from a different version of SMF that did it differently?  I figure if I change the emailtemplates.english file, that will most likely give me what I need, just making sure I've got it right.

Arantor

You've posted in the 1.x board, and as such the advice given refers to 1.1.x. You seem to be using 2.0 which does it quite differently. Yes, changing the file will do what you want, just be careful of any ' in the email contents.
Holder of controversial views, all of which my own.


Advertisement: