comments not displaying properly

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Sarpy Sam
Regular
Posts: 17
Joined: Thu Feb 03, 2005 3:37 am
Contact:

comments not displaying properly

Post by Sarpy Sam »

If an entry has multiple comments on it I hit the comment button and the only comment that will show is the first one. It says comments are in linear mode but I hit the linear again and then all comments will appear. Also when trying to respond to a specific comment it fails and just adds another general comment. Is there any way to fix these things.
ned
Regular
Posts: 50
Joined: Fri May 07, 2004 4:11 pm

Post by ned »

I have the same problem. In linear mode, all comments display. In threaded mode - only the first comment displays.

http://Jeffblogworthy.com
ned
Regular
Posts: 50
Joined: Fri May 07, 2004 4:11 pm

Post by ned »

Hi.
Also, the current default is "threaded" display. How can I change the default appearance of comments to linear?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

There was a bug in earlier alpha versions about this which is fixed now in CVS.

Regards,
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/
Scott

Post by Scott »

ned wrote:Hi.
Also, the current default is "threaded" display. How can I change the default appearance of comments to linear?
Did anyone ever find out how to make comments linear by default?

~~
Scott
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

You can change that in your template.

Look at entries.tpl, there's this code:

Code: Select all

{serendipity_printComments entry=$entry.id mode=$entry.viewmode}
You can replace that with:

Code: Select all

{serendipity_printComments entry=$entry.id mode=$CONST.VIEWMODE_LINEAR}
Regards,
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/
Guest

Post by Guest »

Woot! Thanks Garvin! :D
Brendon K
Regular
Posts: 44
Joined: Thu Feb 23, 2006 10:35 pm
Location: Saratoga Springs, NY, USA
Contact:

Post by Brendon K »

garvinhicking wrote:You can change that in your template.

Look at entries.tpl, there's this code:

Code: Select all

{serendipity_printComments entry=$entry.id mode=$entry.viewmode}
You can replace that with:

Code: Select all

{serendipity_printComments entry=$entry.id mode=$CONST.VIEWMODE_LINEAR}
Regards,
Garvin
Does this still work? I tried this today on the 1.0-beta1 version (under the default template) and the change was not made. I am using s9ybluegrey as my current template of choice, which I *believe* is just a CSS variation of the default theme, in which case I edited the proper template. Am I wrong?
They say, "Practice makes perfect," yet they also say, "Nobody's perfect." I don't get it.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi Brendon!

Basically this method should work just fine; you could try to add some other output into your template to see if you got the appropriate one?

Sadly I currently have no access to my s9y installation so I cannot test it. If you still have problems, please report back here and I'll try to reply after the weekend. We have "karneval" in germany, so I'll not be here for the weekend :-))

Best regards,
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/
Post Reply