Notify Moderators

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Extensions Robot
Extensions Robot
Extensions Robot
Posts: 29353
Joined: Sat Aug 16, 2003 7:36 am

Notify Moderators

Post by Extensions Robot »

Modification name: Notify Moderators
Author: david63
Modification description: Sends an email to Moderatotors and/or Admins when a new/edited post is made in a forum of which they are a Moderator.

Options to notify reported posts and/or moderator queued posts
Modification version: 1.0.1
Tested on phpBB version: 3.0.1

Download file: notify_moderators.zip
File size: 52.82 KiB

Modification overview page: View

The phpBB Team is not responsible nor required to provide support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB Extension Customisations Team may not be able to provide support.

-->Modification support<--
Last edited by Extensions Robot on Mon Sep 19, 2022 7:33 pm, edited 11 times in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)
User avatar
A_Jelly_Doughnut
Former Team Member
Posts: 34459
Joined: Sat Jan 18, 2003 1:26 am
Location: Where the Rivers Run

Notify Moderators

Post by A_Jelly_Doughnut »

Modification validated/released

Notes:
A Donut's Blog
"Bach's Prelude (Cello Suite No. 1) is driving Indiana country roads in Autumn" - Ann Kish
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Notify Moderators

Post by david63 »

Several bugs have come to light since the release. Here are the fixes:

open adm/style/acp_users_prefs.html
find

Code: Select all

<label for="notifymod2"><input type="radio" name="notifymod" id="notifymod2" value="2"<!-- IF S_NOTIFY_PM --> checked="checked"<!-- ENDIF --> /> {L_PM}</label>   
replace with

Code: Select all

<label for="notifymod2"><input type="radio" name="notifymod" id="notifymod2" value="2"<!-- IF S_NOTIFY_PMN --> checked="checked"<!-- ENDIF --> /> {L_PM}</label>   
open includes/acp/acp_users.php
find

Code: Select all

'S_NOTIFY_PM'        => ($data['notifymod'] == NOTIFY_MOD_PM) ? true : false,   
replace with

Code: Select all

'S_NOTIFY_PMN'        => ($data['notifymod'] == NOTIFY_MOD_PM) ? true : false,   
open includes/ucp/ucp_prefs.php
find

Code: Select all

'S_NOTIFY_PM'        => ($data['notifymod'] == NOTIFY_MOD_PM) ? true : false,   
replace with

Code: Select all

'S_NOTIFY_PMN'        => ($data['notifymod'] == NOTIFY_MOD_PM) ? true : false,   
open styles/prosilver/template/ucp_prefs_personal.html
find

Code: Select all

<label for="notifymod2"><input type="radio" name="notifymod" id="notifymod2" value="2"<!-- IF S_NOTIFY_PM --> checked="checked"<!-- ENDIF --> /> {L_PM}</label>   
replace with

Code: Select all

<label for="notifymod2"><input type="radio" name="notifymod" id="notifymod2" value="2"<!-- IF S_NOTIFY_PMN --> checked="checked"<!-- ENDIF --> /> {L_PM}</label>   
open includes/functions_notify_moderators.php
find

Code: Select all

if (($mode == 'post' && $config['notify_post']) || (($mode == 'reply' || $mode == 'quote') && $config['notify_reply']) || ($mode == 'edit' && $config['notify_edit']) || $config['notify_approve'])  
replace with

Code: Select all

if (($mode == 'post' && $config['notify_post']) || (($mode == 'reply' || $mode == 'quote') && $config['notify_reply']) || ($mode == 'edit' && $config['notify_edit']) || ($mode == 'approve' || $mode == 'disapprove' && $config['notify_approve']))  
find

Code: Select all

// Get board admins
        if ($config['notify_admin'])
        {    
            foreach ($auth->acl_get_list(false, array('a_'), false) as $temp => $admin_ary)
            {
                foreach ($admin_ary as $temp => $admin_ary)
                {
                    foreach ($admin_ary as $admin_ary)
                    {
                        $mod_notify_ary[] = $admin_ary;
                    }
                }
            }
        }   
add after

Code: Select all

// Get global moderators
        if ($config['notify_moderator'])
        {
            $sql = 'SELECT u.user_id, u.user_type
                FROM ' . USERS_TABLE . ' u, ' . GROUPS_TABLE . ' g 
                WHERE ' . $db->sql_in_set('g.group_name', 'GLOBAL_MODERATORS') . '
                    AND g.group_id = u.group_id';
            $result = $db->sql_query($sql);

            while ($row = $db->sql_fetchrow($result))
            {
                if ($row['user_type'] == USER_NORMAL)
                {
                    $mod_notify_ary[] = $row['user_id'];
                }
            }
            $db->sql_freeresult($result);
        }   
find

Code: Select all

$is_admin = (in_array($mod_id, $admin_ary['a_'])) ? true : false;   
add after

Code: Select all

// Is this a global moderator
    $sql = 'SELECT u.user_id
        FROM ' . USERS_TABLE . ' u, ' . GROUPS_TABLE . ' g 
        WHERE ' . $db->sql_in_set('g.group_name', 'GLOBAL_MODERATORS') . '
            AND g.group_id = u.group_id
            AND ' . $db->sql_in_set('u.user_id', $mod_id);
    $result = $db->sql_query($sql);

    $is_global_mod = ($result) ? true : false;
    $db->sql_freeresult($result);   
find

Code: Select all

if ($is_admin)   
replace with

Code: Select all

if ($is_admin || $is_global_mod)   
Last edited by david63 on Mon Sep 01, 2008 7:54 am, edited 3 times in total.
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
alecrust
Registered User
Posts: 348
Joined: Thu Mar 27, 2008 11:24 am
Location: London, UK

Re: Notify Moderators

Post by alecrust »

Any screenshots or a more detailed overview of what the MOD can do?
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Notify Moderators

Post by david63 »

alecrust wrote:Any screenshots or a more detailed overview of what the MOD can do?
There is nothing to have screenshots of - apart from a few ACP options.

The mod will send a copy of a new post, edited post, reply to post to an admin and/or moderator. It will also send a message when a post is queued and with queued posts it will also notify when the post is approved or denied. Furthermore it will notify when a post is reported and then when the reported post has been dealt with.

All the potions are configurable via ACP. The notifications can be sent by email, Jabber or PM. The admin/moderator can select whether they want to recieve the notifications or not.

If there are ant reported or queued posts then there will be a link at the top of page next to the MCP link.
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
alecrust
Registered User
Posts: 348
Joined: Thu Mar 27, 2008 11:24 am
Location: London, UK

Re: Notify Moderators

Post by alecrust »

Sounds good. Thanks for that.
Kharon
Registered User
Posts: 235
Joined: Thu Oct 26, 2006 5:27 pm

Re: Notify Moderators

Post by Kharon »

very nice mod but some problems ..

UCP

admin and moderator
Notify me on new private messages: yes (fixed) (it isn't changing = no)

user
Notify me on new private messages: no (fixed) (it isn't changing = yes)


This modification isn't sending automatic PM report for them (Global moderators)
admin group is not problem

p.s : ACP - User administration is not problem

thanks

sorry,my english
Author Notes wrote:The default setting in the Users Table is set to "yes" so that any new users who are made moderators will automatically receive notifications. If they wish to change their option then they can do this via their UCP.
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Notify Moderators

Post by david63 »

Kharon wrote:admin and moderator
Notify me on new private messages: yes (fixed) (it isn't changing = no)

user
Notify me on new private messages: no (fixed) (it isn't changing = yes)
This is nothing to do with this mod
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
mara7
Registered User
Posts: 139
Joined: Wed May 11, 2005 5:59 pm

Re: Notify Moderators

Post by mara7 »

nice idea ^_^
SteveLeMaster
Registered User
Posts: 7
Joined: Mon Jul 14, 2008 5:22 pm

Re: Notify Moderators

Post by SteveLeMaster »

I installed it with no problems, however, I don't receive any notifications.
compt121
Registered User
Posts: 1
Joined: Mon Jul 14, 2008 7:20 pm

Re: Notify Moderators

Post by compt121 »

nice hack thanks
SteveLeMaster
Registered User
Posts: 7
Joined: Mon Jul 14, 2008 5:22 pm

Re: Notify Moderators

Post by SteveLeMaster »

It would be a nice hack...if it worked.
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Notify Moderators

Post by david63 »

SteveLeMaster wrote:It would be a nice hack...if it worked.
It does work.

As for why it is not working for you I will need more information.

Exactly what is not working? Have you checked ALL of your edits? Did you run the install file without any errors? Are you and Admin or moderator? Have you got the correct settings in the ACP and/or UCP?

Some more information would be helpful.
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
SteveLeMaster
Registered User
Posts: 7
Joined: Mon Jul 14, 2008 5:22 pm

Re: Notify Moderators

Post by SteveLeMaster »

It installed just fine and I ran a couple of test posts on a board that I am testing and I did not receive any notifications via email or PM.

Because it's a test board, you are more than welcome to login as admin and see if I am in the wrong and if I am, I will humbly post my apologies.

You can email me at [email protected] for the logins.
SteveLeMaster
Registered User
Posts: 7
Joined: Mon Jul 14, 2008 5:22 pm

Re: Notify Moderators

Post by SteveLeMaster »

Woot! Monkeys can learn...I am living proof.

My apologies for being an idiot, David

Return to “[3.0.x] MOD Database Releases”