Skip to:
Content
Pages
Categories
Search
Top
Bottom

flip slideshow order

  • Avatar of shanebp
    shanebp
    Moderator

    @shanebp

    Version: 0.1.8.7

    We need to show pics in order from newest to oldest.
    Easy to do by switching ordersort to DESC in bp-album-classes, function bp_albumx_default_query_args
    $args=’DESC';

    But how do I get the slideshow to also flip its order?

    I tried swapping the Order By in
    if($adjacent == ‘next’){ in public static function query_pictures
    without success.

    So any hints on how to get the slideshow to also move from
    newer(left arrow) and older(right arrow) ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of foxly
    foxly
    Participant

    @foxly

    @shanebp

    To give you an accurate answer, I’d have to build and test the code. However, in general, you would probably just need to reverse the “ASC” and “DESC” on lines 299 and 303 in /includes/bp-album-classes.php

    Thanks!

    ^F^

    Avatar of shanebp
    shanebp
    Moderator

    @shanebp

    > reverse the “ASC” and “DESC”

    Yes, in original post I mentioned trying swapping the Order By, iow reversing the “ASC” and “DESC”, and that it didn’t work.
    (I could have made that clearer)

    Solution !!

    In bp-album-classes.php -

    In function
    bp_album_default_query_args(){
    change $args=’ASC”; to DESC

    In function
    public static function query_pictures
    reverse the “ASC” and “DESC”
    and reverse the greater than/ less than in both these lines
    $where .= $wpdb->prepare(‘ AND id < %d',$id);

    Avatar of foxly
    foxly
    Participant

    @foxly

    @shanebp

    Nice work… :)

    ^F^

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.