[buddypress-trac] [BuddyPress Trac] #8565: Pagination not working on member profile topics/replies/engagements lists

buddypress-trac noreply at wordpress.org
Thu Nov 23 03:28:12 UTC 2023


#8565: Pagination not working on member profile topics/replies/engagements lists
-------------------------------+------------------------------
 Reporter:  phy9pas            |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Core               |     Version:  9.1.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by jgasba):

 The bug is still running and buddypress.org has it too it seems.


 I added details and links to weave together some issues and comments
 https://bbpress.trac.wordpress.org/ticket/3355#comment:4

 To anyone stumbling around here, to fix this from outside bbPress I've
 personaly used:

 {{{#!php
 <?php
 add_filter('bbp_get_replies_pagination_base',
 'fix_replies_pagination_links', 10, 2);
 function fix_replies_pagination_links( $base, $topic_id ) {
     if ( bp_is_user() ) {
         $base = bbp_get_user_replies_created_url(
 bbp_get_displayed_user_id() );
         $base = trailingslashit( $base ) . user_trailingslashit(
 bbp_get_paged_slug() . '/%#%/' );
     }

     return $base;
 }

 add_filter('bbp_get_topics_pagination_base',
 'fix_topics_pagination_links', 10, 2);
 function fix_topics_pagination_links( $base, $topic_id ) {
     if ( bp_is_user() ) {
         $base = bbp_get_user_topics_created_url(
 bbp_get_displayed_user_id() );
         $base = trailingslashit( $base ) . user_trailingslashit(
 bbp_get_paged_slug() . '/%#%/' );
     }

     return $base;
 }
 }}}

 Not sure how that could be implemented in BuddyPress to prevent breaking.
 I'm having a hard time understanding if this issue is affecting all
 BuddyPress installs or only some specific configuration. I've tried
 multiple setups and plugins combos and always have this pagination links
 problem though 🤔

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8565#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list