WordPress.org

Ready to get started?Download WordPress

Forums

BuddyPress Album
[resolved] Issue on profile / image pagination (6 posts)

  1. julie92500
    Member
    Posted 1 year ago #

    On my profile, the album has a lot of images.

    after upgrading to WP 1.5 and BP 1.6.2 and you latest release, album is still working but pagination is gone and I'm not able to see the latests images on my profile.

    Rgds,

    http://wordpress.org/extend/plugins/bp-album/

  2. julie92500
    Member
    Posted 1 year ago #

    I've partially resolved the issue by reactivating some code in bpa.template.tags.php :

    $this->pag_links = paginate_links( array(
                            'base' => $bp->displayed_user->domain . $bp->album->slug .'/'. $bp->album->pictures_slug .'/%_%',
                            'format' => '%#%',
                            'total' => ceil( (int) $this->total_picture_count / (int) $this->pag_per_page ),
                            'current' => (int) $this->pag_page,
                            'prev_text' => '←',
                            'next_text' => '→',
                            'mid_size' => 1
                    ));

    (this code was in comment).

    After commented out the code, the pagination works again.

    But, still have an issue : previously i got the last added photo on the first position of the first page. Now, i get it at the last position of the last page (reverse order).

    Any idea ?

  3. julie92500
    Member
    Posted 1 year ago #

    have resolved the order issue

    file bpa_classes.php in bp_album_default_query_args()

    change $args['ordersort']='ASC'; to $args['ordersort']='DESC';

    Everything working as before the update.

  4. oceanwidedesigns
    Member
    Posted 1 year ago #

    Thanks Julie for your fix! I posted about this over in the plugin's support forum at buddypress.org and haven't heard back from the developers. You saved me a ton of time from having to find it myself. So far it's working again!

  5. julie92500
    Member
    Posted 1 year ago #

    :)

  6. ljmac
    Member
    Posted 1 year ago #

    Thankyou from me too - I was tearing my hair out trying to figure this out, especially as this code has now been removed completely from the latest version (the 1.8.5 preview). How could the developers screw up something so basic?

    Still, at least this plug-in doesn't endlessly whitescreen me like BP Gallery Plus does.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.