Page 1 of 1

How to select more than one comment at a time?

Posted: Mon Sep 03, 2012 3:17 pm
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?

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

Posted: Mon Sep 03, 2012 3:34 pm
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

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

Posted: Mon Sep 03, 2012 3:52 pm
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?

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

Posted: Mon Sep 03, 2012 7:25 pm
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 :)

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

Posted: Fri Sep 28, 2012 2:59 pm
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'? :)

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

Posted: Mon Oct 01, 2012 10:36 am
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

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

Posted: Mon Oct 01, 2012 5:40 pm
by Timbalu
I see, thanks for declining, Garvin! :wink: