Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to correct pagination issues

  • Avatar of dgteam
    dgteam
    Participant

    @dgteam

    Dont know if this has been posted or not but this is how to correct the pagination issues on BP Album after the current update to 1.6.2 and 3.5

    Look for this code in bpa.template.tags.php:

    `//$this->pag_links_global = paginate_links( array(
    //’base’ => get_permalink() . ‘%#%’,
    //’format’ => ‘?page=%#%’,
    //’total’ => ceil( (int) $this->total_picture_count / (int) $this->pag_per_page ),
    //’current’ => (int) $this->pag_page,
    //’prev_text’ => ‘←’,
    //’next_text’ => ‘→’,
    //’mid_size’ => 1

    ));`

    and change it to:

    `$this->pag_links_global = paginate_links( array(
    ‘base’ => get_permalink() . ‘%#%’,
    ‘format’ => ‘?page=%#%’,
    ‘total’ => ceil( (int) $this->total_picture_count / (int) $this->pag_per_page ),
    ‘current’ => (int) $this->pag_page,
    ‘prev_text’ => ‘←’,
    ‘next_text’ => ‘→’,
    ‘mid_size’ => 1

    ));`

    You can also change the way images are display in the album by displaying the new pics first instead of the old ones first:

    go to file bpa_classes.php in bp_album_default_query_args()

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of djsteveo
    djsteveo
    Participant

    @djsteveo

    I tried this and it causes the white screen of death. Tried deactivating plugin and updating code as well – and it still goes white screen of no return / no info.

    Would love to get this sorted, got my first ever complaints from users over this – lol.

    Avatar of djsteveo
    djsteveo
    Participant

    @djsteveo

    uncommenting the lines as described here: http://buddypress.org/support/topic/pagination-on-user-albums-missing-after-update/

    Seems to fix the problem with my site for the moment.

    I’d like to add that I would love to see an option to add pagination on the bottom right of the albums, where it is more intuitive to click for more. On my screen by the time you get to the bottom view of an album, the pagination is not visible above the fold.

    Would also like to see an option to the make text for pagination larger – I wonder if this can be set in my theme, currently suffusion – without affecting other elements.

    Another problem I have is that the album title ends up with same color as background for the button with bp-album and suffusion theme – so “Username’s Pictures” is not legible.

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

You must be logged in to reply to this topic.