Setting comments permanently to linear

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
tkarp
Regular
Posts: 11
Joined: Mon Dec 18, 2006 3:00 pm

Setting comments permanently to linear

Post by tkarp »

I would like the comments in my blog to be set permanently to linear, with no option to display as threaded.

What's the best way to do this?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Setting comments permanently to linear

Post by garvinhicking »

Hi!

For that you would need to edit your entries.tpl file and replace something like this:

Code: Select all

 {serendipity_printComments entry=$entry.id mode=$entry.viewmode}
to something like that:

Code: Select all

 {serendipity_printComments entry=$entry.id mode=$CONST.VIEWMODE_LINEAR}
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/
tkarp
Regular
Posts: 11
Joined: Mon Dec 18, 2006 3:00 pm

Post by tkarp »

Thanks Garvin.

That code set the mode to linear.

I also commented out the DIV directly above this, which posts the choice between linear and threaded.

I also commented out the <tr> </tr> that contains the dropdown box in commentform.tpl that lets you choose which post you're responding to.

That seems to fix everything.

Thanks for your help with this.
Post Reply