Disabling comments after a certain amount of time

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
hanno
Regular
Posts: 68
Joined: Fri May 20, 2005 8:04 am
Contact:

Disabling comments after a certain amount of time

Post by hanno » Mon Jul 23, 2018 4:45 pm

I'm running several s9y blogs and in order to keep spam manageable I'd like to make sure I'm not flooded with bogus comments for old entries. So I decided that I simply don't want to allow comments for anything older than 30 days, because it's rare that legit comments come in on old entries.

However there's no clean way in s9y to do this. The thing that comes closest is to set "Force comment moderation after how many days" to a number (in my case 30) and to set "What to do with comments when being auto-moderated?" to "reject".

The problem I have with that is that a visitor to my blog will still see a comment form. It will also have a captcha. If a user enters a comment he gets two - somewhat confusing - messages:

"Auto-moderation after X days

Your comment could not be added because comments for this entry have either been disabled, you entered invalid data, or your comment was caught by anti-spam measures."

I believe the X is simply a bug and should probably contain a number.

I find this all far from ideal, because a user who wants to submit a legit comment has no reason to believe this is not possible. He may even try to solve an annoying captcha multiple times. Instead it's obvious what the clean solution would be: If comments aren't allowed and rejected anyway then the form shouldn't be displayed in the first place.

Thoughts?

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

Re: Disabling comments after a certain amount of time

Post by yellowled » Mon Jul 23, 2018 9:12 pm

hanno wrote:
Mon Jul 23, 2018 4:45 pm
The problem I have with that is that a visitor to my blog will still see a comment form.
I believe we have a discussion going on about that in the German subforum. It is already possible to avoid that on a template level, but fixing all existing themes seems inefficient; this should be fixed in the core.
hanno wrote:
Mon Jul 23, 2018 4:45 pm
I believe the X is simply a bug and should probably contain a number.
That's actually the hardcoded value of the lang constant. (I agree that it would be nice to display the actual value there, I'm just not sure how hard that would be. It's a question for Garvin.

YL
amazon Wishlist - Serendipity-Podcast (German only, sorry)

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

Re: Disabling comments after a certain amount of time

Post by garvinhicking » Thu Sep 20, 2018 1:27 pm

The "X" is actually not substituted, because the idea was that users should not be told what the actual cut-off/limit is. Security by obscurity is not the best thing here, but on the other hand, for a user it might not be required knowledge what the amount of time is, but just that he hit it...?
# 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/

hanno
Regular
Posts: 68
Joined: Fri May 20, 2005 8:04 am
Contact:

Re: Disabling comments after a certain amount of time

Post by hanno » Thu Sep 20, 2018 1:42 pm

garvinhicking wrote:
Thu Sep 20, 2018 1:27 pm
The "X" is actually not substituted, because the idea was that users should not be told what the actual cut-off/limit is.
Ok, but if this is the intention I'd formulate it differently. Like it is it looks like a placeholder that wasn't replaced due to a bug.
Maybe writing something like "Auto-moderation for old entries" instead of "Auto-moderation after X days" would be clearer?

thh
Regular
Posts: 230
Joined: Thu Oct 26, 2006 2:38 pm
Location: Stuttgart, Germany
Contact:

Re: Disabling comments after a certain amount of time

Post by thh » Sat Sep 22, 2018 1:38 pm

hanno wrote:
Thu Sep 20, 2018 1:42 pm
Maybe writing something like "Auto-moderation for old entries" instead of "Auto-moderation after X days" would be clearer?
Yes. See https://github.com/s9y/Serendipity/pull/578; it can be discussed further, if necessary.

(I just changed DE and EN, not sure for all the other languages ...)

Post Reply