List Order of Comments

I see with version 7.2 that the code for listing comments has changed.  How do I list the newest comments at the top with older comments below?

Geeks, making the world a better place
Quote · 8d ago

Hello geek_girl!

 

Not sure that i've got about 7.2 version. But you may try to change order in Dolphin by default via changing this field in inc/classes/BxDolCmts.php:

 

var $_sOrder = 'desc';


and in this line in inc/classes/BxDolCmtsQuery.php

 

function getComments ($iId, $iCmtParentId = 0, $iAuthorId = 0, $sCmtOrder = 'ASC', $iStart = 0, $iCount = -1)


change "ASC" to "DESC".

 

then call of this method will have another order.

 

With the best regards, Leonid

Quote · 6d ago