How to move the 'Post Comment' Box above the Comments

I'm looking in BxBaseCmtsView.php to figure out how to bring the box to make comments above the comments that have already been made. I believe it's in here, was wondering if anyone has tried it?

$sRet = "";
     $sRet .= '<div class="cmt-replies">' . ($aParams['cmt_replies'] ? $this->_getRepliesBox($aParams) : '&nbsp;') . '</div>';
     if($this->isPostReplyAllowed())
      $sRet .= $this->_getPostReplyBoxTo($aParams);               
        $sRet .= '<div class="clear_both">&nbsp;</div>';
     return $sRet;

Quote · 29 Mar 2011

Hello provide us with some explanation scree shots with you want

PS: If possible do not write me personally, please try to ask on the forum first
Quote · 30 Mar 2011

In case someone else searches on this topic and needs an answer, I will provide it.

In BxBaseCmtsView.php find this bit of code:

function getCommentsFirst () {
$sRet = '<div id="cmts-box-' . $this->_sSystem . '-' . $this->getId() . '">';
$sRet .= '<div class="cmt-browse">' . $this->_getBrowse() . '</div>';
$sRet .= '<div class="cmts">' . $this->getComments (0, $this->_sOrder) . '</div>';
if(($sPaginate = $this->getPaginate()) !== "")
$sRet .= '<div class="cmt-show-more">' . $sPaginate . '</div>';
if($this->isPostReplyAllowed ())
$sRet .= '<div class="cmt-reply">' . $this->_getPostReplyBox() . "</div>";
$sRet .= '</div>';
$sRet .= $this->getCmtsInit ();
return $sRet;

Move the code in red to its new location.

function getCommentsFirst () {
$sRet = '<div id="cmts-box-' . $this->_sSystem . '-' . $this->getId() . '">';
if($this->isPostReplyAllowed ())
$sRet .= '<div class="cmt-reply">' . $this->_getPostReplyBox() . "</div>";
$sRet .= '<div class="cmt-browse">' . $this->_getBrowse() . '</div>';
$sRet .= '<div class="cmts">' . $this->getComments (0, $this->_sOrder) . '</div>';
if(($sPaginate = $this->getPaginate()) !== "")
$sRet .= '<div class="cmt-show-more">' . $sPaginate . '</div>';
$sRet .= '</div>';
$sRet .= $this->getCmtsInit ();
return $sRet;

Geeks, making the world a better place
Quote · 15 Sep 2012

This has changed in 7.1.  Anyone know where to make changes in 7.1 to have the "Comment Editor" "Post Comment Box" above the comments?

Geeks, making the world a better place
Quote · 26 Nov 2012

cmts_main.html

 

<div id="cmts-box-__html_id__" class="cmts-box">
    <bx_include_auto:designbox_top_controls.html />
    <div class="bx-def-bc-margin">

        <a name="cmta-__html_id__"></a>

        <div class="cmts">__list__</div>

        <div class="cmt-show-more bx-def-margin-sec-top">
        <bx_if:show_paginate>
            __content__
        </bx_if:show_paginate>
        </div>

        <bx_if:show_post>
            <div class="cmt-reply bx-def-margin-sec-top">__content__</div>
        </bx_if:show_post>

    </div>
    __js_code__
</div>

 

Appears to be move <div class="cmts">__list__</div> but it is not working even after clearing all the caches.  Am I missing something?

Geeks, making the world a better place
Quote · 26 Nov 2012

you ever get this sorted out?

Quote · 29 Aug 2013

Yes, I did.  Wish I had posted it at the time.  I will check and see; not sure if it was in the script or the template.

Geeks, making the world a better place
Quote · 29 Aug 2013

Here you go:

This is the original cmts_main.html

<div id="cmts-box-__html_id__" class="cmts-box">
    <bx_include_auto:designbox_top_controls.html />
    <div class="bx-def-bc-margin">

        <a name="cmta-__html_id__"></a>

        <div class="cmts">__list__</div>

        <div class="cmt-show-more bx-def-margin-sec-top">
        <bx_if:show_paginate>
            __content__
        </bx_if:show_paginate>
        </div>

        <bx_if:show_post>
            <div class="cmt-reply bx-def-margin-sec-top">__content__</div>
        </bx_if:show_post>

    </div>
    __js_code__
</div>

 

And this is the changed cmts_main.html

<div id="cmts-box-__html_id__" class="cmts-box">
    <bx_include_auto:designbox_top_controls.html />
    <div class="bx-def-bc-margin">
        <bx_if:show_post>
            <div class="cmt-reply bx-def-margin-sec-top">__content__</div>
            <br/>
        </bx_if:show_post>
       
        <a name="cmta-__html_id__"></a>

        <div class="cmts">__list__</div>

        <div class="cmt-show-more bx-def-margin-sec-top">
        <bx_if:show_paginate>
            __content__
        </bx_if:show_paginate>
        </div>

    </div>
    __js_code__
</div>

I added the <br/> for spacing.

Geeks, making the world a better place
Quote · 29 Aug 2013

We really do need to pull all these things together so they are easy to find.

Geeks, making the world a better place
Quote · 29 Aug 2013

thanks a lot!

Quote · 29 Aug 2013
 
 
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.