Customizing SMF > Modifications and Packages
Board Notification Mod - 1.2.1 released
SabreOfParadise:
--- Quote from: rob54 on March 11, 2012, 09:07:56 AM ---I have version 1.1.6 running in SMF 1.1.16. Do I need to uninstall and delete the current version or does the install overwrite previous. Also I'm not clear what 1.2.0 does over 1.1.6. Can someone clarify please?
--- End quote ---
Read the mod description?
--- Quote ---Change Log:
Version 1.2.0
--------------------
* Compatibility with SMF 2 (without the French and Spanish translations which have to be redone, the German translation is included)
--- End quote ---
There have been no changes for SMF 1 (and none will be made in the future) so installing 1.2.0 or higher has absolutely no effect.
valmiki:
Hi Guys!!!
Today I installed the Mod Board Notification Mod. Everything seems fine until I create a reply in a Topic. At this point I get an error:
--- Quote ---Il template e-mail "notify_boards_body_reply" non può essere trovato.
--- End quote ---
Translated it should sound more or less like this:
--- Quote ---The e-mail template "notify_boards_body_reply" could not be found.
--- End quote ---
The Post gets created anyway even though is not shown at first, but the notification of the reply doesn't work.
This happens no matter what group the user belongs to ... it happens also when I am in as administrator.
When a new Topic gets created no problems though.
Could you help me out?
Thank you for your time
Valmiki
SabreOfParadise:
Are you using SMF 2?
Does that also happen when a user has English as the selected language?
If not I guess SMF expects a Spanish translation which doesn't exist for Spanish currently. You could copy the missing parts from the English part or translate the following parts so that I can compile the translation into a new version of the mod:
--- Code: --- <file name="$languagedir/EmailTemplates.english.php" error="skip">
<operation>
<search position="after"><![CDATA['notify_boards_once_body' => array(]]></search>
<add><![CDATA['notify_boards_once_body_reply' => array(
/*
@additional_params: notify_boards_once_body_reply
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 Reply: {TOPICSUBJECT}',
'body' => 'A new reply, \'{TOPICSUBJECT}\', by {POSTERNAME} has been made on a topic on a board you are watching.
You can see it at
{TOPICLINK}
More topics and replies 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 reply is shown below:
{MESSAGE}
Unsubscribe to new topics and replies from this board by using this link:
{UNSUBSCRIBELINK}
{REGARDS}',
),
]]></add>
</operation>
<operation>
<search position="after"><![CDATA['notify_boards_once' => array(]]></search>
<add><![CDATA['notify_boards_once_reply' => array(
/*
@additional_params: notify_boards_once_reply
TOPICSUBJECT: The subject of the topic causing the notification
TOPICLINK: A link to the topic.
UNSUBSCRIBELINK: Link to unsubscribe from notifications.
@description:
*/
'subject' => 'New Reply: {TOPICSUBJECT}',
'body' => 'A new reply, \'{TOPICSUBJECT}\', by {POSTERNAME} has been made on a topic on a board you are watching.
You can see it at
{TOPICLINK}
More topics and replies may be posted, but you won\'t receive more email notifications until you return to the board and read some of them.
Unsubscribe to new topics and replies from this board by using this link:
{UNSUBSCRIBELINK}
{REGARDS}',
),
]]></add>
</operation>
<operation>
<search position="after"><![CDATA['notify_boards_body' => array(]]></search>
<add><![CDATA['notify_boards_body_reply' => array(
/*
@additional_params: notify_boards_body_reply
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 Reply: {TOPICSUBJECT}',
'body' => 'A new reply, \'{TOPICSUBJECT}\', by {POSTERNAME} has been made on a topic on a board you are watching.
You can see it at
{TOPICLINK}
The text of the reply is shown below:
{MESSAGE}
Unsubscribe to new topics and replies from this board by using this link:
{UNSUBSCRIBELINK}
{REGARDS}',
),
]]></add>
</operation>
<operation>
<search position="after"><![CDATA['notify_boards' => array(]]></search>
<add><![CDATA['notify_boards_reply' => array(
/*
@additional_params: notify_boards_reply
TOPICSUBJECT: The subject of the topic causing the notification
TOPICLINK: A link to the topic.
UNSUBSCRIBELINK: Link to unsubscribe from notifications.
@description:
*/
'subject' => 'New Reply: {TOPICSUBJECT}',
'body' => 'A new reply, \'{TOPICSUBJECT}\', by {POSTERNAME} has been made on a topic on a board you are watching.
You can see it at
{TOPICLINK}
Unsubscribe to new topics and replies from this board by using this link:
{UNSUBSCRIBELINK}
{REGARDS}',
),
]]></add>
</operation>
<operation><!-- 1. -->
<search position="replace"><![CDATA['body' => 'A new topic, \'{TOPICSUBJECT}\', has been made on a board you are watching.]]></search>
<add><![CDATA['body' => 'A new topic, \'{TOPICSUBJECT}\', by {POSTERNAME} has been made on a board you are watching.]]></add>
</operation>
<operation><!-- 2. -->
<search position="replace"><![CDATA[A new topic, \'{TOPICSUBJECT}\', has been made on a board you are watching.]]></search>
<add><![CDATA[A new topic, \'{TOPICSUBJECT}\', by {POSTERNAME} has been made on a board you are watching.]]></add>
</operation>
<operation><!-- 3. -->
<search position="replace"><![CDATA[A new topic, \'{TOPICSUBJECT}\', has been made on a board you are watching.]]></search>
<add><![CDATA[A new topic, \'{TOPICSUBJECT}\', by {POSTERNAME} has been made on a board you are watching.]]></add>
</operation>
<operation><!-- 4. -->
<search position="replace"><![CDATA[A new topic, \'{TOPICSUBJECT}\', has been made on a board you are watching.]]></search>
<add><![CDATA[A new topic, \'{TOPICSUBJECT}\', by {POSTERNAME} has been made on a board you are watching.]]></add>
</operation>
</file>
<file name="$languagedir/ManagePermissions.english.php" error="skip">
<operation>
<search position="before"><![CDATA[$txt['permissionhelp_mark_notify'] = 'Notification on new topics is a feature that allows a user to receive an email every time a new topic is created on the board they subscribe to.';]]></search>
<add><![CDATA[
// Added by Board Notification Mod
$txt['permissionname_mark_notify_more'] = 'Request notification on new replies for subscribed boards';
$txt['permissionhelp_mark_notify_more'] = 'Addition to the notification on new topics which allows a user to receive an email every time a new reply is created on the board they subscribe to.';]]></add>
</operation>
</file>
--- End code ---
valmiki:
Dear Sabre,
I am using SMF 2.0.2 in italian.
This morning I have changed the admin language to English and tried to write a reply:
The email template "notify_boards_body_reply" could not be found.
So unless there isn't another place where I need to change the language as well, it might mean that your solution wouldn't work unfortunately ... :(
If you want, still I could apply your solution to see what happens but first you have to give me one more clue since I am not sure where I have to put the code you gave me ... :P
Anyway, I greatly appreciate your help and I hope that I can quickly fix this problem since my users are screaming right now to get this option available ... upsy!
P.S. Sorry it took me so long for this reply but I expected a notification which never arrived. I guess they are turned on automatically when one writes a topic or replies to one ... upsy again! Now I have asked for notifications.
valmiki:
... thinking about it ... it just came to me that you thought I have SMF in Spanish and asked me to fill up missing strings in that language. Well, now you know that my SMF is in Italian coz I am Italian and do live in Italy now but my native tongue is Spanish so even though I haven't a great vocabulary I am sure I could help you filling out the missing strings just, as I asked before let me know a little more in detail how to do it. It would be a pleasure to contribute since so much as been given to me.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version