Hi,

Would be great if an email notification could be sent to the moderator when new items are added to the queue, so that the moderator could go and read it.

I see that some of the work had been suggested http://drupal.org/node/98182, but I'm not sure where it stands.

Would be great to have this feature.

Regards,

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Joe Malik’s picture

Hi,
+1 on this. I really would like to see this feature - are there plans to realize email notification in modr8 on new content / queue items?

Joe Malik’s picture

-1 on this: Solved this feature request with the notify-module (http://drupal.org/project/notify).

kmargar’s picture

Version: 5.x-2.2 » 5.x-2.3
Assigned: Unassigned » kmargar
Status: Active » Needs review
FileSize
6.2 KB

I have needed this facility for a project of mine and I modified modr8 to do just that. It allows the send of a notification to all the users in a role that has the 'moderate content' access.

It works fine, feel free to include it in the module.

Konstantinos

pwolanin’s picture

hmm, I think I'd rather see a hook or some other facility.

lupus78’s picture

Is it still not solved?
I'm trying Notify, but it would be easyer with the Modr8 module itself...

halfiranian’s picture

Is this patch ok to use?

marcingy’s picture

Version: 5.x-2.3 » 5.x-2.4
FileSize
6.33 KB

Rerolled for 5.x-2.4. I agree that this feature should go in. Given that modr8 is responsible for the rest of the email handling it only makes sense that this is also the responsibility of the module.

mdowsett’s picture

I agree - I don't like the idea of depending on the notify.module to mail this out. Thanks for the patch.

There is a type-o in this note on the /admin/settings/modr8 page

"Only nodes with access to 'moderate_content' will be displayed. Leave blank to disable moderation email"

It should read:
"Only roles with access to..."

mdowsett’s picture

FileSize
4.31 KB

I did the patch manually (no shell access) but it isn't working. I'm getting this error now when I submit a new content type that goes into moderation:

warning: Invalid argument supplied for foreach() in /home/aitken/public_html/sites/default/modules/modr8/modr8.module on line 337.

And no moderation emails are being sent after running cron

I've attached my manually adjusted modr8.module for review (if you don't mind...)

mdowsett’s picture

marcingy, can you post a zipped copy of your entire modr8 module folder so I can test your copy to see if it works?

pwolanin’s picture

Version: 5.x-2.4 » 6.x-1.x-dev

I'm not really planning to add any more new features to the 5.x module. For 6.x, it should hook into the actions system:

http://api.drupal.org/api/function/hook_hook_info/6

mdowsett’s picture

FileSize
18.68 KB

I think this is the patched d5 version (see attached).

I just finished upgrading the site to d6....so now I have to see if I can adjust the d6 version properly

mdowsett’s picture

pwolanin are you saying that the d6 version of the module should already work? It isn't working for me now so either it needs a patch or I'm doing something wrong (yet again).

I'm not familiar with actions in D6 as of yet so if you have any tips there, that'd be great.

pwolanin’s picture

I'm not sure that it works yet, but we should basically find a way to trigger actions rather than rebuilding such a system.

mdowsett’s picture

After six months of me sitting around and doing nothing with this.... :)

I tried Actions/Trigger in d6....I suppose that will work but there aren't any options to tell it to only send an email when a certain content-type is created....it's either ALL content or NONE.

I'm still VERY new with Actions....is there something else I can do to help get this functionality?

TechnoBuddhist’s picture

I am using Actions/Triggers in D6 with modr8 and it works fine for me. I can specify what content types I want not problems.

All users to my site when registering are given the default role which I call moderated but it's the standard drupal 'authenticated role'. My action is set to fire when new content is saved.

in the rule my conditions are:
IF 'User has Role' = moderated
AND 'Create content is [content-type to check]'

DO
Load 'Admin account'
Send a mail to Admin.

It works perfectly!

After a few posts I can change the role of the user to be 'moderated'(a role I created) that has the permissions for modr8_bypass ticked for the correct content types. My 'moderated' role has these unticked.

pwolanin’s picture

Status: Needs review » Fixed

If it works with Drupal 6 core Actions/Triggers, then I think we can consider this fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

ceinmart’s picture

Can you be more specific about this Actions/Triggers ?

Because if you is saying about the built-in Actions/Triggers , they don't work in 100% situations, for example when the user/author of a post send a response to a moderator.. there is no way to know..

And this "rule" you write:
[quote]IF 'User has Role' = moderated
AND 'Create content is [content-type to check]'[/quote]

Where you write this?? is this php code? is a patch into the drupal???
So this Actions/Triggers module is a separated module? I just not found it... can you post the link here ?

JaapB’s picture

Status: Closed (fixed) » Active
FileSize
2.8 KB

Attached a very simple module that creates this functionality. I hope it's useful for you

bcobin’s picture

@JaapB,

Thank you - I think this is exactly what I've been looking for!

But where does the code go? I'm assuming this goes into the modr8 module folder named as modr8_adminmail.module - is that correct?

Thank you for doing this!