Question about Comment Configuration

Hi all,

 

For some time now i am looking for a way to sort the comments on my website. Right now it will show the newest comments first. I would like to have the newest latest (on bottom of list)

And, how do make it so that replies to comments are always expanded ... ? this setting is also not to be found.

thanks in advance,

W.//

Quote · 30 Mar 2011


found it myself ... and sharing my findings ..

 

find what you see below

inc/classes/BxDolCmts.php

var $_iId = 0;  // obect id to be commented
var $sTextAreaId;
var $iGlobAllowHtml;
var $iGlobUseTinyMCE;
var $_sSystem = 'profile';  // current comment system name   
var $_aSystem = array ();   // current comments system array
var $_aCmtElements = array (); // comment submit form elements
var $_oQuery = null;
var $_sOrder = 'asc';   <--- changed from desc to asc .. desc = descending .. asc = ascending

 

Now the next thing on the list .. expand all comments ..

must be somewhere in the code below found in:

templates/base/scripts/BxBaseCmtsView.php

function _getBrowse() {
$sRet = '
<div class="cmt-order">' . $this->_oPaginate->getSorting(array('asc' => '_oldest first', 'desc' => '_newest first'))
<input type="checkbox" id="cmt-expand" name="cmt-expand" onclick="javascript:' . $this->_sJsObjName . '.expandAll(this)"/><label for="cmt-expand">' . _t('_expand all') . '</label>
</div>
<div class="cmt-pages">' . $this->_oPaginate->getPages() . '</div>
<div class="clear_both">&nbsp;</div>';
return $sRet;

someone care to help me out here?

Quote · 31 Mar 2011

Was the option to show comment replies integrated as a front end option into 7.3?

Quote · 14 Jul 2016

Are you sure your users would want to have to page, page, page, page, just to see the newest comment left?  No, that is not a good idea, you want the latest; newest, comment to be shown first; trust me on this.

As for the expanded by default, I requested this back when I first started.  AlextT helped me to get it sorted and I thought it would be added to the code as he stated.  Don't know about 7.3 having this, I have not seen it.

However, do a search on the forum for posts by Geek_Girl about expanded replies and you will find the code.

Geeks, making the world a better place
Quote · 14 Jul 2016
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.