Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: garybeck on May 28, 2004, 09:35:54 AM

Title: Notifications not working?
Post by: garybeck on May 28, 2004, 09:35:54 AM
Hi,
I have a board where this box is checked:

Notify on Announcements
Sends an email to members when new topics are posted.

It doesn't seem to be working.  How can I check that everything is set up correctly in regards to this?

Thanks
Gary
Title: Re: Notifications not working?
Post by: [Unknown] on May 29, 2004, 08:46:20 PM
Are you sure emailing is set up properly?

Have you set the related settings in Edit Features and Options?  Can it send other emails?

-[Unknown]
Title: Re: Notifications not working?
Post by: itomic on June 22, 2004, 08:28:13 AM
I have the same problem using  SMF 1.0 Beta 5 Public.

- Yes, my board can send other emails (e.g. email all members)
- Yes, as far as I can tell, I have set the related settings in Edit Features and Options - eg. mail option set to sendmail.

Any other tests, suggestions? It's probably me - I only installed SMF yesterday and so far VERY impressed. :-)
Title: Re: Notifications not working?
Post by: [Unknown] on June 22, 2004, 04:55:00 PM
Remember that it won't send notifications to YOU when YOU reply.  Obviously you know about the reply if you made it ;).

-[Unknown]
Title: Re: Notifications not working?
Post by: itomic on June 23, 2004, 07:30:47 AM
Quote from: [Unknown] on June 22, 2004, 04:55:00 PM
Remember that it won't send notifications to YOU when YOU reply.  Obviously you know about the reply if you made it ;).

No probs.

The issue as I understand it is not about replies - it's about (not) auto-emailing all members when a new topic is posted by any member. As admin of my own board I've also got a standard registered members account, and when a new topic is being posted by myself (either as admin or a member) or anyone else, no-one is being auto-notified.
Title: Re: Notifications not working?
Post by: [Unknown] on June 24, 2004, 12:46:02 AM
Do you have any access to your mail logs or anything?  Perhaps the server is not sending the messages for some reason?

-[Unknown]
Title: Re: Notifications not working?
Post by: itomic on June 24, 2004, 06:30:20 AM
Quote from: [Unknown] on June 24, 2004, 12:46:02 AM
Do you have any access to your mail logs or anything?  Perhaps the server is not sending the messages for some reason?

-[Unknown]

Nothing in the mail queue on the server right now... will be able to gain access to the mail logs tomorrow and will let you know.

That said, surely the same email mechanism that allows me as administrator to email all members (which works fine) is the one that should be emailing all members when a new topic is posted? If this is the case, then I don't expect to see much in the mail logs, but I'll reserve judgement on that :-)
Title: Re: Notifications not working?
Post by: [Unknown] on June 24, 2004, 05:48:01 PM
True, but the message is different.  It shouldn't matter, but we can't know until we see, huh?

Do you get notifications for this topic? (assuming you have them on...)

-[Unknown]
Title: Re: Notifications not working?
Post by: itomic on June 24, 2004, 08:18:51 PM
Quote from: [Unknown] on June 24, 2004, 05:48:01 PM
Do you get notifications for this topic? (assuming you have them on...)

Yup, no problem, and I get notifications normally through my own forum board when someone replies to a post that I have made.
Title: Re: Notifications not working?
Post by: [Unknown] on June 25, 2004, 03:50:27 AM
Sorry, I admit I was misunderstanding you a bit.  Reading back, I can't understand why I did.... sorry.

Hmm... okay... can I have a test account on your forum, at all? (I may want you to do some test posting, etc.)

Is this happening when they have requested notification from the board?  Or is it with boards you have set as announcement boards?

-[Unknown]
Title: Re: Notifications not working?
Post by: itomic on June 25, 2004, 08:26:53 PM
PM sent. Thanks.
Title: Re: Notifications not working?
Post by: itomic on June 26, 2004, 12:23:07 AM
Something else to note: even though as administrator when setting up a new board I'm checking the box that says "Notify on Announcements", I notice on the board itself (now logged in as a normal member), the button 'NOTIFY' is present in between 'MARK AS READ' and 'NEW TOPIC'. Clicking on it pops up a javascript dialogue box that asks 'Are you sure you wish to enable notification of new topics of this board?'.

My point: if the 'Notfify on Announcements' checkbox was working as intended, then I guess that the 'NOTIFY' button should either not be there, or disabled, or a different message should appear when the button is clicked on, eg. 'Notification of new topics already enabled by administrator'.

Don't know if that helps... :-)
Title: Re: Notifications not working?
Post by: itomic on July 03, 2004, 09:35:05 PM
No resolution here yet - anyone?
Title: Re: Notifications not working?
Post by: Yonkey on July 05, 2004, 12:15:03 AM
I'm experiencing the same problem.

As Administrator, if I post in a board with "Notification on Announcements" enabled on the Modify Boards screen, then all my users receive the e-mail.

However, when I post as a regular user, no one receives any notifications.  I should mention that I do not use pure regular accounts.  Each member belongs to a member group, but Administrator and Global Moderator belong to secondary groups as well as the primary groups.

I'm also baffled by the Notify button appearing in a forum's message index when you set a board to have "Noficiation on Announcements" enabled and have disabled "Allow users to disable announcements".  ???
Title: Re: Notifications not working?
Post by: [Unknown] on July 05, 2004, 03:55:46 AM
That actually will change.. currently, you must be an administrator to send an email announcement/post.

Compuart proposed a system to change this, and may soon implement it.

-[Unknown]
Title: Re: Notifications not working?
Post by: itomic on July 05, 2004, 08:00:44 AM
Sorry to labour the point, Unknown, but have you got anything to add re: my problem? Did you get my PM with passwords and the like?

Just to review/refresh: When any member makes a new post, then I want all members to be automatically emailed to alert them to this, and I believe I've configured my forum to achieve this. I believe this functionality should work, but currently it doesn't, so really all I'm looking for is advice to say that my understanding is correct (that this should work), and whether it works for anyone else (so that I can dream of it working for me!).

Thanks! :-)


Title: Re: Notifications not working?
Post by: Yonkey on July 05, 2004, 10:57:47 AM
Quote from: itomic on July 05, 2004, 08:00:44 AM
Just to review/refresh: When any member makes a new post, then I want all members to be automatically emailed to alert them to this, and I believe I've configured my forum to achieve this. I believe this functionality should work, but currently it doesn't, so really all I'm looking for is advice to say that my understanding is correct (that this should work), and whether it works for anyone else (so that I can dream of it working for me!).

Thanks! :-)

This is the exact same thing I'm trying to achieve.  However, I've only seen it send out a notification to all members when I post as an Administrator.

According to [Unknown], it is currently only possible to send out e-mail announcements as an Administrator, meaning as of Beta 5 all non-Administrators are unable to send out e-mail announcements when posting in Notification Boards.  :)
Title: Re: Notifications not working?
Post by: [Unknown] on July 05, 2004, 11:34:12 AM
If you don't have a lot of members, please just ask them all to request notifications...

I got even busier really fast, so I don't have time to change this for you right now.

-[Unknown]
Title: Re: Notifications not working?
Post by: Yonkey on July 05, 2004, 01:25:03 PM
I have about 40, but it's alright since most of them haven't noticed yet that I'm the only one that can post announcements.  ;D
Title: Re: Notifications not working?
Post by: itomic on July 19, 2004, 05:18:56 AM
Quote from: [Unknown] on July 05, 2004, 11:34:12 AM
If you don't have a lot of members, please just ask them all to request notifications...

I got even busier really fast, so I don't have time to change this for you right now.

-[Unknown]

If I become a charter member
1) Is this notification problem fixed in the latest version of smf? It's essential that all members receive an auto-notification when any member starts a new thread with a new post.
2) If 'no' to point 1), then does charter membership mean that someone will fix the bug just for me? :-)

Thanks!
Title: Re: Notifications not working?
Post by: andrea on July 19, 2004, 07:53:33 AM
Quote from: itomic on July 19, 2004, 05:18:56 AM
If I become a charter member
1) Is this notification problem fixed in the latest version of smf? It's essential that all members receive an auto-notification when any member starts a new thread with a new post.
2) If 'no' to point 1), then does charter membership mean that someone will fix the bug just for me? :-)

Not sure if the charter version beta 6 would work different wrt this issue.

Maybe this topic helps:
http://www.simplemachines.org/community/index.php?topic=13861.0
Title: Re: Notifications not working?
Post by: itomic on July 19, 2004, 09:15:55 AM
Thanks for your suggestion, andrea.

My smf config was set to send emails by sendmail. I just changed it to send by smtp and then made a new test post, but no luck - no members were auto-notified about the new post :-(
Title: Re: Notifications not working?
Post by: [Unknown] on August 01, 2004, 04:12:50 AM
Currently, it won't send unless they all have permission to do so.  Giving them this permission would give them other permissions currently - and this has not yet been changed.

Sorry.

-[Unknown]
Title: Re: Notifications not working?
Post by: itomic on August 12, 2004, 10:07:50 AM
Looks like rc1 has fixed my 'notify to all on first post' problem. Hooray! Thanks SMF.
Title: Re: Notifications not working?
Post by: Yonkey on August 12, 2004, 10:26:44 AM
Mine too!  Thanks Unknown!  :D
Title: Re: Notifications not working?
Post by: itomic on November 07, 2004, 08:54:10 AM
Oh-oh....

Looks like the option to check 'notify to all on first post' when adding a new board has been dropped from RC2.

Is this just me having a late night (and forgetting what to do / where to go to enable this), or is this for real?

Thanks. Really love this feature. Hoping it's just me...  :D
Title: Re: Notifications not working?
Post by: Grudge on November 07, 2004, 09:57:40 AM
It's now a permission. If you have permission to "announce" topics (you will as admin for sure), then a checkbox is in the "additional options" bit of the post screen. Check it and that will announce it. Means you no longer require "annoucement boards"
Title: Re: Notifications not working?
Post by: itomic on November 07, 2004, 05:08:08 PM
Quote from: Grudge on November 07, 2004, 09:57:40 AM
It's now a permission. If you have permission to "announce" topics (you will as admin for sure), then a checkbox is in the "additional options" bit of the post screen. Check it and that will announce it. Means you no longer require "annoucement boards"

Phew - glad it's still in there. :-)

I've enabled it now for a membergroup - but I can't see where it's possible to make 'on' the default option for this permission. When any member posts a new topic I would like all members to receive a notification by default. If you don't ask...

Thanks again for your help - on a Sunday too!
Title: Re: Notifications not working?
Post by: itomic on November 11, 2004, 08:30:44 AM
Is there a code fix that will allow me to set 'Announce Topic' to 'on' by default in the 'Additional options' section of a new post (for all membergroups with permissions to make announcements)?

Here's hoping.

Thanks.
Title: Re: Notifications not working?
Post by: [Unknown] on November 20, 2004, 09:03:03 PM
For just that, in Themes/yourtheme/Post.template.php:
<input type="checkbox" name="announce_topic" id="check_announce" value="1" class="check" />

Replace with:
<input type="checkbox" name="announce_topic" id="check_announce" value="1" checked="checked" class="check" />

This isn't a "code fix", it's a simple change.

If you're wanting to send things to everyone always, like some do for some reason, find, Sources/Subs-Post.php:

$members = db_query("
SELECT
mem.ID_MEMBER, mem.emailAddress, mem.notifyOnce, mem.lngfile, ln.sent, mem.ID_GROUP,
mem.additionalGroups, b.memberGroups, mem.ID_POST_GROUP
FROM {$db_prefix}log_notify AS ln, {$db_prefix}members AS mem, {$db_prefix}topics AS t, {$db_prefix}boards AS b
WHERE ln.ID_TOPIC = $ID_TOPIC
AND t.ID_TOPIC = $ID_TOPIC
AND b.ID_BOARD = $ID_BOARD
AND mem.ID_MEMBER != $ID_MEMBER
AND ln.ID_MEMBER = mem.ID_MEMBER
GROUP BY mem.ID_MEMBER
ORDER BY mem.lngfile", __FILE__, __LINE__);


Replace:
$members = db_query("
SELECT
mem.ID_MEMBER, mem.emailAddress, mem.notifyOnce, mem.lngfile, IFNULL(ln.sent, 0) AS sent, mem.ID_GROUP,
mem.additionalGroups, b.memberGroups, mem.ID_POST_GROUP
FROM {$db_prefix}members AS mem, {$db_prefix}topics AS t, {$db_prefix}boards AS b
LEFT JOIN {$db_prefix}log_notify AS ln ON (ln.ID_MEMBER = mem.ID_MEMBER AND ln.ID_TOPIC = $ID_TOPIC)
WHERE t.ID_TOPIC = $ID_TOPIC
AND b.ID_BOARD = $ID_BOARD
AND mem.ID_MEMBER != $ID_MEMBER
GROUP BY mem.ID_MEMBER
ORDER BY mem.lngfile", __FILE__, __LINE__);


Find, Sources/Post.php:
$members = db_query("
SELECT
mem.ID_MEMBER, mem.emailAddress, mem.notifyOnce, mem.lngfile, ln.sent, mem.ID_GROUP,
mem.additionalGroups, b.memberGroups, mem.ID_POST_GROUP
FROM {$db_prefix}log_notify AS ln, {$db_prefix}members AS mem, {$db_prefix}boards AS b
WHERE ln.ID_BOARD = $board
AND b.ID_BOARD = $board
AND mem.ID_MEMBER != $ID_MEMBER
AND ln.ID_MEMBER = mem.ID_MEMBER
GROUP BY mem.ID_MEMBER
ORDER BY mem.lngfile", __FILE__, __LINE__);


Replace:
$members = db_query("
SELECT
mem.ID_MEMBER, mem.emailAddress, mem.notifyOnce, mem.lngfile, IFNULL(ln.sent, 0) AS sent, mem.ID_GROUP,
mem.additionalGroups, b.memberGroups, mem.ID_POST_GROUP
FROM {$db_prefix}members AS mem, {$db_prefix}boards AS b
LEFT JOIN {$db_prefix}log_notify AS ln ON (ln.ID_MEMBER = mem.ID_MEMBER AND ln.ID_BOARD = $board)
WHERE b.ID_BOARD = $board
AND mem.ID_MEMBER != $ID_MEMBER
GROUP BY mem.ID_MEMBER
ORDER BY mem.lngfile", __FILE__, __LINE__);


This will send emails to everyone on every post to everyone.  Your forum may get very slow.

-[Unknown]
Title: Re: Notifications not working?
Post by: itomic on November 21, 2004, 03:20:45 AM
Hi Unknown,

Thanks for that help. I'm just happy for the announcement option to be 'on' by default, so your first piece of code will do the trick. Thanks!

Don't worry about my forums getting very slow. I've got two private member forums with both less than 20-30 members each (no plan to increase this), averaging about 1 post per day. The forum concept is absolutely brilliant for both groups as a a central/shared point of communication. IMHO, when you understand that not everyone uses forums for mass market use then you realise that features such as 'announcement on by default' are so very useful. I truly hope that the ability to set the default to 'on' can be included within the admin section in a future release. :-)

Thanks again!