News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Notifications not working?

Started by garybeck, May 28, 2004, 09:35:54 AM

Previous topic - Next topic

andrea

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

Andrea Hubacher
Ex Lead Support Specialist
www.simplemachines.org

Personal Signature:
Most recent work:
10 Aqua Themes for SMF



itomic

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 :-(

[Unknown]

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]

itomic

Looks like rc1 has fixed my 'notify to all on first post' problem. Hooray! Thanks SMF.

Yonkey


itomic

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

Grudge

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"
I'm only a half geek really...

itomic

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!

itomic

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.

[Unknown]

#29
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]

itomic

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!


Advertisement: