Page 1 of 1
Is there a way to put the last comment first, and so on?
Posted: Tue Aug 08, 2006 12:27 am
by woochild
as it is now, the comments go 1,2,3,4...
I want the comments to go in reverse, and each new comment added to the top instead of the bottom. I appologize if this has been asked before, but i've spent a good while looking for it before posting. if anyone can help, i'd appreciate it.
easy
Re: Is there a way to put the last comment first, and so on?
Posted: Tue Aug 08, 2006 11:30 am
by garvinhicking
Hi!
You can edit your entries.tpl file and replace
Code: Select all
{serendipity_printComments entry=$entry.id mode=$entry.viewmode}
with
Code: Select all
{serendipity_printComments order="DESC" entry=$entry.id mode=$entry.viewmode}
(or was it "ASC"? You might need to try both

)
Best regards,
Garvin
Posted: Tue Aug 08, 2006 5:36 pm
by woochild
it didn't work
i actually found that fix while searching in the forum.
is there any reason why it wouldn't work?
I have the newest version and it seems to be functioning correctly.
Posted: Tue Aug 08, 2006 9:47 pm
by judebert
Did you try both "ASC" and "DESC"? Did you refresh your browser to clear the cache?
Posted: Wed Aug 09, 2006 11:00 am
by garvinhicking
Hi!
Also you would need to be in "linear" viewmode [which you can also pinpoint via the smarty function call] to make ordering work that way!
Best regards,
Garvin