Globally disable comments

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
arfa
Posts: 2
Joined: Mon Jul 24, 2017 3:47 am

Globally disable comments

Post by arfa » Mon Jul 24, 2017 4:30 am

I see in 'Personal Settings' - Allow comments to this entry y/n
This works for posts after setting 'N' but still displays the comment div with all the content - except the form.

The FAQ suggests editing the templates/{THEME}/entries.tpl and it was not so difficult to find <div class="serendipity_comments" and set style="display:none";
Even so, for a package as well featured as s9y, this seems a bit primitive.

I did read several suggestions about blog ethos and the essence of user feedback but, for my current scenario, I prefer read-only - and I do like s9y. So, with a bit of code hacking, I have what I want but still wonder if there is - or could be in the future - a setting to emulate the display:none?

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

Re: Globally disable comments

Post by yellowled » Mon Jul 24, 2017 8:45 am

arfa wrote:So, with a bit of code hacking, I have what I want but still wonder if there is - or could be in the future - a setting to emulate the display:none?
If so, we would probably want to have the HTML for the comments and comment form not emitted at all instead of just hiding it in CSS. For that to be implemented, it would need to be added to and tested in all existing s9y themes.

Frankly, even if we had the manpower to do that in the dev team (which we don't), we probably would not consider this to be important enough because it still is a rarely requested feature. Most people want comments or are fine with the comment section still being displayed although comments are closed.

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

arfa
Posts: 2
Joined: Mon Jul 24, 2017 3:47 am

Re: Globally disable comments

Post by arfa » Mon Jul 24, 2017 10:17 pm

Thanks for your considered reply.
I take your point with the many themes.

I am a happy camper :)
great work - thx

zarzanola
Regular
Posts: 15
Joined: Mon Jul 03, 2017 10:34 am

Re: Globally disable comments

Post by zarzanola » Tue Jul 25, 2017 10:34 am

Agreed, I don't think this is important enough to dedicate resources to it

Post Reply