Automatic / Forced Notification of Board to Membergroups

Started by Freedom Fighter, September 09, 2006, 04:13:01 AM

Previous topic - Next topic

Freedom Fighter

Hi,

since we are using SMF for our courses, we create a board and a membergroup for each class, and we are also using it for our administration, so I need to be sure that every member in a certain group will receive notifications whenever there is new post in a certain board.

I want that every member in that group will have the "notifications" for a certain board activated automatically.

Is there a possibility in SMF to do that?

Thanks,
Lotsawa

codenaught

Okay, so you would need all existing members in the group to be selected to be notified. But then it gets more complex when you need to deal with members that are changed to the group. One thing that could be done is that in the profile page, if they are changed to the particular group they will be selected to be notified for the board. Note, that SMF stores those who are to be notified in the database, so a small script will need to be run, sort of like install.php/upgrade.php that will insert all members in a group into the log_notify table with an ID_BOARD of x. I should be able to write that up.

Does that sound right? what version of SMF are you using? And are they notified for new topics and replies to posts?
Dev Consultant
Former SMF Doc Coordinator

Freedom Fighter

> I should be able to write that up. < Can't believe my eyes! Thank you very much.
> Does that sound right? < Excellent!
> what version of SMF are you using? < 1.1 RC3
> And are they notified for new topics and replies to posts? < Yes, both.

Thanks again for your kindness.



codenaught

Attached is a script you can run in your forum's root directory that should insert all existing members in a certain membergroup to be notified for a certain board.

When you upload it, you need to access it just like you would for upgrade.php or install.php - yourwebsiteaddress.com/notify.php?group=x;board=y

Replacing x with the id of the group you want and y with the id of the board you want.

Backup (at least) your log_notify table before you run this file! Might as well back it all up though.

I can take a look at writing some code that will automaticly subscribe a member that has just had their membergroup changed to be notified for a certain board.

Let me know if this works how you want. Also I recommend you delete this file from your forum when you are done using it. A final warning is this might not work very well if your forum has a lot of members.
Dev Consultant
Former SMF Doc Coordinator

Freedom Fighter

Thanks, that's great!

> I can take a look at writing some code that will automaticly subscribe a member that has just had their membergroup changed to be notified for a certain board.

That would be even greater, but I hope I don't cause you too much work.

hansje worst

Thanks a lot! :D
I was looking for something to "force" board notification for members. For starting forums with novice users, it's the key to success! This little script did the trick!

Would be great if something like this would be a standard andministrator option within smf.

Erik

Advertisement: