How to select more than one comment at a time?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
budgetbabe
Regular
Posts: 13
Joined: Sun Mar 01, 2009 2:57 am
Location: New England
Contact:

How to select more than one comment at a time?

Post by budgetbabe »

My blog gets a lot of spam comments, luckily 95% gets moderated, but it still clogs up my comments section making it difficult for me to see the "real" comments I receive from readers.

Right now I have to select each spam comment one by one and then delete.

So I was thinking, what if there was a way to "SELECT ALL" comments on a page (in the admin interface)? That way I could sort by Show > Pending Approval, then display Comments > All and delete spam a LOT faster. And I have a lot, we're talking dozens at a time.

Would this functionality be useful for others?
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: How to select more than one comment at a time?

Post by yellowled »

budgetbabe wrote:So I was thinking, what if there was a way to "SELECT ALL" comments on a page (in the admin interface)?
Erm. There is a way to do that. At the bottom of each comments page in the admin backend, you should find a button labelled "Invert selections". If you click said button with no comments selected, it will select all comments on said page.

YL
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: How to select more than one comment at a time?

Post by Timbalu »

btw, what is the exact difference between

Code: Select all

<option value="pending">Zu bewilligende/pending</option>
<option value="confirm">Zu bestätigende/confirm</option>
in filters??
Does that come from bayes?
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
budgetbabe
Regular
Posts: 13
Joined: Sun Mar 01, 2009 2:57 am
Location: New England
Contact:

Re: How to select more than one comment at a time?

Post by budgetbabe »

yellowled wrote:
budgetbabe wrote:So I was thinking, what if there was a way to "SELECT ALL" comments on a page (in the admin interface)?
Erm. There is a way to do that. At the bottom of each comments page in the admin backend, you should find a button labelled "Invert selections". If you click said button with no comments selected, it will select all comments on said page.

YL

*slaps forehead* not sure how I missed that - THANK YOU so much! This is a lifesaver :)
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: How to select more than one comment at a time?

Post by Timbalu »

Timbalu wrote:btw, what is the exact difference between

Code: Select all

<option value="pending">Zu bewilligende/pending</option>
<option value="confirm">Zu bestätigende/confirm</option>
in filters??
Does that come from bayes?
No, it resides in comments.inc.php and lang constants COMMENTS_FILTER_NEED_APPROVAL and COMMENTS_FILTER_NEED_CONFIRM.

This questions somehow is still active, as I can't really see what is meant.
For me it looks like, as if it is some old Serendipity code change from 'confirm' to 'pending' or vice versa and the code still is there to support users having both status entries in their comments table. (Is this possible?)

Code: Select all

...
} elseif ($serendipity['GET']['filter']['show'] == 'pending') {
    $and           .= "AND status = 'pending'";
    $searchString .= "&serendipity[filter][show]=pending";
} elseif ($serendipity['GET']['filter']['show'] == 'confirm') {
    $and           .= "AND status LIKE 'confirm%'";
    $searchString .= "&serendipity[filter][show]=confirm";
...
forcing comment show request actions to

Code: Select all

WHERE c.id = " . (int)$serendipity['GET']['id']  ." AND (status = 'pending' OR status LIKE 'confirm%')";
Now..., if that really is an ancient relict from Serendipity's child ages, should'nt we clean it up and get rid of 'confirm'? :)
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: How to select more than one comment at a time?

Post by garvinhicking »

Hi!

One option is for comments that need confirmation from the ADMIN (=Moderation), the other is used for users to approve their own comments (=Confirmation).

HTH,
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/
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: How to select more than one comment at a time?

Post by Timbalu »

I see, thanks for declining, Garvin! :wink:
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Post Reply