blog commnets "order by"

anyone know how to change the blogs commnets "order by" to default "oldest" instead of "newest"?

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 30 Jun 2012

I'm not sure you can change this just for the blogs, and not change comments order globally.  Besides, you don't want to do this anyway.

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 1 Jul 2012

yes, i want my comments on the blogs to go in order from oldest to newest instead of having to change the drop down

Photobucket

 

 

oldest first.jpg · 29.1K · 149 views
MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 1 Jul 2012

RE:

yes, i want my comments on the blogs to go in order from oldest to newest instead of having to change the drop down

 

 I got to know.  Why??

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 1 Jul 2012

because we do blog contest and stuff, and people are finding it hard to read the comments when you have to go back pages and read from bottom to top, from back to front,, instead of reading comment number 1 the 2 then 3 down the line

 

i have had more then 3 people whine about it,, me i just click the drop down and am done with it, but they are begging for it to be default

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 1 Jul 2012

5 bucks says if you change the default, a different group of people will be whining. 

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 1 Jul 2012

I agree with HL. In fact i am willing to bet the group of people to complain about the new order will be even larger.


Anyhoo.

Open templates/base/scripts/BxBaseCmtsView.php

At about line 13 look for this.

    function BxBaseCmtsView( $sSystem, $iId, $iInit = 1 ) {
        BxDolCmts::BxDolCmts( $sSystem, $iId, $iInit );
        if(empty($sSystem))
            return;

        $this->_sJsObjName = 'oCmts' . ucfirst($sSystem) . $iId;
        $this->_oPaginate = new BxDolPaginate(array(
            'page_url' => 'javascript:void(0);',
            'start' => 0,
            'count' => $this->_oQuery->getObjectCommentsCount($this->getId(), 0),
            'per_page' => $this->getPerView(),
            'sorting' => $this->_sOrder,
            'per_page_step' => 2,
            'per_page_interval' => 3,
            'on_change_page' => $this->_sJsObjName . '.changePage({start}, {per_page})',
            'on_change_per_page' => $this->_sJsObjName . '.changePerPage(this)',
            'on_change_sorting' => $this->_sJsObjName . '.changeOrder(this)'
        ));
        $this->_sStylePrefix = isset($this->_aSystem['root_style_prefix']) ? $this->_aSystem['root_style_prefix'] : 'cmt';
      
        $GLOBALS['oSysTemplate']->addJsTranslation('_sys_txt_cmt_loading');
    }


Change to this.

    function BxBaseCmtsView( $sSystem, $iId, $iInit = 1 ) {
        BxDolCmts::BxDolCmts( $sSystem, $iId, $iInit );
        if(empty($sSystem))
            return;

    $this->_sOrder = 'asc';    // Add this line.

    $this->_sJsObjName = 'oCmts' . ucfirst($sSystem) . $iId;
        $this->_oPaginate = new BxDolPaginate(array(
            'page_url' => 'javascript:void(0);',
            'start' => 0,
            'count' => $this->_oQuery->getObjectCommentsCount($this->getId(), 0),
            'per_page' => $this->getPerView(),
            'sorting' => $this->_sOrder,
            'per_page_step' => 2,
            'per_page_interval' => 3,
            'on_change_page' => $this->_sJsObjName . '.changePage({start}, {per_page})',
            'on_change_per_page' => $this->_sJsObjName . '.changePerPage(this)',
            'on_change_sorting' => $this->_sJsObjName . '.changeOrder(this)'
        ));
        $this->_sStylePrefix = isset($this->_aSystem['root_style_prefix']) ? $this->_aSystem['root_style_prefix'] : 'cmt';
      
        $GLOBALS['oSysTemplate']->addJsTranslation('_sys_txt_cmt_loading');
    }

https://www.deanbassett.com
Quote · 1 Jul 2012

thank you deano!!!.. oh and i have not forgot about vamp wars,, im still gonna do it i just had some questions to ask about the licenses and what we actually "own" first

 

 and houston,, i know for fact you are right, but when one of the ones crying that the want it this way is the current woman i am having "relations" with,, well then that is the side that wins!

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 1 Jul 2012

I expected there might be questions about the licence. And i am sure no one is going to like the answer either.

There is not much time left. I am leaving the collection system up on my site for 1 month. Only 2 weeks left. Comes off on the 20'th if no one shows any interest. So far the lack of interest indicates to me that the product would not have any money earning potential and thus would not be worth the development time.

But this is off topic and should not be discussed in this topic.

https://www.deanbassett.com
Quote · 1 Jul 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.