How to correct pagination issues
-
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’;`
You must be logged in to reply to this topic.