Firefox PHP

Module: Moderated User Group

Posted by Joe Curia 
All files from this thread

File Name File Size   Posted by Date  
moderated_user_group_v5_2_1_00.zip 2.4 KB open | download Joe Curia 11/25/2009 Read message
Module: Moderated User Group
November 24, 2009 01:22PM
This module allows you to create a group of users that will always be moderated (ie. their posts will remain hidden until approved by a moderator).

Installation and Usage
This module follows the basic module installation rules. After you have installed the module, you will need to complete three steps to begin moderating selected users.

First, create a group (eg. Moderated Users) whose users will be moderated.

Second, in the settings page for this module, select each group whose users will be moderated. Note, more than one group can be moderated if need be.

Third, add any users you would like to moderate as approved users of any group selected in the second step.

Messages posted by those users will now remain hidden until approved by a moderator.

Notes
If a user is removed from a moderated group or a group is removed from the list of moderated groups, all past messages which were posted while the user was under moderation will remain hidden until approved by a moderator. Messages posted after the moderation was lifted will appear immediately as normal.

Todo
- Add features as they are requested.

Thanks and Acknowledgements
Thanks go to Phorum users Rick and jorgealexander for requesting this module.
Thanks go to Phorum user Rob Granger for helping debug this module.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald




Edited 2 time(s). Last edit at 11/25/2009 09:51AM by Joe Curia.
Attachments:
open | download - moderated_user_group_v5_2_1_00.zip (2.4 KB)
Joe, been trying to debug a problem....
November 25, 2009 12:39AM
$moderated_user_groups = phorum_api_user_check_group_access(PHORUM_USER_GROUP_APPROVED, $PHORUM["mod_moderated_user_group"]["moderated_groups"]);

the count for this always returns zero so the user never gets flagged as moderated.

id added a check: $xx = count($PHORUM["mod_moderated_user_group"]["moderated_groups"]);
and that returns one (1) which is the number of groups that I have checked in the setup.
and I have a test user setup in the "Moderated" group which is the one that I checked in setup.

sorry, will do more checking tomorrow, I am about to crash. I am still on a php learning curve and arrays hurt my head.
Rob
Re: Module: Moderated User Group
November 25, 2009 01:23AM
Well, that's what I get for sloppy programming in a clean test environment. The settings page only saved an array of enabled groups indexed by group_id (eg. (1=>1, 3=>1)) as opposed to an array of group_id's which the phorum_api_user_check_group_access() function needs. In my clean test environment there was only one group which naturally had a group_id of 1 and would seemingly work fine.

Thanks for pointing out this bug Rob and sorry for any headaches I may have caused. Please redownload/reupload this module (or at least the settings.php file) and resave your settings page (please note it will still show the Moderated group checked, but until you actually save the settings with the patched file the stored array will not be correct).


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Moderated User Group
November 25, 2009 09:48AM
No, thank you joe, I think I have a copule of your mods running and they are wonderful!
Re: Module: Moderated User Group
August 14, 2010 05:25PM
Is it possible to use this module in the following way,

- make each new user member of the moderated group..
- move user to an unmoderated group after approving x messages of that user

Or is there any other way that I could keep a certain group of users away from the forum? Some have problems with their attitude and swearing in the forum. Upon banning they just register with a different email address and keep it going... Having a low traffic forum I don't have many moderators and the people I want to moderate that way possibly will be very small in count since it's a peaceful forum actually.
Re: Module: Moderated User Group
August 14, 2010 05:32PM
The module doesn't implement any of these features.
For feature no 1 there is another module: [www.phorum.org] .
For feature no 2 you will need to write a custom module (afaik).


Thomas Seifert
Re: Module: Moderated User Group
March 16, 2011 04:25PM
Can we get this module to send an email to the moderators when a person in the moderator user group posts a message and it get's held up in the queue?


Robert Angle
Phorum lover, nothing more.
Ruminations
Re: Module: Moderated User Group
March 16, 2011 06:24PM
Moderators get a mail (if the phorum settings are correct) about moderated posts in the same way as for a fully moderated forum. No need to duplicate that work.


Thomas Seifert
Re: Module: Moderated User Group
December 21, 2011 02:58AM
I have 3 groups: moderators, banned, and probationary. Probationary may post after their posts are approved, using this module. Banned may not post at all.

New users automatically are put into the probationary group (via the register to group module). When the moderators add a regular user to the banned group, it works fine--they can't post. But if the moderator adds a probationary user to the banned group, he can still post as normal--the post just waits for approval from a moderator.

Is there a way to give a precedence to group permissions? Otherwise the mods have to remove the offender from one group and then add him to another. I need the banned group to not be able to post, regardless of any other groups he may be in.

Ideas?
Re: Module: Moderated User Group
December 21, 2011 06:43AM
Quote
dsibilant
I have 3 groups: moderators, banned, and probationary. Probationary may post after their posts are approved, using this module. Banned may not post at all.

New users automatically are put into the probationary group (via the register to group module). When the moderators add a regular user to the banned group, it works fine--they can't post. But if the moderator adds a probationary user to the banned group, he can still post as normal--the post just waits for approval from a moderator.

Is there a way to give a precedence to group permissions? Otherwise the mods have to remove the offender from one group and then add him to another. I need the banned group to not be able to post, regardless of any other groups he may be in.

Ideas?

I dont think so. Groups seem to be about giving permissions, not taking them away.

I do the same thing as you with new users. Moderators can put someone misbehaving back into this group and then mention it to all the others in the moderators forum. Then, when I get online, I can deactivate them via the admin panel.


Robert Angle
Phorum lover, nothing more.
Ruminations
Sorry, only registered users may post in this forum.

Click here to login