News:

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

Main Menu

notification

Started by jvter, January 07, 2015, 04:23:32 PM

Previous topic - Next topic

jvter

Hi,
I use the forum for a small group of people (about 150). These are all members. The forum is used as the main communication platform. All members have to be notified of a new message in the board they are able to see/publish in.
Question: How do I setup SMF to have all members receive always a notification of the board they are listed for?
Regards,
Jans

kat

Not very easily.

On this page, look under my post and you'll see "Notify" (It'll probably say "UnNotify", now). They need to click that for each board (Not topic), as far as I know.

Beware, though. I realise that you only have a few members. But, sending them notifications of everything could well breach your host's e-mail limitations.

I'm not sure what you mean by "the board they are listed for", though, to be honest.

jvter

Hi,
I used a Mod (SMF Notify Group 2.2) to do that for all members.  I checked the process for by looking at about 20 members settings and those were correct. So, initially that seems to work but now I get a lot of complains from members that they do not receive any notification. But some people are receiving it correct. 

Quote from: K@ on January 07, 2015, 04:31:12 PM

I'm not sure what you mean by "the board they are listed for", though, to be honest.
Maybe I did not said that correct. What I meant was that members should receive only notification of boards they have access to.

Kindred

members will never receive notifications from board that they can not access
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

jvter

Quote from: Kindred on January 07, 2015, 05:24:33 PM
members will never receive notifications from board that they can not access
Great!
But the problem is that the majority of members get also no notifications of boards they can access, despite the setting is correct.

Steve

Just out of curiosity ... have you read through the support thread for that mod starting at about here?

http://www.simplemachines.org/community/index.php?topic=391955.msg3240439#msg3240439
My pet rock is not feeling well. I think it's stoned.

jvter

Quote from: Steve on January 07, 2015, 05:52:40 PM
Just out of curiosity ... have you read through the support thread for that mod starting at about here?
http://www.simplemachines.org/community/index.php?topic=391955.msg3240439#msg3240439

I was wrong, I did not use that Mod it is not installed, hence I did not read that thread. I used a php script called 'notify.php' to set all boards for members on notify.

Notify.php:
]<?php
require_once('SSI.php');

global
$smcFunc, $context;

if (!
$context['user']['is_admin'])
die('Sorry, you must be admin to run this script');

// Add numbers to match the boards you want notifications turned on for. $boards = array(1,2,5,6);
$boards = array();
// Don't edit below this line
$users = array();

$request = $smcFunc['db_query']('', '
SELECT id_member FROM {db_prefix}members WHERE is_activated = 1'
);

if(
$smcFunc['db_num_rows']($request) > 0) {
while($row = $smcFunc['db_fetch_assoc']($request)) {
$users[] = $row['id_member'];
}
$smcFunc['db_free_result']($request);
}
if(empty(
$boards))
die('You forgot to set the board ID\'s in the $boards array above');

if(!empty(
$users)) {
foreach($users as $user) {
foreach($boards as $board) {
$smcFunc['db_insert']('replace',
'{db_prefix}log_notify',
array('id_member' => 'int', 'id_board' => 'int'),
array($user, $board),
array('id_member')
);
}
$smcFunc['db_insert']('replace',
'{db_prefix}themes',
array('id_member' => 'int', 'id_theme' => 'int', 'variable' => 'string', 'value' => 'string'),
array($user, 1, 'auto_notify', '1'),
array('id_member')
);
}
}
?>


This script did what is was supossed to do. But the problem is now that the majority of members get NO notifications of boards they can access, despite the setting is correct.

kat

Where did you get the script from?

Could whoever supplied it help you out?

jvter

I think I got it somewhere from the support forum.
But the script is not the problem. The fact that ar no notifications send is though.

kat

Might help, then, if I change the topic title and move this to the Coding Discussion board.

What think you?

Steve

Since this is a problem arising from a coding script that you're using, I'm thinking K@ has a good idea.
My pet rock is not feeling well. I think it's stoned.

jvter

I'm not so sure that it is the script that has created the problem. But then again I'm not the specialist you are!

Deaks

Jans,

You have said notifications a few times but not what kind of notification is it through pm or email?

If its email do these people get any forum newsletters when you send them out?

Do they all use email such as gmail or hotmail or outlook (one of the big ones).

Due to nature of how forums work its quite hard to get emails sent correctly these days as the big email providers will consider it spam and not allow it to be recieved.
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Steve

Or they'll send it directly to a spam/junk folder so one may have to look there.
My pet rock is not feeling well. I think it's stoned.

jvter

Quote from: Runic on January 08, 2015, 08:57:54 AM
You have said notifications a few times but not what kind of notification is it through pm or email?
If its email do these people get any forum newsletters when you send them out?
Do they all use email such as gmail or hotmail or outlook (one of the big ones).
Due to nature of how forums work its quite hard to get emails sent correctly these days as the big email providers will consider it spam and not allow it to be recieved.
It is Email, and they do not receive a newsletter. Most accounts are not GMail or Hotmail but from universities and vetenarians.
Quote from: Steve on January 08, 2015, 08:59:25 AM
Or they'll send it directly to a spam/junk folder so one may have to look there.
I've asked them to look in their spamfolder. They told me the mail was not in there.

I use the standard built in mail system. Could it be better to use smtp (No idea if the host will accept that)

Deaks

Yeh but many Universities use like 365 servers (microsoft office 365) and they do same as the big ones for spam, also depends on how good the uni tech department is (my uni tech department are a waste of space).  Anyway have you sent a newsletter before? if so did they recieve it?

It would be better to use the smtp yes, and most hosts will allow it just make sure you doesnt send hundreds a minute.
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

jvter

Just to be correct about the newsletter, a newsletter has never be send using the forum, only notification Messages.

Kindred

1- try sending a quick newsletter to a limited set of users....
2- do the users get notifications about Personal Messages?
3- do YOU get notifications of new users joining your forum (although, first, do you have admin notifications turned on?)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: