test
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • benrud Friend
    #129319

    Hello All,

    I want to change the default display order of images in my galleries. Right now the display oldest first. I want to change it so when a new image is added to a gallery it’s displayed at the beginning of the gallery. I looked through the gallery configuration options but didn’t see anything that would allow me to modify that. Did I miss something?

    If not can someone help me with this modification?

    Thanks,
    Todd

    Sherlock Friend
    #252065

    Hi.
    Plz say more detail:
    -joomla version
    – your URL
    – display at front end or back end

    benrud Friend
    #252165

    sorry about that nguoiadcd

    -joomla version
    JA Avian II v1.2 for Joomla! 1.5.x : Quickstart included Joomla! 1.5.3 + Template & Extensions installation packages (14.88 MB)

    – your URL
    http://benrud.net

    – display at front end or back end

    I want to display the images on the front end so they display the most recent images first. Basically I want to change the default display order to “latest”.

    I looked trhough a few of the rsgallery2 component files but my .php isn’t good enough to locate the code I need to modify.

    Thanks again for your help.
    Todd

    benrud Friend
    #252262

    How do I remove the “Answered” notation from this post? It’s not answered.

    benrud Friend
    #257690

    nguoiabcd,

    I still haven’t been able to correct this issue.

    Can you help me change the default display order of a gallery/subgallery to latest?

    When someone opens a gallery or subgallery I want the newest images to be displayed first.

    Thanks,
    Todd

    Sherlock Friend
    #257742

    Hi
    plz edit gallery.class.php (administratorcomponentscom_rsgallery2includes folder)
    Search those lines:

    $filter_order = rsgInstance::getWord( 'filter_order', 'ordering' );
    $filter_order_Dir = rsgInstance::getWord( 'filter_order_Dir', 'ASC' );
    $where = ' WHERE gallery_id = '. $this->get('id');
    $where .= ($my->gid < 23) ? ' AND published = 1 ' : '';

    if ($filter_order == 'ordering'){
    $orderby = ' ORDER BY ordering ';
    } else {
    $orderby = ' ORDER BY '.$filter_order.' '.$filter_order_Dir.' , ordering ';
    }

    Change to

    $filter_order = rsgInstance::getWord( 'filter_order', 'date' );
    $filter_order_Dir = rsgInstance::getWord( 'filter_order_Dir', 'ASC' );
    $where = ' WHERE gallery_id = '. $this->get('id');
    $where .= ($my->gid < 23) ? ' AND published = 1 ' : '';

    if ($filter_order == 'date'){
    $orderby = ' ORDER BY date DESC ';
    } else {
    $orderby = ' ORDER BY '.$filter_order.' '.$filter_order_Dir.' , ordering ';
    }

    benrud Friend
    #257751

    Thanks! It Worked

Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 7 replies, has 2 voices, and was last updated by  benrud 16 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum