Place Coments under the Coment Editor (7.1)

This should be freaking easy to do yet I can not get it to work.  And yes, I have cleared caches.

In 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>

 

In BxBaseCmtsView.php

    function getCommentsFirst ()
    {
        $sPaginate = $this->getPaginate();

        return $GLOBALS['oSysTemplate']->parseHtmlByName('cmts_main.html', array(
            'html_id' => $this->_sSystem . '-' . $this->getId(),
            'top_controls' => $this->_getBrowse(),
            'list' => $this->getComments (0, $this->_sOrder),
            'bx_if:show_paginate' => array(
                'condition' => $sPaginate !== "",
                'content' => array(
                    'content' => $sPaginate
                )
            ),
            'bx_if:show_post' => array(
                'condition' => $this->isPostReplyAllowed(),
                'content' => array(
                    'content' => $this->_getPostReplyBox()
                )
            ),
            'js_code' => $this->getCmtsInit(),
        ));
    }

I have tried what I thought was the clear answer and then cleared all the caches and reload the profile page and it does not change.  This was easy peasy on 7.0.9.  I thought the whole idea behind the template was to separate code from display, you simply rearrange keys in template files so you don't have to touch code.

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

This is what you see when you inspect the page:

 

<div class="bx-def-bc-margin">

 

<a name="cmta-profile-6"></a>
<div class="cmts">
<div class="cmt-show-more bx-def-margin-sec-top">
<div class="paginate bx-def-padding-right bx-def-padding-left">
</div>
<div class="cmt-reply bx-def-margin-sec-top">

 

</div>

 


 

so it would seem the answer is to move:

 

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

 


so that it is before the comments.

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

<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>
        </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>

 

That should place the comment editor above the comments, correct?

Geeks, making the world a better place
Quote · 26 Nov 2012
 
 
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.