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?
Setting comments permanently to linear
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Setting comments permanently to linear
Hi!
For that you would need to edit your entries.tpl file and replace something like this:
to something like that:
HTH,
Garvin
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}
Code: Select all
{serendipity_printComments entry=$entry.id mode=$CONST.VIEWMODE_LINEAR}
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/
# 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/
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.
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.