Customizing SMF > Modifications and Packages

SMF Notify Group

(1/15) > >>

pftq:
Link to Mod

SMF Notify Group
by pftq
www.pftq.com/smf-notifygroup/
Version 1.8 (May 28 2012) for SMF Forums 1.1.x
Version 2.2 (May 28 2012) for SMF Forums 2.0.x
*Newest Update: Batch-mode added for editing multiple boards/threads at once.


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.
   

juanpons14:
Can you put some screenshots of the mod?
Can this mod set the notification on as default for a mombergroup isn't it?

pftq:
Hi, this mod does not affect default notification settings but instead directly enables or disables notifications for a group of members.

You can affect default notifications for all members without the mod if you go to:
Admin -> Themes and Layouts -> Reset Option

I am not sure if you can specify for one group only though.

ricklynn2:
Hi, is there ANY way to do the same function on a "board" rather than just "topic"

Will I need additional script mod to notify group of the entire board?

Thanks

pftq:
Hi, this script does not expand into notifications for board.  I can look into it later this month though if you think the feature is worth having.

Navigation

[0] Message Index

[#] Next page

Go to full version