Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SabreOfParadise on May 28, 2009, 12:36:25 PM

Title: Board Notification Mod - 1.2.2 released
Post by: SabreOfParadise on May 28, 2009, 12:36:25 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1861)

This mod targets the following mod requests:
http://www.simplemachines.org/community/index.php?topic=302387
http://www.simplemachines.org/community/index.php?topic=206788.0 (kind of)

Description:

Actual state:

User will get notified of new posts if subscribed to the corresponding topic.
User will get notified of new topics if subscribed to the corresponding board.

Target state:

User will get notified of new posts if subscribed to the corresponding topic.
User will get notified of new topics and new posts if subscribed to the corresponding board.

Additional information:
Some examples to make sure no one gets confused of the wording:

A "board" is this:
http://www.simplemachines.org/community/index.php?board=20.0

A "topic" is this:
http://www.simplemachines.org/community/index.php?topic=146192.0

A "post" is an entry made in an existing topic.

Additional features:
- Username of the user is included in the board notificatin email

Compatibility:
Tested with SMF 1.1.8, 1.1.9, 1.1.10, 1.1.11, 1.1.13, 1.1.16, 2.0.2, 2.0.4, 2.0.5

Notes:
- In the version 1.0 state this mod should only be used on small, closed forums to avoid email flodding!
This issue is targeted with version 1.1 of the mod. It adds a new permission 'Request notification on new replies for subscribed boards'
to restrict the use of the mod to certain user groups. Per default the mod is now only active for admins and moderators.
- The mod contains language specific files for english and german. I appreciate if someone would contact me for further translations.
- Supported languages for SMF 2 are: english, english-utf8, german, german-utf8, french

Read the contained readme.txt for more information.

News:

Version 1.2.2:
*  SMF 2: Support for english-utf8
Title: Re: Board Notification Mod
Post by: Cal O'Shaw on May 28, 2009, 11:22:38 PM
Hello,

Based on the high volume warning for this MOD, would it perhaps be an AdminCP option to restrict this feature to those authorised to moderate the boards?  This gives the site the option to try this MOD fully open, and if they have the email volume issue, they can throttle it to just Moderators and Admins.  And if it's still a problem, uninstall the MOD.

Just an idea...

Cal
Title: Re: Board Notification Mod
Post by: Joe N on May 29, 2009, 05:30:22 AM
Screenshot?
Title: Re: Board Notification Mod
Post by: SabreOfParadise on June 02, 2009, 02:49:14 AM
Quote from: Cal O'Shaw on May 28, 2009, 11:22:38 PM
Based on the high volume warning for this MOD, would it perhaps be an AdminCP option to restrict this feature to those authorised to moderate the boards?

Yes, that would be a solution.
I thought about a new permission like "Request notification on new replies when subscribed to a board" so that the feature could be restricted to certain user groups.

Quote from: Joe N on May 29, 2009, 05:30:22 AM
Screenshot?

At the moment there is only a change in backend and email text. Nothing for a screenshot.
Title: Re: Board Notification Mod
Post by: Cal O'Shaw on June 02, 2009, 03:39:14 AM
Would that be an additional question in the User Profile? 

I haven't installed it, so I am guessing that for right now it just makes the change in the backend, with no indication the person will get new posts as well?  I think Joe N was looking for screenshots where you have changed and added txt strings.

With that question visible only if the Permission is checked in the Permissions for that group?  And the text in Permissions something like "Request notification of new posts on boards []"

Or use the AllowedTo(moderate_board) to limit it to just the moderators of the board (eliminates adding to the Permissions panel in AdminCP)?


I like this MOD, as I have a couple of boards I would like to send me new posts when new topics are opened and I don't have the option to get to the site and toggle Notify.  And thank you for adding who is creating new topics!  I can't believe SMF has not addressed that, especially since post notifications include who posted.

Grazie,

Cal
Title: Re: Board Notification Mod
Post by: SabreOfParadise on June 02, 2009, 09:13:24 AM
Quote from: Cal O'Shaw on June 02, 2009, 03:39:14 AM
I haven't installed it, so I am guessing that for right now it just makes the change in the backend, with no indication the person will get new posts as well?

Yes.

Quote from: Cal O'Shaw on June 02, 2009, 03:39:14 AM
I think Joe N was looking for screenshots where you have changed and added txt strings.

Then he can download the mod and look in the modification1.1.x.xml of the ZIP.

Quote from: Cal O'Shaw on June 02, 2009, 03:39:14 AM
Would that be an additional question in the User Profile? 
With that question visible only if the Permission is checked in the Permissions for that group?  And the text in Permissions something like "Request notification of new posts on boards []"

No, but that would be another useful addition to the mod.

Quote from: Cal O'Shaw on June 02, 2009, 03:39:14 AM
Or use the AllowedTo(moderate_board) to limit it to just the moderators of the board (eliminates adding to the Permissions panel in AdminCP)?

Well, for my own forum I need the modification for a specific user group, so I need the new permission anyway if  I want to restrict the use of the Mod. Although I don't like the idea to mod the database because this leads to the new question: Should I completely undo the database changes with the uninstall option? (What if someone wants to re-install the mod and needs the data?)

But at first I'll try the new permission on my test forum and then move along and think about solutions for the uninstall question.
Title: Board Notification Mod - 1.1 released
Post by: SabreOfParadise on June 04, 2009, 09:33:26 AM
Finished the addition of the new permission and uploaded the mod version 1.1:

So now you can restrict the use of the mod to certain user groups or to admins/moderators only (default). :)

And I added a small screenshot as now there is something in the frontend to show, too.  ;)

Edit: For the uninstall question: I have made an uninstall_db.php script which has to be executed manually if you want to completely remove the mod. I hope this is the best solution for everyone.
Title: Re: Board Notification Mod - 1.1 released
Post by: GravuTrad on June 22, 2009, 01:09:23 PM
have you seen the comment of sinan about your mod here?:

http://www.simplemachines.org/community/index.php?topic=313868

This is the french strings for your mod, can you implement them too please? (i put an external link cause smf forum hide numeric entities and not our forum)

http://www.simplemachines-fr.org/Forum-topic-2649-start-msg12245.html#msg12245
Title: Re: Board Notification Mod - 1.1 released
Post by: SabreOfParadise on June 23, 2009, 03:28:54 AM
Quote from: GravuTrad on June 22, 2009, 01:09:23 PM
have you seen the comment of sinan about your mod here?:

http://www.simplemachines.org/community/index.php?topic=313868

No and that topic does not exist.  :-\

Translations should be posted in this topic. As I'm subscribed to this topic I will see them asap.

Anyway, I've included the french translations as version 1.1.1.

Thanks to sinan.  ;)
Title: Re: Board Notification Mod - 1.1.1 released
Post by: Ramón Cutanda on June 24, 2009, 11:25:28 AM
Hi,

First of all, thanks for the mod.

Attached you'll find the Spanish version I'm using in my site. I hope it can be useful.

Regards,
Title: Re: Board Notification Mod - 1.1.1 released
Post by: GravuTrad on June 24, 2009, 11:46:51 AM
Quote from: SabreOfParadise on June 23, 2009, 03:28:54 AM
Translations should be posted in this topic. As I'm subscribed to this topic I will see them asap.

Like i said, the problem is that the consignes for some lines concerned request numeric entities, which can't be posted here cause the forum automatically convert them in the proper characters.
That's why i posted them with a link to post from another forum....
Title: Re: Board Notification Mod - 1.1.1 released
Post by: SabreOfParadise on June 29, 2009, 06:34:09 AM
Quote from: videoed on June 24, 2009, 11:25:28 AM
First of all, thanks for the mod.

It's a pleasure for me to see that the mod is usefull for other users, too.  :)

Quote from: videoed on June 24, 2009, 11:25:28 AM
Attached you'll find the Spanish version I'm using in my site. I hope it can be useful.

Thanks for you, too.
I think every translation can be usefull. I've included them in the new version 1.1.2.

Quote from: GravuTrad on June 24, 2009, 11:46:51 AM
That's why i posted them with a link to post from another forum....

I wanted to address sinan with that comment, not you.  :)

Edit: Hmm, are the translations done by sinan or you? (I'd like to thank the real translator)
Title: Re: Board Notification Mod - 1.1.2 released
Post by: GravuTrad on June 29, 2009, 11:43:15 AM
Quote from: SabreOfParadise on June 29, 2009, 06:34:09 AM
Quote from: videoed on June 24, 2009, 11:25:28 AM
Attached you'll find the Spanish version I'm using in my site. I hope it can be useful.

Thanks for you, too.
I think every translation can be usefull. I've included them in the new version 1.1.2.

Quote from: GravuTrad on June 24, 2009, 11:46:51 AM
That's why i posted them with a link to post from another forum....

I wanted to address sinan with that comment, not you.  :)

Edit: Hmm, are the translations done by sinan or you? (I'd like to thank the real translator)

The translation is done by me.

But well see videoed, i should attach in a file here, i was easier. i'll do like this for the future.

nb for smf devs: replacing automatically numeric entities on this forum is really annoying
Title: Re: Board Notification Mod - 1.1.2 released
Post by: SabreOfParadise on June 30, 2009, 02:02:03 AM
Quote from: GravuTrad on June 29, 2009, 11:43:15 AM
The translation is done by me.

Ok, thanks for translating and sorry for thanking the wrong one. I've corrected that.
Title: Re: Board Notification Mod - 1.1.2 released
Post by: GravuTrad on June 30, 2009, 07:56:04 AM
No problem lol....
Title: Re: Board Notification Mod - 1.1.2 released
Post by: babu on June 30, 2009, 09:34:18 AM
Hi there,

I am trying to install this mod on version 1.1.9.

Whilst the mod seems to have worked, I do not get notification of the specific reply in the posts.  Instead, I recieve an email which says:

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

Is there anyway to rectify this?

Thanks
Title: Re: Board Notification Mod - 1.1.2 released
Post by: SabreOfParadise on June 30, 2009, 09:50:24 AM
Quote from: babu on June 30, 2009, 09:34:18 AM
Is there anyway to rectify this?

Yes, go to your Profile settings, then to 'Notifications and Email'
and uncheck "Receive reply notification only for the first unread reply."
Title: "Request notification on new replies for subscribed boards" label not present
Post by: Keith Moreau on July 09, 2009, 12:47:44 AM
After the install of 1.1 (1.1.2 listed a bunch of errors for non-existent language files, which I didn't need) I believe I have the feature (have yet to test it) but in the permissions area which does have another checkbox under the other 2 doesn't have a label. I assume it's the one I want to check for this feature. Attached is a screenshot.

That being said, thanks for creating this mod, it's necessary and overcomes some perplexing lack of notification features.
Title: Re: Board Notification Mod - 1.1.2 released
Post by: TomMcc on August 01, 2009, 03:32:25 PM
Unfortunately, shows not compatible with 1.1.10. It must be a drag for auths, having the updates constantly break your mods. I feel your pain. Looking forward to an update because I really need notification of new posts, and I hoped this was the solution.
thanks and good luck.
Title: Re: Board Notification Mod - 1.1.2 released
Post by: SabreOfParadise on August 20, 2009, 11:06:35 AM
Sorry, I was on vacation. Included the compatibility with SMF 1.1.10 now.
Title: Re: Board Notification Mod - 1.1.3 released
Post by: GravuTrad on August 20, 2009, 11:45:34 AM
Quote from: tombstone6988 on August 01, 2009, 03:32:25 PM
Unfortunately, shows not compatible with 1.1.10. It must be a drag for auths, having the updates constantly break your mods. I feel your pain. Looking forward to an update because I really need notification of new posts, and I hoped this was the solution.
thanks and good luck.

It's totally normal. Mods are mods. no core files....mods have to adapt them to the core files, not vice...
Title: Re: Board Notification Mod - 1.1.3 released
Post by: SabreOfParadise on August 21, 2009, 09:00:59 AM
It wasn't much work anyway.  ;)

I have now released 1.1.4 as I found and fixed a nasty bug:

Version 1.1.4
--------------------
! Topic notifications were not sent anymore when someone had a board notification on on a board in which the topic was located

--------------------------------------------------------------

If you experience notification problems which are gone when you uninstall the mod, please let me know.
Title: Re: Board Notification Mod - 1.1.4 released
Post by: Cal O'Shaw on August 23, 2009, 01:55:18 PM
Hi,

I have 1.1.4 installed on SMF 1.1.10 and just noticed today that an alert on a new topic does not include the name of the author, while subsequent posts do include the author.

Is this just me, or did I find something it would be nice to change (include author on 'new topic' announcements).

Grazie,

Cal
Title: Re: Board Notification Mod - 1.1.4 released
Post by: Cal O'Shaw on August 24, 2009, 04:10:59 AM
I uninstalled a previous version of your MOD and installed 1.1.4.

I now get TWO emails for each notification:

1) "Topic reply: (title)" which appears to be the SMF default.
2) "New Reply: Re: (title)" which appears to be your MOD.

Would you be able to advise how to remove the extra reply, as I prefer your version.

Grazie,

Cal
Title: Re: Board Notification Mod - 1.1.4 released
Post by: SabreOfParadise on August 24, 2009, 05:01:19 AM
I'm currently working on both issues.
Title: Re: Board Notification Mod - 1.1.4 released
Post by: SabreOfParadise on August 24, 2009, 08:40:27 AM
Both issues are fixed in the new 1.1.5 version.
Title: Re: Board Notification Mod - 1.1.5 released
Post by: Cal O'Shaw on August 24, 2009, 11:11:53 AM
Thank you for the quick response!
Title: Re: Board Notification Mod - 1.1.5 released
Post by: vampiejay on September 17, 2009, 06:24:32 AM
hi there i'm not sure how this mod works or where to activae the functions i have it installed and have noticed a few errors in the forum error log

  Cprl.Rst   Today at 11:03:15 AM 
82.36.74.133     fe51d14792286d781e21234a19581213 
http://www.clan-hosts.org.uk/forums/index.php?action=packages;sa=install;package=BoardNotificationMod1.1.5.zip 
2: fclose(): supplied argument is not a valid stream resource
File: /home/clanhost/public_html/forums/Sources/Subs-Package.php
Line: 1908

   Cprl.Rst   Today at 11:03:15 AM 
82.36.74.133     fe51d14792286d781e21234a19581213 
http://www.clan-hosts.org.uk/forums/index.php?action=packages;sa=install;package=BoardNotificationMod1.1.5.zip 
2: fopen(/home/clanhost/public_html/forums/Themes/default/languages/ManagePermissions.english.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/clanhost/public_html/forums/Sources/Subs-Package.php
Line: 1901

   Cprl.Rst   Today at 11:03:15 AM 
82.36.74.133     fe51d14792286d781e21234a19581213 
http://www.clan-hosts.org.uk/forums/index.php?action=packages;sa=install;package=BoardNotificationMod1.1.5.zip 
2: fclose(): supplied argument is not a valid stream resource
File: /home/clanhost/public_html/forums/Sources/Subs-Package.php
Line: 1908

   Cprl.Rst   Today at 11:03:15 AM 
82.36.74.133     fe51d14792286d781e21234a19581213 
http://www.clan-hosts.org.uk/forums/index.php?action=packages;sa=install;package=BoardNotificationMod1.1.5.zip 
2: fopen(/home/clanhost/public_html/forums/Themes/default/languages/Post.english.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/clanhost/public_html/forums/Sources/Subs-Package.php
Line: 1901

   Cprl.Rst   Today at 11:03:15 AM 
82.36.74.133     fe51d14792286d781e21234a19581213 
http://www.clan-hosts.org.uk/forums/index.php?action=packages;sa=install;package=BoardNotificationMod1.1.5.zip 
2: fclose(): supplied argument is not a valid stream resource
File: /home/clanhost/public_html/forums/Sources/Subs-Package.php
Line: 1908

   Cprl.Rst   Today at 11:03:15 AM 
82.36.74.133     fe51d14792286d781e21234a19581213 
http://www.clan-hosts.org.uk/forums/index.php?action=packages;sa=install;package=BoardNotificationMod1.1.5.zip 
2: fopen(/home/clanhost/public_html/forums/Sources/Subs-Post.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/clanhost/public_html/forums/Sources/Subs-Package.php
Line: 1901

   Cprl.Rst   Today at 11:03:15 AM 
82.36.74.133     fe51d14792286d781e21234a19581213 
http://www.clan-hosts.org.uk/forums/index.php?action=packages;sa=install;package=BoardNotificationMod1.1.5.zip 
2: fclose(): supplied argument is not a valid stream resource
File: /home/clanhost/public_html/forums/Sources/Subs-Package.php
Line: 1908

   Cprl.Rst   Today at 11:03:15 AM 
82.36.74.133     fe51d14792286d781e21234a19581213 
http://www.clan-hosts.org.uk/forums/index.php?action=packages;sa=install;package=BoardNotificationMod1.1.5.zip 
2: fopen(/home/clanhost/public_html/forums/Sources/ManagePermissions.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/clanhost/public_html/forums/Sources/Subs-Package.php
Line: 1901

   Cprl.Rst   Today at 11:03:06 AM 
82.36.74.133     fe51d14792286d781e21234a19581213 
http://www.clan-hosts.org.uk/forums/index.php?action=packages;sa=install;package=BoardNotificationMod1.1.5.zip;sesc 
2: fclose(): supplied argument is not a valid stream resource
File: /home/clanhost/public_html/forums/Sources/Subs-Package.php
Line: 1908

   Cprl.Rst   Today at 11:03:06 AM 
82.36.74.133     fe51d14792286d781e21234a19581213 
http://www.clan-hosts.org.uk/forums/index.php?action=packages;sa=install;package=BoardNotificationMod1.1.5.zip;sesc 
2: fopen(/home/clanhost/public_html/forums/Themes/default/languages/ManagePermissions.english.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/clanhost/public_html/forums/Sources/Subs-Package.php
Line: 1901

   Cprl.Rst   Today at 11:03:06 AM 
82.36.74.133     fe51d14792286d781e21234a19581213 
http://www.clan-hosts.org.uk/forums/index.php?action=packages;sa=install;package=BoardNotificationMod1.1.5.zip;sesc 
2: fclose(): supplied argument is not a valid stream resource
File: /home/clanhost/public_html/forums/Sources/Subs-Package.php
Line: 1908

   Cprl.Rst   Today at 11:03:06 AM 
82.36.74.133     fe51d14792286d781e21234a19581213 
http://www.clan-hosts.org.uk/forums/index.php?action=packages;sa=install;package=BoardNotificationMod1.1.5.zip;sesc 
2: fopen(/home/clanhost/public_html/forums/Themes/default/languages/Post.english.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/clanhost/public_html/forums/Sources/Subs-Package.php
Line: 1901

   Cprl.Rst   Today at 11:03:06 AM 
82.36.74.133     fe51d14792286d781e21234a19581213 
http://www.clan-hosts.org.uk/forums/index.php?action=packages;sa=install;package=BoardNotificationMod1.1.5.zip;sesc 
2: fclose(): supplied argument is not a valid stream resource
File: /home/clanhost/public_html/forums/Sources/Subs-Package.php
Line: 1908

   Cprl.Rst   Today at 11:03:06 AM 
82.36.74.133     fe51d14792286d781e21234a19581213 
http://www.clan-hosts.org.uk/forums/index.php?action=packages;sa=install;package=BoardNotificationMod1.1.5.zip;sesc 
2: fopen(/home/clanhost/public_html/forums/Sources/Subs-Post.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/clanhost/public_html/forums/Sources/Subs-Package.php
Line: 1901

   Cprl.Rst   Today at 11:03:06 AM 
82.36.74.133     fe51d14792286d781e21234a19581213 
http://www.clan-hosts.org.uk/forums/index.php?action=packages;sa=install;package=BoardNotificationMod1.1.5.zip;sesc 
2: fclose(): supplied argument is not a valid stream resource
File: /home/clanhost/public_html/forums/Sources/Subs-Package.php
Line: 1908

Cprl.Rst   Today at 11:03:06 AM 
82.36.74.133     fe51d14792286d781e21234a19581213 
http://www.clan-hosts.org.uk/forums/index.php?action=packages;sa=install;package=BoardNotificationMod1.1.5.zip;sesc 
2: fopen(/home/clanhost/public_html/forums/Sources/ManagePermissions.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/clanhost/public_html/forums/Sources/Subs-Package.php


if anyone has any help this would be good thanks
Title: Re: Board Notification Mod - 1.1.5 released
Post by: SabreOfParadise on September 17, 2009, 06:32:08 AM
Looks like a permission problem in your file system.

Did you enter a valid FTP account?
Title: Re: Board Notification Mod - 1.1.5 released
Post by: vampiejay on September 17, 2009, 06:33:04 AM
didn't ask for it
Title: Re: Board Notification Mod - 1.1.5 released
Post by: vampiejay on September 17, 2009, 06:37:14 AM
i have just uninstalled ad reinstalled with out any errors nowhow to or where do i find the options that thismod activates/installs
Title: Re: Board Notification Mod - 1.1.5 released
Post by: SabreOfParadise on September 17, 2009, 06:45:39 AM
Did you read the mod description and notes from the mod page?
Title: Re: Board Notification Mod - 1.1.5 released
Post by: vampiejay on September 17, 2009, 06:48:24 AM
yes but i don't seem to be getting any maisl through
Title: Re: Board Notification Mod - 1.1.5 released
Post by: vampiejay on September 17, 2009, 07:00:49 AM
this ismy bad i was using the same accout when test posting doh
Title: Re: Board Notification Mod - 1.1.5 released
Post by: SabreOfParadise on September 17, 2009, 07:02:55 AM
Ok, so everything works fine now?
Title: Re: Board Notification Mod - 1.1.5 released
Post by: king kratos on October 07, 2009, 12:48:21 AM
Are you planning to update this to be compatible with SMF Version 2.x (specifically Version 2.0 RC 2.1 and Version 2.0 RC 2)?

Thanks,

Kratos
Title: Re: Board Notification Mod - 1.1.5 released
Post by: SabreOfParadise on October 07, 2009, 04:48:19 AM
I will look at SMF 2.0 when there is a stable release. To reduce effort I'm not working with Release Candidates.
Title: Re: Board Notification Mod - 1.1.5 released
Post by: rob54 on October 11, 2009, 12:30:31 PM
Hi,

I've just happened across this mod, and it seems like a good idea, especially as I want to switch from Yahoo Groups. Anyway, I have installed the mod, but I can't find the Notification (http://custom.simplemachines.org/mods/index.php?action=download;mod=1861;id=101091;image) area shown where it features in the SMF Mod site. Can someone point me to it please.  :-[
Title: Re: Board Notification Mod - 1.1.5 released
Post by: SabreOfParadise on October 12, 2009, 08:04:40 AM
Go to 'Admin'. Then select Members -> Permissions and select a group.
In the 'Global Board Permissions' area you can then find the option 'Request notification on new replies for subscribed boards'.
Title: Re: Board Notification Mod - 1.1.5 released
Post by: rob54 on October 12, 2009, 12:13:12 PM
OK thanks I have found it now thanks for your help. But having never been there before, there is a tickbox (checkbox) but no text next to it (like the screenshot provided earlier in this thread.

I'm using 1.1.10 and a slightly modified Pancar theme. But text still isn't there if I switch back to default. Can you help?  ???
Title: Re: Board Notification Mod - 1.1.5 released
Post by: SabreOfParadise on October 13, 2009, 02:28:00 AM
It would help much if you could provide a screenshot. Else I can only guess:

1. Check if your ManagePermissions.php file contains 'mark_notify_more' 3 times.
2. Check if your ManagePermissions.english.php file contains the following lines:
// 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.';
3. Maybe the theme you are using overwrites one of the files mentioned above. The mod only modifies the files in the default theme.
4. Are you using English, German, Spanish or French as language for your user? If not the cause may be that the language entries for the user language don't exist. I don't know if a fallback to English exists for this case.
Title: Re: Board Notification Mod - 1.1.5 released
Post by: rob54 on October 13, 2009, 05:33:09 PM
Thanks for answering. I had been out all day so unable to answer until now.

Attached is a screenshot of the Nofication area with the text missing.

1. In ManagePermissions.php file 'mark_notify_more' does appear 3 times.
2. ManagePermissions.english.php contains those lines you mention.
3. ManagePermissions.php is dated 12/10/2009 and there is a ManagePermissions.php~ also dated 12/10/2009. The date and time is the same as when I installed the mod. Likewise for ManagePermissions.english.php and ManagePermissions.english.php~.  Does that give a clue?
4. I am using English as I don't know any other language.
Title: Re: Board Notification Mod - 1.1.5 released
Post by: SabreOfParadise on October 14, 2009, 02:31:26 AM
Quote from: rob54 on October 13, 2009, 05:33:09 PMDoes that give a clue?

No, the ~ files are generated by SMF when a Mod is installed.

Did you check if your theme contains a ManagePermissions.english.php file?

Can you switch to the default theme and check if the text is shown then?
Title: Re: Board Notification Mod - 1.1.5 released
Post by: rob54 on October 14, 2009, 06:44:52 AM
The theme I use (Pancar1) does not have its own ManagePermissions.english.php file.

I did already try switching back to the default theme with the same effect. I have just check again to be double sure - no text by tickbox. I think, before I posted in this thread I even tried uninstalling and deleting your mod in default, then re-uploading and re-installing again, to the same effect - no text by the tickbox.
Title: Re: Board Notification Mod - 1.1.5 released
Post by: SabreOfParadise on October 14, 2009, 08:13:14 AM
Then I have no clue. If you run an Apache web server you can check the php_error.log file for error messages.

It may also help to open the source code of the permission view, search for 'mark_notify_more' and post the complete
<tr>
      ...
</tr>
block which contains the  'mark_notify_more'

On my forum this looks like the following:

<tr class="windowbg2">
<td valign="top" width="10" style="padding-right: 1ex;">
<a href="http://forum.mydomain.com/index.php?action=helpadmin;help=permissionhelp_mark_notify_more" onclick="return reqWin(this.href);" class="help"><img src="http://forum.mydomain.com/Themes/mytheme/images/helptopics.gif" alt="Help" /></a>
</td>

<td valign="top" width="100%" align="left" style="padding-bottom: 2px;">Request notification on new replies for subscribed boards</td>
<td valign="top" style="padding-bottom: 2px;"><input type="checkbox" name="perm[board][mark_notify_more]" value="on" class="check" /></td>
</tr>


If nothing can be seen there please try to exchange your ManagePermissions.english.php with the attached one from my working testsystem. Of course, you should make a backup copy of your file first.

Did you get any error messages during the installation of the Mod?

Title: Re: Board Notification Mod - 1.1.5 released
Post by: rob54 on October 14, 2009, 03:21:19 PM
Unfortunately I don't even know what an Apache web server is. :(

On opening the source code for the Permissions area (and I take this to mean Permissions then the Modify link for Regular Members) in the area between the <tr> tags that include 'mark_notify_more' I have

<tr class="windowbg2">
<td valign="top" width="10" style="padding-right: 1ex;">

</td>
<td valign="top" width="100%" align="left" style="padding-bottom: 2px;"></td>
<td valign="top" style="padding-bottom: 2px;"><input type="checkbox" name="perm[board][mark_notify_more]" value="on" class="check" /></td>
</tr>


but seems to have quite a bit missing compared to yours. I have changed nothing it is directly copied. There are many slightly similar areas between <tr> tags but only that one that contains 'mark_notify_more'.

I did not notice error messages during installation, but not to say there were none.

I also tried substituting your ManagePermissions.english.php to no effect.

Thanks for your assistance so far.
Title: Re: Board Notification Mod - 1.1.5 released
Post by: SabreOfParadise on October 15, 2009, 04:10:49 AM
Quote from: rob54 on October 14, 2009, 03:21:19 PM
Unfortunately I don't even know what an Apache web server is. :(

A web server.  ;) => http://httpd.apache.org/

Which web server are you using?

---------------------------------------

If you look into the ManagePermissions.template.php file you'll see what is missing:

Quote
<tr class="', $alternate ? 'windowbg' : 'windowbg2', '">
                        <td valign="top" width="10" style="padding-right: 1ex;">
                           ', $permission['show_help'] ? '<a href="' . $scripturl . '?action=helpadmin;help=permissionhelp_' . $permission['id'] . '" onclick="return reqWin(this.href);" class="help"><img src="' . $settings['images_url'] . '/helptopics.gif" alt="' . $txt[119] . '" /></a>' : '', ' <= $permission['show_help'] = Empty
...
<td valign="top" width="100%" align="left" style="padding-bottom: 2px;">', $permission['name'], '</td>'; <= $permission['name'] = Empty
...
   <td valign="top" style="padding-bottom: 2px;"><input type="checkbox" name="perm[', $permission_type['id'], '][', $permission['id'], ']"', $permission['select'] == 'on' ? ' checked="checked"' : '', ' value="on" class="check" /></td>';
                        </td>';


That means that
$txt['permissionname_mark_notify_more']
and
$txt['permissionhelp_mark_notify_more']
from the ManagePermissions.english.php cannot be read. As the id works the only possibilities I see are that either these properties are not in the correct ManagePermissions.english.php (=> <WebServerRoot>/<YourSMFFolder>/themes/default/languages/ManagePermissions.english.php) or an old version of the file is read or something else is wrong with this file.

Quote from: rob54 on October 14, 2009, 03:21:19 PMI also tried substituting your ManagePermissions.english.php to no effect.

How exactly?

I suggest you change a different property in this file and see if there are any differences in the permissions view:

E.g. change:

$txt['permissionname_mark_notify'] = 'Request notification on new topics';

to

$txt['permissionname_mark_notify'] = 'Request notification on new topics (test)';

If you don't see the '(test)' something is very wrong on your system or you are changing the wrong file.

On my test forum I see the change at once.
Title: Re: Board Notification Mod - 1.1.5 released
Post by: rob54 on October 15, 2009, 01:09:04 PM
According to my hoster's cPanel the Apache Version is 2.2.13 (Unix).

The bits you show in red in ManagePermissions.template.php that are missing are indeed missing in my file. I take it you mean that text should be there. If so why would it be missing and should I insert it?

ManagePermissions.english.php is in the right place (public_html/forum/Themes/default/languages). ManagePermissions.english.php~ does not have the 'mark_notify_more' lines. But I'm guessing you don't mean that file as it is a backup as I understand. But ManagePermissions.english.php does have those lines.

When I copied your ManagePermissions.english.php over to replace mine, I did it in the usual way by dragging and dropping the file into the FTP window in the appropriate folder. I checked that it updated OK in the FTP view then switched back to my forum and did a Ctrl-F5.

I tried adding (test) where you indicated copied the file again, did a Ctrl-F5 and it made no difference i.e. I didn't see '(test)'.
:(
Title: Re: Board Notification Mod - 1.1.5 released
Post by: SabreOfParadise on October 16, 2009, 03:39:55 AM
Quote from: rob54 on October 15, 2009, 01:09:04 PM
The bits you show in red in ManagePermissions.template.php that are missing are indeed missing in my file. I take it you mean that text should be there. If so why would it be missing and should I insert it?

Ehm, I don't understand you. Where would you want to insert any text?
The text I wrote in red were only descriptions of the problem.
The ManagePermissions.template.php ist correct or else the rest of the permissions would be shown wrongly, too. Therefore changing anything here would not help.

Quote from: rob54 on October 15, 2009, 01:09:04 PMI tried adding (test) where you indicated copied the file again, did a Ctrl-F5 and it made no difference i.e. I didn't see '(test)'.

Sounds to me like an old version lies in the proxy you are using or your web browser cache. I suggest you clear the cache and bypass the proxy and look if this solves the problem.
Title: Re: Board Notification Mod - 1.1.5 released
Post by: rob54 on October 16, 2009, 07:11:37 PM
I'm confused now.  :( Well I was already really  :(

I did clear the cache as you suggested but I don't know about a proxy. I know the meaning of the word itself of course but have no idea if a proxy is in use.

I've also been testing out the notifications. I subscribed myself and 2 test users (both me) to one board and was getting notifications of new topics OK. But I noticed that the notification of a post from a test user arrived at the email address for me, lacked the link to the post. Instead, in it's place it just had the name if the test account. I'm beginning to wonder if there is something more seriously amiss with the files.
Title: Re: Board Notification Mod - 1.1.5 released
Post by: SabreOfParadise on October 19, 2009, 04:31:21 AM
Quote from: rob54 on October 16, 2009, 07:11:37 PM
I'm confused now. 

Well, I'm confused, too. According to your information the files itselves are correct. If they are in the correct location, there is no proxy and your web browser doesn't get an older version from the cache I have no clue why you have such a strange output.
Plus you changed the file yourself and see no differences in the output which means there is some kind of cache with old content between client and server. I can't help you with that. Check your client and talk to your hoster regarding the server.

You could also try the following:
1. Install the backup files (with the ~) of the files changed by the Mod and delete the mod in the Package Manager.
2. Then check if the checkbox without text disappears.
If it doesn't disappear the problem definately doesn't have anything to do with the Mod.
According to your information I would bet the checkbox will not disappear.
3. Try to install the Mod again from this clean state. Watch every error or warn messages given out during installation.
4. Check if it works this time.

You could also install an Apache web server, mySQL and PHP on your own computer, install SMF there and install the Mod there to get a feeling for it and be able to watch the php_error.log.
Title: Re: Board Notification Mod - 1.1.5 released
Post by: rob54 on October 19, 2009, 05:27:26 PM
Hi,

1. When you say install the backup files (~) I don't know which ones they are. And once I know, how to I install them. Is it a matter of removing the ~? TO delete the mod, presumably I don't need to uninstall first (I usually do for mods that either don't work as I though or I simply don't like).
2. OK then I can check if the tickbox goes.
3. I did uninstall and delete the mod before when it initially only showed the tickbox, then I reinstalled it. Umm I think the tickbox went I can't remember  :-\. Presumably what you are suggesting I do will be different to that if you are expecting the tickbox not to go.
4. OK I will but I just need you to answer 1. first.

Regarding Apache etc, I don't think I want even go down that road. Far beyond by capability.

Interestingly (I don't know if it helps) but I installed another mod some time back which is to hide topic replies from Guests. That also only shows a tickbox, but works OK with the tickbox ticked. Sorry I'm saying tick and tickbox (I'm from UK) so I meant to say check etc.  ;)
Title: Re: Board Notification Mod - 1.1.5 released
Post by: SabreOfParadise on October 21, 2009, 09:39:02 AM
Quote from: rob54 on October 19, 2009, 05:27:26 PM
1. When you say install the backup files (~) I don't know which ones they are.

You can see the files which are changed by the Mod in the file modification1.1.x.xml of the Mod:
$sourcedir/ManagePermissions.php
$sourcedir/Post.php
$sourcedir/Subs-Post.php
$languagedir/Post.english.php
$languagedir/ManagePermissions.english.php
As you don't have other languages installed that's it.
You guessed right: You simply have to change the file names and remove the ~. But previously you to move the changed files elsewhere (backup location).
If a Mod doesn't work as expected it is not safe to uninstall it. Therefore you have to restore the previous state by using the backup files. As uninstalling the Mod is now superfluous you only have to delete it.

The problem with the other Mod proves that your problem doesn't have anything to do with both Mods.
Title: Re: Board Notification Mod - 1.1.5 released
Post by: rob54 on October 21, 2009, 12:43:35 PM
OK I did as you suggest in the way you suggested.

After renaming the files, I went to the Package Manager and clicked Delete and there was a warning about might not being able to uninstall. Anyway I went ahead and deleted. The checkbox with no text disappeared from the Permissions view.

Then I re-uploaded the mod and applied it and got the attached screenshot indicating the mod was already installed. I then clicked Install Now. Result, still the same - a checkbox with no text. I got not other error messages during the process apart from it skipping other language installations.

Umm, this mod seemed like a good idea as I said here in this same thread (http://www.simplemachines.org/community/index.php?topic=313867.msg2303516#msg2303516) but I'm not sure now  :(  My forum isn't yet released to any users other than me and test me's so it hasn't had a proper test.

Am I right that without the mod, a user can subscribe to a board, and receive notification of new topics in that board. Then, if the user reads the topic he has had notification on and chooses to reply, and is also set to receive notification of replies (or subscribes separately to the topic) the user will get notification of further replies and new topics in the board without the mod. Or am I just looking for a reason not to use the mod  :P. Or am I just not appreciating or understanding the value of the mod.

Please don't take offence as there is none intended, quite the reverse. Thanks for your time and help and support. Perhaps you (or anyone) can enlighten me more.  :D
Title: Re: Board Notification Mod - 1.1.5 released
Post by: SabreOfParadise on October 22, 2009, 02:49:15 AM
Quote from: rob54 on October 21, 2009, 12:43:35 PM
Umm, this mod seemed like a good idea as I said here in this same thread (http://www.simplemachines.org/community/index.php?topic=313867.msg2303516#msg2303516) but I'm not sure now 

As written previously: As you have the same problem with another Mod I'm pretty sure your problem doesn't have anything to do with the Mod. Either you are doing something wrong or something is wrong on the server or some other local problem.
I never had a problem like you reported and you are the first and only one to report it (and the Mod currently has 738 downloads).
As you have the same problem with two installed Mods I really think this is a general problem of your system and I suggest you post the problem in SMF 1.x Support (http://www.simplemachines.org/community/index.php?board=9.0), too, with a link to
http://www.simplemachines.org/community/index.php?topic=313867.msg2303516#msg2303516

It looks like I cannot help you.
Title: Re: Board Notification Mod - 1.1.5 released
Post by: rob54 on October 22, 2009, 12:30:00 PM
Hmm. OK. Well, I decided to try one more thing - install a second fresh instance of SMF 1.1.10 on the server. Then, before making any changes, I installed your mod to that and once again I have the same problem, the checkbox with no text.

Hmm must be something more general then. I'll try the 1.x support.

Thanks for your time.
Title: Re: Board Notification Mod - 1.1.6 released
Post by: SabreOfParadise on December 02, 2009, 04:58:33 AM
SMF 1.1.6 released. It simply adds support for SMF 1.1.11 (install/uninstall).
Title: Re: Board Notification Mod - 1.1.6 released
Post by: ttuu on December 02, 2009, 05:52:15 AM
have change in code in 1.1.5 to 1.1.6?
Title: Re: Board Notification Mod - 1.1.6 released
Post by: SabreOfParadise on December 02, 2009, 07:04:54 AM
There was no real code change, just added 1.1.11 to the install and uninstall line in the package-info.xml
Title: Re: Board Notification Mod - 1.1.6 released
Post by: rob54 on December 02, 2009, 10:34:25 AM
I tried to install your mod update without success. It listed some errors (see attached) and it recommended I didn't continue. Strangely though the Package Manager listed 1.1.5 as current and 1.1.6 as old (see package list attached).

I can get rid of 1.1.6 even though there is no Uninstall or Install link by clicking Delete. For 1.1.5 (thinking I need to uninstall that then inslatt 1.1.6), there is also no Uninstall link. If I click Delete it warns (see Delete warning attached). If I go to Installed Packages there is an Uninstall link there for 1.1.5 and if that is clicked it warned there is no uninstaller and to contact the mod author.
Title: Re: Board Notification Mod - 1.1.6 released
Post by: SabreOfParadise on December 02, 2009, 10:54:07 AM
You have to uninstall 1.1.5 BEFORE installing 1.1.6 and BEFORE updating to SMF 1.1.11!
If you update to SMF 1.1.11 first you cannot uninstall 1.1.5 anymore. That is exactly why I have released 1.1.6.

I recommend to make backups before EVERY change so that you can go back to the old state in case of errors like these here.

Why did you install 1.1.6 although two file tests failed? Please never do that again!

Do you have a backup?
Title: Re: Board Notification Mod - 1.1.6 released
Post by: rob54 on December 02, 2009, 11:19:45 AM
I understand.

I did update to 1.1.11 before doing anything. Then I saw there was the Board Noficifaction Mod 1.1.6. I downloaded that but did not click the Install button where it listed the errors. But it still appeared on the Package Manager list.

I'll have to hope my hosters have a backup from the day before.
Title: Re: Board Notification Mod - 1.1.6 released
Post by: SabreOfParadise on December 03, 2009, 04:50:27 AM
Quote from: rob54 on December 02, 2009, 11:19:45 AM
I downloaded that but did not click the Install button where it listed the errors. But it still appeared on the Package Manager list.

Then you can savely delete 1.1.6 from the list. But there was no code change anyway as I said.

It seems I have to add an <upgrade></upgrade> section. I have to admit that I didn't know this tag exists.  :-[
I'm currently trying to implement the <upgrade> section but it doesn't work by now. I will update this posting when I have news.

Edit: Fixed, please download the new Board Notification Mod 1.1.6. I have added the <upgrade> section and had to include a dummy modification file because the version only adds support for 1.1.11 but has no real code changes. I have changed the code so that it will support all further 1.1.* (in theory which means if there are no code changes in the changed files).
Title: Re: Board Notification Mod - 1.1.6 released
Post by: rob54 on December 03, 2009, 11:23:52 AM
OK. As it happens, in the meantime, I contacted my hosters who restored from a backup from a few hours before I made the changes. So it reverted to 1.1.10. I was then able to uninstall and delete mod 1.1.5 then upgrade the forum to 1.1.11 then upload and install 1.1.6.

So, just to be clear in my mind, is what I did yesterday as described above, what is now current, or are the changes you made to 1.1.6 different to what I have.
Title: Re: Board Notification Mod - 1.1.6 released
Post by: SabreOfParadise on December 07, 2009, 03:58:21 AM
Quote from: rob54 on December 03, 2009, 11:23:52 AM
or are the changes you made to 1.1.6 different to what I have.

Yes, there are differences: If SMF 1.1.12 will be released you will have to uninstall the old Board Notification Mod 1.1.6 first and install the new one. The new one supports SMF versions until 1.1.99 which means it can be uninstalled there out-of-the-box with the condition that the SMF code which is changed by the Mod is not changed by the new SMF version. Else the uninstall routine cannot find the code changed by the Mod.

I therefore recommend to uninstall the old 1.1.6 and download and install the new one. I'm sorry for the inconvenience.
Title: Re: Board Notification Mod - 1.1.6 released
Post by: rob54 on December 07, 2009, 08:50:06 AM
OK done.
Title: Re: Board Notification Mod - 1.1.6 released
Post by: shumilica on December 10, 2009, 03:01:00 AM
Any chance on making this mod work with RC2? Willing to donate a small amount... maybe i'm not the only one.
Title: Re: Board Notification Mod - 1.1.6 released
Post by: InfoStrides on December 28, 2009, 04:46:37 PM
Thanks for the mod!
Title: Re: Board Notification Mod - 1.1.6 released
Post by: pittu on January 04, 2010, 09:08:38 PM
Excellent mod!! Working like a charm.
Title: Re: Board Notification Mod - 1.1.6 released
Post by: SabreOfParadise on January 11, 2010, 05:21:24 AM
Quote from: shumilica on December 10, 2009, 03:01:00 AM
Any chance on making this mod work with RC2? Willing to donate a small amount... maybe i'm not the only one.

Doesn't look good because I would have to do it in my free time which is booked up currently and for the next weeks.

@infostrides & pittu:
Nice to know that the Mod is useful for some people.   :)
Title: Re: Board Notification Mod - 1.1.6 released
Post by: pittu on January 12, 2010, 11:22:38 AM
I changed the forum charset to UTF-8 from DEFAULT iso-8859-1

I can uninstall from old english files and reinstall on new utf-8 files through package manager?
Title: Re: Board Notification Mod - 1.1.6 released
Post by: pittu on January 14, 2010, 09:26:04 AM
Anybody answer my question please?
Title: Re: Board Notification Mod - 1.1.6 released
Post by: SabreOfParadise on January 18, 2010, 02:05:44 AM
Quote from: pittu on January 14, 2010, 09:26:04 AM
Anybody answer my question please?

I don't know and this is not a MOD specific quesion so I suggest to ask it in the general SMF support (http://www.simplemachines.org/community/index.php?action=collapse;c=3;sa=collapse;#c3) section.
Title: Re: Board Notification Mod - 1.1.6 released
Post by: pittu on February 03, 2010, 08:44:12 AM
This mod works for SMF 2.0 RC2?
Title: Re: Board Notification Mod - 1.1.6 released
Post by: pittu on February 03, 2010, 08:00:32 PM
Anybody using it with SMF 2.0 RC2? Because on mods page in the drop down there is RC2 version to parse.
Title: Re: Board Notification Mod - 1.1.6 released
Post by: SabreOfParadise on February 04, 2010, 02:19:05 AM
Quote from: pittu on February 03, 2010, 08:00:32 PMBecause on mods page in the drop down there is RC2 version to parse.

That's the drop down box for the manual installation instructions (which lists EVERY SMF version!).

This MOD will definately not work with SMF 2!
Title: Re: Board Notification Mod - 1.1.6 released
Post by: pittu on February 05, 2010, 12:01:46 PM
I installed it with SMF 1.1.11

I upgraded SMF to SMF 2.0 RC2 WITHOUT uninstalling the mod.

Now I am not seeing 'uninstall' link in Packages > Browse packages next to this mod. Not sure how to go about uninstalling it. Can you please tell me how to remove it from files?
Title: Re: Board Notification Mod - 1.1.6 released
Post by: pittu on February 05, 2010, 06:36:01 PM
Hi Sabre,

Can you tell me how to uninstall manually?
Title: Re: Board Notification Mod - 1.1.6 released
Post by: pittu on February 05, 2010, 07:57:50 PM
Quote from: shumilica on December 10, 2009, 03:01:00 AM
Any chance on making this mod work with RC2? Willing to donate a small amount... maybe i'm not the only one.

Same here. I can send you $20.00 worth beer :D
Title: Re: Board Notification Mod - 1.1.6 released
Post by: SabreOfParadise on February 08, 2010, 06:08:30 AM
Quote from: pittu on February 05, 2010, 12:01:46 PMI upgraded SMF to SMF 2.0 RC2 WITHOUT uninstalling the mod

Bad idea. The uninstall routine only supports SMF 1.

I would generally recommend to uninstall all Mods before doing such an upgrade or first make sure they work with the new version. It is less work than having to deal with potential problems afterwards.

Quote from: pittu on February 05, 2010, 06:36:01 PM
Can you tell me how to uninstall manually?

On the source code side you can simply take the changed files from the original SMF 2.0 RC2 installation.

After that I think you can simply delete the Mod. If you want to uninstall the database entries use the uninstall_db.php file included in the ZIP file of the Mod.
Title: Re: Board Notification Mod - 1.1.6 released
Post by: WhatsTheRent on February 09, 2010, 06:29:42 PM
Hey, question on the this mod.  Is there a separate control for a user to use to turn this on?  For example, right now there is a "Turn notification on when you post or reply to a topic".  Is this the button that also controls notifications for new topics after this mod is installed?

I'm basically looking for a mod that sends out notifications of new posts to all members, yet allows the member to turn it off but still receive notifications of replies to posts.  Are there separate controls with this mod?  As in "receive notifications of replies to your posts" and also "receive notifications of new topics."

Thanks for the help
Title: Re: Board Notification Mod - 1.1.6 released
Post by: SabreOfParadise on February 10, 2010, 08:18:44 AM
Quote from: WhatsTheRent on February 09, 2010, 06:29:42 PM
Is there a separate control for a user to use to turn this on?

No, only the admin can control the use of the Mod function. The Mod is for the board notification so the settings for the topic notification are irrelevant for it.
Title: Re: Board Notification Mod - 1.1.6 released
Post by: SabreOfParadise on July 01, 2011, 03:13:23 AM
SMF 2 Final is out now and I'm working on a mod version. This may take a while as I'm on vacation next week.
Title: Re: Board Notification Mod - 1.1.6 released
Post by: Richardgm on July 23, 2011, 06:27:17 PM
Quote from: SabreOfParadise on July 01, 2011, 03:13:23 AM
SMF 2 Final is out now and I'm working on a mod version. This may take a while as I'm on vacation next week.

I'm sure there are more persons like myself you didn't come here (prior to now) to say "good work", & "please update".

:)
Title: Re: Board Notification Mod - 1.1.6 released
Post by: Martingonnella on July 29, 2011, 04:38:43 PM
Thanks SabreOfParadise. I've been waiting for something like to come out..When you think this can be done by? Nice work.
Title: Re: Board Notification Mod - 1.1.6 released
Post by: SabreOfParadise on August 03, 2011, 10:33:29 AM
I'm halfway through but pretty busy with other stuff at the moment so I cannot say when I'll be done. I also don't want to rush things and test it a while.
Title: Board Notification Mod - 1.2.0 released
Post by: SabreOfParadise on December 30, 2011, 10:18:17 AM
Finally I've finished the support für SMF 2 and released the version 1.2.0.
Unfortunately I could not reuse the existing French and Spanish translations because the localized files have changed pretty much.

Sorry for the big delay but instead of getting more time I got busier and busier until this week.
Title: Re: Board Notification Mod - 1.1.6 released
Post by: Richardgm on December 30, 2011, 10:46:20 AM
:) Thanks so much for this :)
Title: Re: Board Notification Mod - 1.1.6 released
Post by: Tiny Clanger on January 12, 2012, 07:22:10 AM
Installing version 1.2.0 after TinyPortal, I get:
QuoteFatal error: Function name must be a string in /path/to/TPortal.php on line 3005
Need to comment out the "compability" section at the bottom of TPortal.php.

Top mod!

TC
Title: Re: Board Notification Mod - 1.1.6 released
Post by: SabreOfParadise on January 12, 2012, 07:49:50 AM
Quote from: tiny clanger on January 12, 2012, 07:22:10 AMNeed to comment out the "compability" section at the bottom of
TPortal.php.

Great that you have sorted it out.  I was about to write that I have absolutely no clue.  ;)

Quote from: tiny clanger on January 12, 2012, 07:22:10 AMTop mod!

Thanks a lot.  :)
Title: Re: Board Notification Mod - 1.1.6 released
Post by: eric1234 on January 12, 2012, 11:44:43 AM
Actually this mods notify user through email?
Title: Re: Board Notification Mod - 1.1.6 released
Post by: SabreOfParadise on January 13, 2012, 03:16:06 AM
No, it notifies users via smoke signals.  ;D
Title: Re: Board Notification Mod - 1.1.6 released
Post by: eline on February 27, 2012, 04:00:47 AM
I will try to use this mod as I get emails to reply on some topic which was missed due to many boards :)
Title: Re: Board Notification Mod - 1.2.0 released
Post by: bigjoe11a on March 11, 2012, 07:52:32 AM
I been trying to install this mod, Every time I click the install link. I get this error.

Fatal error: Function name must be a string in /home/frontlin/public_html/df-barracks.com/Sources/TPortal.php on line 3005

Any one have an idea about how to fix this so I can get this mod installed. I run SMF 2.0.2 and Tinyportal 1.105.

Thanks
Joe
Title: Re: Board Notification Mod - 1.2.0 released
Post by: 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?
Title: Re: Board Notification Mod - 1.2.0 released
Post by: SabreOfParadise on March 12, 2012, 11:23:58 AM
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?

Read the mod description?

QuoteChange 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)

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.
Title: Re: Board Notification Mod - 1.2.0 released
Post by: valmiki on May 07, 2012, 05:26:25 AM
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:
QuoteIl template e-mail "notify_boards_body_reply" non può essere trovato.
Translated it should sound more or less like this:
QuoteThe e-mail template "notify_boards_body_reply" could not be found.
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
Title: Re: Board Notification Mod - 1.2.0 released
Post by: SabreOfParadise on May 07, 2012, 05:45:14 AM
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:

<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>
Title: Re: Board Notification Mod - 1.2.1 released
Post by: valmiki on May 11, 2012, 02:57:36 AM
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.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: valmiki on May 11, 2012, 03:04:24 AM
... 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.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: SabreOfParadise on May 11, 2012, 08:05:29 AM
The code I have posted is from my Mod and describes how the package manager should change the SMF code and how these changes can be reverted. So I won't recommend to change anything manually in the SMF code.

Quote from: valmiki on May 11, 2012, 02:57:36 AMThis morning I have changed the admin language to English and tried to write a reply

Are you sure the user you are using also has English as his selected language?

If you are sure please check this:


The text editor should take to this part of the code:

'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}',
),


If this part is not in the file something went wrong during your installation of the Board Notification Mod.
If you can't find this file you don't have the English package installed or maybe a different one like british English or the UTF-8 version.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: valmiki on May 11, 2012, 08:16:40 AM
... well, something went wrong during the installation coz that string ain't there ...  :o

What to do now?

Maybe I just have to uninstall and install again but somehow I fear that might not work ... mh!
Title: Re: Board Notification Mod - 1.2.1 released
Post by: SabreOfParadise on May 11, 2012, 08:48:19 AM
Are you sure your package manager works?
It may be that it cannot modify the files. At least that's what's happening on the Linux server I'm running my main SMF system on. In my Win test system the package manager works so I'm cheating by just copying the changed files from the test system to the main system.  :-[
Title: Re: Board Notification Mod - 1.2.1 released
Post by: valmiki on May 11, 2012, 08:52:58 AM
it seems like it is working coz when it does the checks all works except those for the french and German language.
The server I am working on is Linux so it might as well be what is happening to you that doesn't copy properly the files over.
Should I modify some permissions for files and folders during the installation?
Is there a way to copy things manually?
It feels like I am this close to fix this thing ... thank you!
Title: Re: Board Notification Mod - 1.2.1 released
Post by: SabreOfParadise on May 11, 2012, 09:03:12 AM
The checks are not the problem but the files aren't changed. There is also no error message. The error messages for German and French are because you don't have these languages installed and can therefore be ignored.

To make sure your package isn't you can check the file ManagePermissions.php and search for mark_notify_more. If that is not there I'd say your package manager doesn't work (given your FTP settings are correct). Then your SMF updates will also not work by using the package manager which sucks.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: valmiki on May 11, 2012, 09:14:44 AM
Yeah! I half guessed that those errors were due to the lack of the languages so I just didn't worry but it was better to report since I wasn't 100% sure.
I searched for the file you indicated but I only have ManagePermissions.english.php and the italian file of course ... I guess it is ok, let me know if otherwise. Moreover, I have to say unfortunately that the string you asked to search for isn't present ... :(
So far I didn't have any time to do updates, nor I thought that would be the necessity since I have installed SMF less than 2 months ago. But if what you think is right for my case, I will have more than a problem soon enough.
What to do now?
Title: Re: Board Notification Mod - 1.2.1 released
Post by: valmiki on May 18, 2012, 05:23:11 AM
:(
I tried a couple of things I found around to see if the package would install and start to work correctly but so far I didn't have any luck.
The package is in the folder Packages and SMF says it is installed but the problem still exists: the Mod doesn't work and I also get this ugly message when a reply is created.
Anybody could help me how to figure out this problem?
If I am the only one having this problem there must be a problem with my installation but since I am a newbie I have no idea how to fix it ... :(
Thank you anyway for at least trying...
Title: Re: Board Notification Mod - 1.2.1 released
Post by: Wilo on June 26, 2012, 07:43:57 AM
Hi,

I'm using SMF 2.0.2, trying to add the mod but getting an Error in Package installation error.


The error comes in ./Sources/Post.php

See below, can anyone help?


Thanks


W.


Code: (Find) [Select] (http://forum.foe.co.uk/campaignhubs/index.php?action=admin;area=packages;sa=showoperations;operation_key=16;package=BoardNotificationMod1.2.1.zip;filename=modification2.0.x.xml#)sendmail($rowmember['email_address'], $emaildata['subject'], $emaildata['body'], null, null, false, 3);



Code: (Add After) [Select] (http://forum.foe.co.uk/campaignhubs/index.php?action=admin;area=packages;sa=showoperations;operation_key=16;package=BoardNotificationMod1.2.1.zip;filename=modification2.0.x.xml#)[/size]            $notifiedMembers[] = $rowmember['id_member'];
Title: Re: Board Notification Mod - 1.2.1 released
Post by: Shambles on June 26, 2012, 08:53:41 AM
Quote from: Wilo on June 26, 2012, 07:43:57 AM
I'm using SMF 2.0.2, trying to add the mod but getting an Error in Package installation error.

The error comes in ./Sources/Post.php
If you attach a copy of the Post.php file to your next post here we can have a look at it.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: Wilo on June 26, 2012, 10:38:29 AM
Hi,

Thanks for the fast response.

Please see attached.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: Shambles on June 26, 2012, 01:44:59 PM
Quote from: Wilo on June 26, 2012, 10:38:29 AM
Hi,

Thanks for the fast response.

Please see attached.
Hi, well you didn't need to attach the .php~ file as that is a backup, created by the last mod applied to the post.php file.

Looking at your supplied source file, it appears you have a mailing list mod installed (see here (http://www.simplemachines.org/community/index.php?topic=439568)). That mod has transformed the "search for" string:

sendmail($rowmember['email_address'], $emaildata['subject'], $emaildata['body'], null, null, false, 3);

.. into it's own mailing list version:

(line 2699)
sendmail($rowmember['email_address'], ($modSettings['mailinglist_encodesubject']? '=?UTF-8?B?'.base64_encode($replacements['TOPICSUBJECT']).'?=':$replacements['TOPICSUBJECT']), $replacements['MESSAGE'], un_htmlspecialchars($sendername['real_name']), 't'.$topicData[$key]['topic'], true, 3);

.. which is why this mod won't apply cleanly.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: Wilo on June 28, 2012, 05:53:59 AM
Hi,

Thanks for your help.  I removed the mailing list mod which enabled me to install the Board notification mod. 

Unfortunately a new error appears now when creating new posts

- An error has occurred!  The email template "notify_boards_reply" could not be found.

Any idea why this is happening?  The error goes when i install the board notification mod.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: Shambles on June 28, 2012, 06:23:05 AM
Quote from: Wilo on June 28, 2012, 05:53:59 AM
- An error has occurred!  The email template "notify_boards_reply" could not be found.

Any idea why this is happening?  The error goes when i install the board notification mod.
I guess you mean the error goes when you reinstall the mailing list mod.

Could you possibly try uninstalling that mod [again] then attaching file EmailTemplates.english.php (from the Languages folder) to your next post? Looking at the installation file for the mailing list it might not be completely reverting the enhancements it made to that file.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: Wilo on July 10, 2012, 09:01:14 AM
Hi,

I've installed the mod and noticed it'snot wokring at all now.  The options are in the permissions,

I've attached the EmailTemplates as suggested.

Thanks

W.

Title: Re: Board Notification Mod - 1.2.1 released
Post by: Wilo on July 11, 2012, 05:17:53 AM
Hi,

I've been testing the mod, i may have misunderstood it's usage.

I was under the impression that by clicking notify on a board all posts within that board have notify turned on and any new posts have notification emails sent out.  By clicking unnotify at board level all notifications for new posts, and individual post notifications are turned off.

Is this correct?
Title: Re: Board Notification Mod - 1.2.1 released - not working? Please help.
Post by: Wilo on July 12, 2012, 05:55:21 AM
Hi,

I can't get the Board notification mod working any more.  I've setup a new, clean test instance of SMF with only the Board Notification mod installed.

I've done the following test in the test environment.  Am i correct in thinking if i click notify at board level notifications for topics will be turned on too?

When I turn Notify on at Board level the topics below still show notify.

I've check all the permissions and made sure the test account has the the permissions profile assigned to them

Can anyone explain where I'm going wrong, or if I've misunderstood anything?

Many thanks,

W.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: SabreOfParadise on July 13, 2012, 06:46:07 AM
Strangely enough I didn't get a notification for new postings in this thread since May.

Quote from: valmiki on May 11, 2012, 09:14:44 AM
I have to say unfortunately that the string you asked to search for isn't present ... :(

Then you have a problem with the package manager and I can't help you with that. You have to ask somewhere else in this forum for help. I guess here:
http://www.simplemachines.org/community/index.php?board=147.0

Or you simply make the necessary changes yourself as describes in the mod files. But you need to read the package manager description to make this correctly.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: SabreOfParadise on July 13, 2012, 06:58:37 AM
Quote from: Wilo on July 11, 2012, 05:17:53 AM
I was under the impression that by clicking notify on a board all posts within that board have notify turned on and any new posts have notification emails sent out.  By clicking unnotify at board level all notifications for new posts, and individual post notifications are turned off.

No. It just adds the possibility to monitor a whole board without turning the notifications on for each thread in the board.  The individual notifications still exist. You should use either the notifications on the board or the individual ones but not both with the same user in the same board which would also not really make sense but they are not turned off by the mod as I didn't have the time to make it foolproof. If you use both notification methods I guess you'll also get doubled notifications if you subscribed a board and individual threads in the same board. In my forum I therefore deleted all individual notification settings from previous subcriptions of my own user to have a clean state.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: Wilo on July 16, 2012, 08:12:51 AM
Hi,

QuoteIn my forum I therefore deleted all individual notification settings from previous subcriptions of my own user to have a clean state.

How did you delete all individual notifications?

And...

QuoteStrangely enough I didn't get a notification for new postings in this thread since May.
Quote

Are you saying the mod is not working for you either?  If so can you please advise on how to get the mod working?

Thanks,

W.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: SabreOfParadise on July 16, 2012, 09:12:05 AM
Quote from: Wilo on July 16, 2012, 08:12:51 AM
How did you delete all individual notifications?

Via
Modify profile => Notifications
As an admin you can do that for other users, too.

Quote from: Wilo on July 16, 2012, 08:12:51 AM
Are you saying the mod is not working for you either?  If so can you please advise on how to get the mod working?

No, I was talking about this forum (simplemachines.org) and the notifications for this thread you are currently reading. This has nothing to do with my mod (and seems to work now anyway).
Title: Re: Board Notification Mod - 1.2.1 released
Post by: Wilo on July 16, 2012, 09:50:04 AM
Hi,

Thanks for the clarification.  It was working fine for me in the past.

I have removed all individual notifications from my profile.  I go to a board, click notify, check any topic and the notification status is still off.  This implies the mods not working for my forum correct?

If so can you please advise on the best way to roubleshoot this?

Thanks again for all your help and responses.

W.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: SabreOfParadise on July 16, 2012, 10:21:14 AM
It is called board notification mod. So why are you checking the topic notifications?

To check if it is working:
- Subscribe to a board
- Create a test user
- Make a new topic with the test user

Second test:

- Make a new topic with your own user
- Answer with the test user

If you get an email in both cases the board notification mod is working.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: Wilo on July 16, 2012, 12:58:14 PM
Hi,

Thanks for the tests.  I'm checking for topic notifications because of the following statement in the mods description.

QuoteUser will get notified of new topics and new posts if subscribed to the corresponding board.

Forgive me, i'm now very confused.  Running the tests with, and without the mod has the same results.

Thanks again for your help with this. 
Title: Re: Board Notification Mod - 1.2.1 released
Post by: SabreOfParadise on July 17, 2012, 02:57:25 AM
The statement you are citing doesn't mention topic subscriptions. Perhaps the word subscription will make it more clear. You can subscribe to a board or to a topic in an unmodded SMF. When you are subscribed to a board you'll get just get notified of new topic not of new posts in existing topics. The board notification changes just that you'll also get notified of new posts in existing topics when you are subscribed to the board. Like the unmodded SMF the board and topic subscriptions are independent. So if you are subscribing to the board you are not subscribing to all topics. That's why you will not see your subscription in any of the topics within the board although you should get notified like you are subscribed to all topics plus when a new topic is created.
That's pretty much what you can already read in the first posting here, just using different words.

Which same results are you getting? If you don't get an email in neither case even the standard board notification for new topics doesn't work.
Check if the topic notifications are working and I suggest to use a different board for that test. Create a new topic there, make sure you are subscribed and add a posting there with the test user.
If you don't get a notification then, too, your email configuration is wrong.
If you get a notification I guess you've messed up something in the code. That would raise further questions: What exact SMF version are you using? How did you install the mod? If with the package manager: Did you get any errors? Do you have any other mods installed? If you still have a copy of your unmodded SMF: Check the files changed by the mod (you can see them in the package manager) with a diff tool like WinMerge in Windows or diff in Linux for differences with the unmodded SMF. If the files are identical you have issues with your package manager and the board notification mod is not correctly installed. If the files are different it's best to pack the modified files in a ZIP file and attach it here so I can have a look at them.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: valmiki on August 04, 2012, 04:43:15 AM
QuoteHi everyone!!!
I have finally got some help from a very nice person that solved this problem (at least in my case).
I hope that someone can benefit from my experience.

I am still not sure whether my problem was due to a Server Settings issue but here is what I have done to solve my case:
After the installation, I have of course changed the permissions according to the Mod.

At this point every time that I would reply to any Topic this error always appeared:
The email template "notify_boards_body_reply" could not be found.
Notification wouldn't be delivered, Post was posted but the user would be confused by the message and keep wondering whether the Post was posted or not.

Since I have Italian language enabled I had to do the same modification on two files: EmailTemplates.english.php and EmailTemplates.italian-utf8.php

The modification is the following ... I have copied the following code contained in the above files:

Quote'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}',
),


Then pasted it right after and then rename the class
notify_boards_body_reply
into
notify_boards_body_reply_reply

When I did this the error message stopped appearing and the Reply was notified to the users registered to that Board.

I hope this is going to help people having this same problem.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: SabreOfParadise on August 07, 2012, 03:50:20 AM
Quote from: valmiki on August 04, 2012, 04:43:15 AM
I hope this is going to help people having this same problem.

This happens only when you use a language that is not supported by the mod. Like italian.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: valmiki on August 07, 2012, 03:55:47 AM
Thank you very much for the reply. I only wish I knew it earlier.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: SabreOfParadise on August 07, 2012, 03:58:56 AM
I thought this was clear as I mentioned the supported languages in the description of the mod.

When I mention that something is supported logic says there may be problems if I use something that is not supported.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: valmiki on August 07, 2012, 04:03:03 AM
Well, then I apologize, totally my fault.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: BFriendly on February 07, 2013, 03:29:17 PM
SabreOfParadise,

I think it would be useful for you to provide navigation instructions to the new settings & features your Mod adds to the software.  I'm rather new, and have looked all over my site and cannot find them, found the "release page" where I downloaded the Mod and read the comments and could not find them, and now I'm scanning this thread, and have not found them yet, if they exist.

The description "sort of" sounds like the Mod adds capability but doesn't allow you to enable/disable etc... it?

In my case, my new forum isn't very well populated and I haven't the time to create new content, etc... but I want to make sure to give an immediate response if/when a New User (or any other Member) registers, posts, etc..  hence I want the instant email notification when anyone does anything on the board (literally).  Also so I can jump right on top of any spam that gets through the filter, etc...

I apologize if this information is "somewhere", but I feel like I could look for the next 3 days and not find it.

Any help?  Thanks in advance.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: SabreOfParadise on February 12, 2013, 03:24:12 AM
Well, there is a small screenshot on the mod page: http://custom.simplemachines.org/mods/index.php?mod=1861
I cannot post it here because the file extension is not included.
http://custom.simplemachines.org/mods/index.php?action=download;mod=1861;id=101091;image (http://custom.simplemachines.org/mods/index.php?action=download;mod=1861;id=101091;image)

The screenshot is from SMF 1 but it looks similar in SMF 2. So the mod adds the permission ,Request notification on new replies for subscribed boards' in the notifications section.
You can find these permissions in SMF 2 when you click on Admin and then Permissions and then select a user group to modify.

Edit: It is also described on the mod page:

QuoteNotes:
- In the version 1.0 state this mod should only be used on small, closed forums to avoid email flodding!
This issue is targeted with version 1.1 of the mod. It adds a new permission 'Request notification on new replies for subscribed boards'
to restrict the use of the mod to certain user groups. Per default the mod is now only active for admins and moderators.

Normally an admin should now where to find the group permissions.  :P
Title: Re: Board Notification Mod - 1.2.1 released
Post by: IngeJones on February 19, 2013, 04:56:20 AM
Is this likely to be compatible with 2.0.4?  I can see it only claims to be up to 2.0.2 but the two later versions were just security fixes as I understand it.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: SabreOfParadise on February 19, 2013, 06:14:29 AM
I'm actually running it with SMF 2.0.4 so that should be no problem. Will update the mod page.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: IngeJones on February 19, 2013, 08:16:08 AM
Thank you :)
Title: Re: Board Notification Mod - 1.2.1 released
Post by: PenelopeQ on June 26, 2013, 12:01:36 PM
I just added a few new mods and am now getting the same error message as was described here in Reply #111:
QuoteThe email template "notify_boards_once_reply" could not be found.
It shows up when replying to a thread, but not every time. It appears to be isolated to our moderator's only board—which is the only place I recommended they use this feature.

Here's a list of my mods, the three new ones are in blue (added 22 and 23 June)
Mod Name Version
Register At Post View v.1.1 1.1
Board Notification Mod 1.2.1
Personal Messages to Membergroups 1.4.3
Drafts 1.1.1
Bad Behavior mod 1.5.4
Join Reason 1.3
Default_Membergroup 1.0.1
Gender on Memberlist 1.5
Anti-Spam Links 1.0.1
Stop Spammer 2.3.9
SMF 2.0.4 Update 1
Topic & Board Note 1.0.3
SMF 2.0.2 Update 1
Last Active On MemberList 1.4
Move Old Topics 1.3.8
SMF 2.0.3 Update 1
Since I am not translating to an unsupported language, I assume that the changes Valmiki described in Reply 124 do not apply to me.
I have attached the file EmailTemplates.english.php as was requested in Reply #112. I found this file in myforumfolder/Themes/core, but I use the Curved Life theme which is a different folder, could that be part of the problem?
Title: Re: Board Notification Mod - 1.2.1 released
Post by: TheListener on June 26, 2013, 01:34:04 PM
Are there any other error messages in the forum error log?

Your bad behaviour mod is outdated the current version is 1.5.16   ???
Title: Re: Board Notification Mod - 1.2.1 released
Post by: PenelopeQ on June 26, 2013, 02:29:43 PM
There are not other errors--other than the usual incorrect passwords.
Do I need to update bad behavior to fix this--could that be part of the problem, or can I get this resolved first?
I will update it, but I'm tending to several things at once and would like it if I don't have to add one more.

I forgot to say that this error really does nothing other than shows us the message. The posts/replies still go through without a problem. It just confuses people because they get this error which makes it look like their submission didn't go through, but if they just go to the menu and click on the board, they can see it worked.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: TheListener on June 26, 2013, 06:15:47 PM
Penelope I'll mention this to one of the teamies whom ( I hope) knows more about this than I do.

Regarding the bad behaviour mod I would say get it updated as soon as this is corrected.

:)
Title: Re: Board Notification Mod - 1.2.1 released
Post by: Colin on June 26, 2013, 07:01:28 PM
If you make another board, that has the same permissions as your moderator only board, do you still have the same issue?
Title: Re: Board Notification Mod - 1.2.1 released
Post by: PenelopeQ on June 26, 2013, 07:43:24 PM
I just tested using my Parked thread board--same permissions.
I tested by using two accounts and I started a thread with each account and replied from each and did not get the error. I set up notifications on that board after starting the first test topic.

No error messages on that board. But then I haven;t got the error every time I've posted on the other board--maybe 80% though.

Probably coincidence, but still related. Notifications have never worked for me on my board--not in my admin account. I tested in my test account today and got notified for the first time in 3 years. Irony is that both accounts have the same email. I tried to set up my admin account with the same settings as my test and still not notifications. But this is just my account and it's been going on for years, whereas the error message has gone to several people, but only on that one board. So I don't think there is a direct relationship and I was planning to post on the main board about my personal notification issue once this is resolved.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: oldpilot on June 27, 2013, 12:02:39 PM
FTR I get the error - every time I post or modify on the mod board only.
Do not get it on the community board.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: SabreOfParadise on July 01, 2013, 02:58:22 AM
Funny that these problems only pop up in summer time. ;)

Quote from: PenelopeQ on June 26, 2013, 12:01:36 PMSince I am not translating to an unsupported language, I assume that the changes Valmiki described in Reply 124 do not apply to me.

What languages do you have installed? If you are using english-utf8 for example that could be the cause.

Quote from: PenelopeQ on June 26, 2013, 12:01:36 PMI have attached the file EmailTemplates.english.php as was requested in Reply #112. I found this file in myforumfolder/Themes/core, but I use the Curved Life theme which is a different folder, could that be part of the problem?

The file includes the necessary notify_boards_once_reply mail template so it's not the file that is causing the problem. Does the Curved Life theme override the file EmailTemplates.english.php?

Quote from: oldpilot on June 27, 2013, 12:02:39 PM
FTR I get the error - every time I post or modify on the mod board only.
Do not get it on the community board.

Could you be a little more specific? Do you mean the
The email template "notify_boards_once_reply" could not be found.
error?
If yes: What languages have you installed?
Title: Re: Board Notification Mod - 1.2.1 released
Post by: PenelopeQ on July 01, 2013, 12:04:31 PM
Quote from: SabreOfParadise on July 01, 2013, 02:58:22 AM
What languages do you have installed? If you are using english-utf8 for example that could be the cause.
I do see english-utf8 in my default themes folder, core themes folder. Curvedlife and curvemulticolor do not have a language folder. I said that I use curvedlife, but I made a mistake, I use curvemulticolor.

Quote from: SabreOfParadise on July 01, 2013, 02:58:22 AMDoes the Curved Life theme override the file EmailTemplates.english.php?
I don't know if my theme overrides, how can I tell?

Quote from: SabreOfParadise on July 01, 2013, 02:58:22 AM
Quote from: oldpilot on June 27, 2013, 12:02:39 PMFTR I get the error - every time I post or modify on the mod board only.
Do not get it on the community board.

Could you be a little more specific? Do you mean the
The email template "notify_boards_once_reply" could not be found.
error?
If yes: What languages have you installed?
OldPilot is the lead moderator at my board, so he was letting you know that he is also getting the error and he gets it EVERY time he posts on that particular board. It was not every time for me at first, but has been every time lately.
Title: Re: Board Notification Mod - 1.2.1 released
Post by: SabreOfParadise on July 02, 2013, 03:51:41 AM
Quote from: PenelopeQ on July 01, 2013, 12:04:31 PMI do see english-utf8 in my default themes folder, core themes folder. Curvedlife and curvemulticolor do not have a language folder. I said that I use curvedlife, but I made a mistake, I use curvemulticolor.

Quote from: PenelopeQ on July 01, 2013, 12:04:31 PMI don't know if my theme overrides, how can I tell?

The theme would have an EmailTemplates.english.php in the languages folder but as the theme doesn't even have this folder it can't override the template.

I guess the language of your user is english-utf8 then, too. Can you try to use the normal English instead and see if this helps? If yes, the cause really is the language. I have released version 1.2.2 to support english-utf8 so in this case please install that version and tell me if this solves the problem: http://custom.simplemachines.org/mods/index.php?mod=1861
Title: Re: Board Notification Mod - 1.2.2 released
Post by: PenelopeQ on July 02, 2013, 11:51:45 AM
Quote from: SabreOfParadise on July 02, 2013, 03:51:41 AMI have released version 1.2.2 to support english-utf8 so in this case please install that version and tell me if this solves the problem: http://custom.simplemachines.org/mods/index.php?mod=1861
WOOHOO YAY!
I upgraded to the new one and it works--I've posted three times in that board and no error message.
Awesome. Thanks
Title: Re: Board Notification Mod - 1.2.2 released
Post by: SabreOfParadise on July 03, 2013, 02:17:41 AM
You're welcome. :)
Title: Re: Board Notification Mod - 1.2.2 released
Post by: oldpilot on July 03, 2013, 02:59:09 PM
I am good too - Thanks Sabre!! :) :) :)
Title: Re: Board Notification Mod - 1.2.2 released
Post by: rob54 on September 30, 2013, 07:00:18 PM
Hi,
I had this mod when I had 1.1.1x. I had problems with the notification text not showing by the tickbox. Never did get to the bottom of it. Anyhow I have now upgraded to 2.0.5 and of course none of the old mods worked and were deleted. So I just wondered if I might install it again, if 2.0.5 is supported. Can you just tell me which file to use please for the install?
Title: Re: Board Notification Mod - 1.2.2 released
Post by: SabreOfParadise on October 01, 2013, 04:33:42 AM
I'm running it myself with 2.0.5. Updated the OP and the mod page accordingly and and deleted the old SMF 1 only ZIP to avoid confusion as the version 1.2.2 contains the version for both SMF 1 & 2.
Title: Re: Board Notification Mod - 1.2.2 released
Post by: gothbert on November 04, 2013, 07:54:41 AM
Hi,

we run a forum with many boards and most users subscribed to several boards. We therefore thought it useful to include the board name in the subject of the notification e-mails sent, like "[OurForum - BoardName] The title of the new topic". We modified the mod ourselves to enable this but we consider a local fork problematic when it comes to upgrading the SMF software or the mod.

We wonder if there are other forum admins who are interested in aforementioned feature and would like to have it included in the official mod.

Thanks for your comments.

Kind regards
Boris
Title: Re: Board Notification Mod - 1.2.2 released
Post by: SabreOfParadise on November 04, 2013, 10:14:05 AM
As said per PM: In my own forum the board names are too long to be used in the subject so I would only implement this with a switch in the settings to switch the board name in the subject on or off. Therefore there has to be a definite demand for the board name in the subject as I don't have a motivation to implement this for myself.

I also don't see a real reason for this. When I get emails the topic title is much more important than the name of the corresponding board. Boards in my eyes are primarily useful for the search function and if you decide to only check out parts of a forum.
Of course that means that the admins and mods have to establish that topic titles are meaningful and not something like 'Need help', 'Messed up', 'Argh!' or similar.
Title: Re: Board Notification Mod - 1.2.2 released
Post by: ProjectAlice on November 06, 2013, 09:19:36 PM
Hello Sabre! This is my first try at a mod on SMF. I've been searching for an answer but I think my question is so noobish that it hasn't been posted.  :-/ Anyhow, I have downloaded the BoardNotificationMod zip file. I extracted it on my computer, and now I don't know whether to upload the contents of the folder, or use the manual installation instructions. Perhaps I've missed something obvious. If so, I apologize for bothering you. I'm just new to this, and I don't want to break my site. Any help you can provide is very appreciated!

Heather
Title: Re: Board Notification Mod - 1.2.2 released
Post by: Arantor on November 06, 2013, 09:22:29 PM
You don't need to extract it on your computer. Upload it to Admin > Main > Packages (or Admin > Main > Package Manager, I forget exactly what it's called these days) and SMF should be able to do handle it for you.
Title: Re: Board Notification Mod - 1.2.2 released
Post by: SabreOfParadise on November 07, 2013, 08:45:17 AM
Yep, it's Admin => Package Manager in SMF 2.

You'll only need to do it manually if the Package Manager doesn't work for some reason like problems with the FTP server on Unix or something like that. In that case make the changes to the files mentioned in modification2.0.x.xml manually and call install_db.php to install the database structure. This will make updates a little harder as you have to check whether one of the changed files is updated and then merge the updates into it.
Title: Re: Board Notification Mod - 1.2.2 released
Post by: ProjectAlice on November 07, 2013, 12:32:47 PM
You guys are wonderful! Thank you very much for your help. Sorry for being such a noob. I appreciate your time and assistance!!  :)
Title: Re: Board Notification Mod - 1.2.2 released
Post by: OCJ on June 22, 2015, 08:40:07 AM
I'm getting the same error using  other language on the site - Japanese.

When you make a post with that language set it does actually save it but gives the error and a back link. Not really optimal if users keep seeing error message when they reply.


Quoteエラー発生!
The email template "notify_boards_reply" could not be found.


Latest SMF version
No errors on install

Default language is English    ISO-8859-1
Also Japanese    UTF-8
Forum database is converted to utf-8


Is there no way to make it fall back to use the English files?
To fix it do I need to make copies of the mod files saved as Japanese versions? If so which files?
Andy
Title: Re: Board Notification Mod - 1.2.2 released
Post by: SabreOfParadise on June 29, 2015, 05:45:44 AM
Inside the ZIP file there is a modification2.0.xml for SMF 2. There the language specific section begins with:
<!-- *** Language specific files *** -->

Then you can just copy the section of one language and translate them to Japanese.

I don't know of a fallback solution, but that's a general question, not specific to my Mod.
Title: Re: Board Notification Mod - 1.2.2 released
Post by: David_SWS on July 02, 2015, 03:19:47 AM
Hi,
I'm getting a strange operation from the Mod and can't work it out. Looking for some help on what might be wrong.

I have set up:
* A Testing board.
* A Test group with the new permission "Request notification on new replies for subscribed boards"
* The Admin group also has this by default.
* UserA who is a member of the Admin and Test group.
* UserB who is just a member of the Test group.
* UserA has Notify enabled for the Test board.
* UserA has notifcation regularity set to Immediate
* UserA has notification occurrence set to "On Replies and Moderation".

Now:
* UserA creates a new Topic(post) in the Testing board
* UserB gets an email notification.

* UserA replies to the original post.
* UserB does NOT get an email notifcation.
Hmmmm

At one point we disabled Notify on the Testing board and re-enabled it. Then a few emails came flying through. But now nothing.

Any suggestions on what to look for?
Title: Re: Board Notification Mod - 1.2.2 released
Post by: SabreOfParadise on July 02, 2015, 03:26:31 AM
Maybe the MOD isn't installed correctly or completely. Can you please post the changed files?
- $sourcedir/ManagePermissions.php
- $sourcedir/Post.php

Language specific (might be a different language, currently supported are: English, English UTF8, German, German UTF8, French)
- $languagedir/EmailTemplates.english.php
- $languagedir/ManagePermissions.english.php
Title: Re: Board Notification Mod - 1.2.2 released
Post by: David_SWS on July 02, 2015, 03:42:32 AM
Hi,

Here are the files. I only modified 2 files. Post.php and Subs-Post.php

In Post.php, I changed the function notifyMembersBoard and updated the query to add one of our own field called mem.ActiveMembersZone
Same goes with Subs-Post.php sendNotifications function.

Please note that same thing happens without my code changes.
Title: Re: Board Notification Mod - 1.2.2 released
Post by: SabreOfParadise on July 02, 2015, 03:56:04 AM
I meant the files changed by this MOD (see list above).
Title: Re: Board Notification Mod - 1.2.2 released
Post by: David_SWS on July 02, 2015, 07:36:59 PM
Sorry, to be clarify, those are the files that have been changed by the MOD.

I just wanted to also highlight that I added some extra conditions to the main DB Query in post.php and subs-post.php. These should not affect the MOD as they are in a different area and were made after we discovered the strange MOD operation.

Thanks.
Title: Re: Board Notification Mod - 1.2.2 released
Post by: SabreOfParadise on July 03, 2015, 04:20:33 AM
The files are looking OK.

Just to clarify:

QuoteUserA has Notify enabled for the Test board.
I guess UserB has this, too?

Did UserB look at the new topic before the reply?
When I tested the scenario on my test system this was needed to get a reply.
Title: Re: Board Notification Mod - 1.2.2 released
Post by: David_SWS on July 07, 2015, 02:35:52 AM
Hi,
I finally tracked the problem down to inherited permissions for the test board and member group/profile etc. I manage to get the test board and notifications working.

But I came across one more issue when testing on the main forum. When creating a reply to or editing an old post and saving the change it gave this error:
    "The email template "notify_boards_reply" could not be found."

Could this be a permissions thing. I'm not sure why it's even sending an email for a change.

Thanks,
David
Title: Re: Board Notification Mod - 1.2.2 released
Post by: SabreOfParadise on July 07, 2015, 03:03:28 AM
Wrong language?
Title: Re: Board Notification Mod - 1.2.2 released
Post by: David_SWS on July 08, 2015, 01:18:53 AM
Yes the language setting had been changed during testing. Age old lesson"Only change one thing at a time!".

Thanks!



Title: Re: Board Notification Mod - 1.2.2 released
Post by: OCJ on July 17, 2015, 01:44:14 AM
Thanks, I will give that a try.

http://www.simplemachines.org/community/index.php?topic=313867.msg3821413#msg3821413


QuoteInside the ZIP file there is a modification2.0.xml for SMF 2. There the language specific section begins with:
Code: [Select]

   <!-- *** Language specific files *** -->


Then you can just copy the section of one language and translate them to Japanese.

I don't know of a fallback solution, but that's a general question, not specific to my Mod.
Title: New Reply vs. New Modification
Post by: debiwebi on October 14, 2015, 06:15:22 PM
I've searched this topic to see if anyone has mentioned this before, had no luck, so here goes:

I've been using the Mod 1.2.2 on my forum which is running on 2.0.10 and it's been working great! It's very useful, thanks.

What I'd like, though, is to have the notifying emails say in the subject: 'New Modification: {TOPICSUBJECT}' instead of "New Reply" which is misleading. (Same goes in the 'body' as well). Also, where it says "You can see it at {TOPICLINK}" it would be infinitely more useful to have it actually link to the modified message.

Has anyone ever requested this before?

If you don't plan to do this in the future, is this something I can change myself in modification2.0.x.xml? I'm not a coder or anything even close, but can usually MacGyver my way around stuff and not break things too badly.  O:)

Would I replace TOPICLINK with MESSAGELINK ?
Title: Re: Board Notification Mod - 1.2.2 released
Post by: debiwebi on October 14, 2015, 08:08:04 PM
Dang, I was going to edit my previous post and see I've run out of editing time. Time to make a comment: It sure would be nice to be able to edit my own posts.

Anyway, in examining the forum setup it looks like the file that inserts the text into the emails is EmailTemplates.english.php. Which I'm thinking may not be so easy to change with respect to the Board Notification emails, since they may also be used for general post notices? I'll be patient though and hope for a solution.  :)

Title: Re: Board Notification Mod - 1.2.2 released
Post by: SabreOfParadise on October 15, 2015, 04:26:21 AM
There is no MESSAGELINK in the code but this is already being done by the ".new#new" suffix.

The "modification" label would be wrong since most of the time these kind of emails are about replies not modified posts.

So to make this work you would at first need to check whether the changed thing was a new reply or a modification which would require a bit of programming effort not just rewriting some text.
Also this has nothing to do with the mod since it is the standard behavior to not distinguish between replies and modifications.
Title: Re: Board Notification Mod - 1.2.2 released
Post by: debiwebi on October 15, 2015, 11:56:11 AM
Okay, thank you, I get it.  :)