Load more button is broken
-
Hello,
So, usually Buddypress will show the latest 20 or so activity posts, right? I am using this trick – https://bp-tricks.com/snippets/block-activity-types-added-activity-stream/ – to have only activity posts registered since I’m using Buddypress as a mini Facebook. To replicate my problem a test site should be filled with 200+ activity posts.
– Set on two or three the visibility “group members” or “only friends”
– two-three with the visibility “public”
– log in with a user that is not in any of the groups where the activities are posted and neither is friend with any user that has a post set with “only friends” visibility.
– you will see just a few plublic activities with that user instead of the default 20. And when you press Load more, not only that it takes like 15-20+ seconds to load, but it’s totally broken. (In my case 7.885 pure activity posts with dozen of comments. So yo can imagine the mess is generated when I press Load more.)Setting Buddypress to load more than 20 activities makes the situation even worse. Somehow BP will keep even the nonpublic posts in the first activity loop. I guess the solution would be to reset the activity loop each time an activity has a nonpublic visibility setting. So that when you press Load more, the next public visible posts will load normally. I hope my English makes sense.
Any solution for this? If you need login details let me know where I can drop you an email.
Regards
The topic ‘Load more button is broken’ is closed to new replies.