SMF Notify Group
Navigation
Search
SMF Mod Site
- Mod Name:
- SMF Notify Group
- Created By:
- pftq

- Type:
- New Feature

- First Created:
- December 06, 2009, 12:32:22 AM
- Last Modified:
- July 15, 2010, 06:07:58 AM
- Latest Version:
- 1
- Compatible With:
- 1.1.11
- Total Downloads:
- 54
Download this mod
Description:
SMF Notify Group
by pftq
www.pftq.com/smf-notifygroup/
Version 1 (Dec.5 2009)
for SMF Forums 1.1.x
ABOUT:
This is a short script I wrote so I can turn on notification of a topic for an entire membergroup. The script works by letting you first select membergroups and then the members within those groups that you want to enable (or disable) notification for. It also shows the members currently subscribed to the topic. Currently, only the forum administrator would be able to use the script.
I actually looked really hard to find a similar script before making this one but couldn't find one. If a much better script already exists, I'd be more than happy to know about it.
INSTALL:
Copy the notifygroup folder to your forum Packages folder (where you installed your forum).
Go to Packages in your Administration Center to install.
To access the script, go to: yourforums/index.php?action=notifygroup
Also, 'Notify Group' link should now be visible in the topic display for Admins. The appearance can be changed by modifying the theme files. If you have a custom theme, you'll want to copy the changes to your Display.template.php file (see Optional below).
OPTIONAL:
The script works best if you add a "Notify Group" button to your theme, so you can get to the script faster without selecting a topic. To do this, open the Display.template.php file of your theme. If you do not have one, copy the file from 'default' theme to your theme.
Find 'function theme_show_main_buttons()'.
Above '// Special case for the custom one.', insert the following:
// pftq: Notify group
if($context['user']['is_admin'])
$normal_buttons['notifygroup'] = array('text' => 'notifygroup', 'image' => '', 'lang' => true, 'url' => $scripturl . '?action=notifygroup;topic='.$context['current_topic']);
If you know HTML, you can modify the code to include an actual button if you want. It's up to you. 
THINGS TO KEEP IN MIND:
A lot of the posts I read about why SMF did not include this feature was that having too many notications at once would overload the server. (Imagine every new reply emails all the members on your board.)
This means that while the "Check All" button is there, you probably don't *actually* want to check all the groups or members. However, I don't know how powerful your server is or how many members you have. What you do is ultimately your decision.
