The Serendipity Handbook

You can now read the (german) handbook here: PDF - https://github.com/s9y/Book (LaTeX source).

Forum-Information

Before posting about errors, make sure that the answer cannot already be found in our FAQ or by searching this forum!
Posting is restricted to registered users (registering is free and simple!) due to recent spam attacks. When having trouble with this board, contact garvin(-at)s9y(-dot)org.

Board index General discussions How to select more than one comment at a time?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
budgetbabe
Regular
 
Posts: 11
Joined: Sun Mar 01, 2009 3:57 am
Location: New England

Postby budgetbabe » Mon Sep 03, 2012 3:17 pm

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?

User avatar
yellowled
Regular
 
Posts: 4884
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany

Postby yellowled » Mon Sep 03, 2012 3:34 pm

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

User avatar
Timbalu
Regular
 
Posts: 2560
Joined: Sun May 02, 2004 3:04 pm

Postby Timbalu » Mon Sep 03, 2012 3:52 pm

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

budgetbabe
Regular
 
Posts: 11
Joined: Sun Mar 01, 2009 3:57 am
Location: New England

Postby budgetbabe » Mon Sep 03, 2012 7:25 pm

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 :)

User avatar
Timbalu
Regular
 
Posts: 2560
Joined: Sun May 02, 2004 3:04 pm

Postby Timbalu » Fri Sep 28, 2012 2:59 pm

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 .= "&amp;serendipity[filter][show]=pending";
} elseif ($serendipity['GET']['filter']['show'] == 'confirm') {
    $and           .= "AND status LIKE 'confirm%'";
    $searchString .= "&amp;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

User avatar
garvinhicking
Core Developer
 
Posts: 28950
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Mon Oct 01, 2012 10:36 am

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/

User avatar
Timbalu
Regular
 
Posts: 2560
Joined: Sun May 02, 2004 3:04 pm

Postby Timbalu » Mon Oct 01, 2012 5:40 pm

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



Return to General discussions

Who is online

Users browsing this forum: No registered users and 1 guest