Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-19 21:36:15

relix
New Member
Registered: 2005-10-05
Posts: 3

Order of comments "order by posted desc" not working...

I want to change the order of the comments so that the last posted comment is first. I’ve searched this forum and noticed that some threads already exist for this problem, so I tried the proposed solution: I edited publish/comment.php and, under function fetchComments($id), I changed “… order by posted asc” to “… order by posted desc”. Strangely enough, this doesn’t do anything. The output of the comments is still the same, ascending. I tried refreshing several times, I tried to open the page in 3 differint browsers and refreshing over there, but nothing seems to work.

Is there something else I need to change as well in order for this to work? Is there some caching of the site I’m not aware of? (I did try to add a comment and the new comment appeared, but still in the wrong order). This is a really strange problem and I just can’t get my head around it. Help will be greatly appreciated!

Offline

#2 2005-10-24 12:51:07

relix
New Member
Registered: 2005-10-05
Posts: 3

Re: Order of comments "order by posted desc" not working...

For anyone having the same problem: I finally found the solution. You have to change the SQL statement in the function comments() in the file publish/taghandles.php

Obviously no one on this forum knew this so thanks very much for your help people, really, I appreciate it…

Offline

Board footer

Powered by FluxBB