Add Comment at top of Comments

Is there a way to get the 'add comments' at the top of all the comments instead of the bottom.  There are instructions at Expertzz but these are not compatible with 6.1.4

Thank

Quote · 16 Nov 2008

Answar is here

 

Quote · 17 Nov 2008

Hi Ottar - that is to have the latest comment shown at the top.  I have done that and it works fine.  What I am actually wanting is the "add comment" tag to be shown at the top of the comments.  Right now you have to scroll all the way to the bottom of the comments to click the add comment and post a new comment.

Thanks

Em

Quote · 18 Nov 2008

In templates/base/scripts/BxBaseCmtsView.php :

Find the getCommentsFirst () function, comment it, and replace with the function below :

/**
* get full comments block with initializations
*/
function getCommentsFirst ()
{       
$sRet  = '<div id="cmts-box-'.$this->getId().'">';

if ($this->isPostReplyAllowed ())
$sRet .= $this->_getPostReplyBox();

$iOverflow = $iCountTotal = 0;       
$sRet .= $this->getComments (0, $iOverflow, $iCountTotal);

if (1 == $iOverflow)
$sRet .= '<div class="cmt-show-more"><a href="#" onclick="' . $this->_sJsObjName . '.showMore(this, ' .       $this->getPerView () . '); return false;">'._t('_Show <b>N</b>-<u>N</u> of N discussions', $this->getPerView ()+1, $this->getPerView ()*2 > $iCountTotal ? $iCountTotal : $this->getPerView ()*2, $iCountTotal).'</a></div>';

$sRet .= '</div>';

$sRet .= $this->getCmtsInit ();

return $sRet;
}

The difference between this and the original function is the location of these two lines :

if ($this->isPostReplyAllowed ())
$sRet .= $this->_getPostReplyBox();

Quote · 19 Nov 2008

Thank you dolphinmods - that worked perfectly :)

Quote · 19 Nov 2008
 
 
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.