The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. julie92500
    Posted 3 years 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.



  2. julie92500
    Posted 3 years 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
    Posted 3 years 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
    Posted 3 years 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
    Posted 3 years ago #


  6. ljmac
    Posted 3 years 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

  • BuddyPress Album
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.