How to force comment moderation?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
psiege
Regular
Posts: 52
Joined: Thu Mar 27, 2008 4:21 pm

How to force comment moderation?

Post by psiege »

I'm interested in forcing all comments to be moderated, except for comments made by approved users. Is there a method to allow this functionality?

Thanks in advance for any help!
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

From the admin screen, select Configure Plugins and scroll down to Event Plugins. Click on Spam Protector, which should have been installed by default. You will see a number of options for enforcement of captchas, comment moderation, trackback moderation, etc.
=Don=
psiege
Regular
Posts: 52
Joined: Thu Mar 27, 2008 4:21 pm

Post by psiege »

I need to force comment moderation for ALL comments. I can't seem to get that to work. Any suggestions? Thanks!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

For this, set your editor's personal preferences to default to "Entry requires moderation" to "Yes". Then you must edit all entries that you already created and also check the "Entry requires moderation" checkbox next to the save button.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
psiege
Regular
Posts: 52
Joined: Thu Mar 27, 2008 4:21 pm

Post by psiege »

That's what I was thinking. I was hoping that I was missing a global setting somewhere that said "Force Moderation on all Comments". This would be nice, as it would prevent an editor from unchecking that option.

Thanks again!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

You could globally force it with a small trick; use the "Wordfilter for author names" and enter the regular expression ".*" there, and then set this wordfilter to "auto-moderate". This will moderate all comments :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rewl
Posts: 4
Joined: Mon Aug 03, 2009 3:20 pm
Location: D-49525

Re: How to force comment moderation?

Post by rewl »

'forcing all comments to be moderated, except for comments made by approved users' is not possible - or did I miss something in the replies ?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: How to force comment moderation?

Post by garvinhicking »

Hi!

This should work as well, but requires some more RegExp-Magic. Sadly I always forget about grouped submatches.

It would be something along the lines of:

Code: Select all

[^(?:user1|user2|anotheruser|evilknieviel)]
That means "Everything BUT". I don't tthink that the (?: syntax is the right one here, but I don't know where to easily look that up right now...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rewl
Posts: 4
Joined: Mon Aug 03, 2009 3:20 pm
Location: D-49525

Re: How to force comment moderation?

Post by rewl »

very nice - thanks a lot !
For my needs it was enough to 'Disable Spamblock for Authors' in SPAM-Protector and use a catch all '.*' RegExp in Wordfilter for author names
Last edited by rewl on Wed Sep 02, 2009 3:18 pm, edited 2 times in total.
Post Reply