BuddyBoss Home – Web › Support Forums › Themes › BuddyBoss theme › Activity Stream "Read More" button
- This topic has 3 replies, 2 contibutors, and was last updated 8 years, 10 months ago by Aaron.
Question
January 12, 2016 at 11:34 pm #56142@aaronkineThe Site in question using BuddyBoss Theme: http://aaronkine.staging.wpengine.com/
Live site with old theme i’m migrating from: http://nprnsb.org/When i click a Read More button in the activity feed it used to not leave the page and just use Ajax to show the content of the post within the feed. but now it goes to a whole different page?
Sample that works here –> look for this article and click the read more button “Boys & Girls Club Executive Director Carolyn Brown Announces Retirement”
What makes this load in the full post in the current window and NOT go to a separate page?
Answers
January 13, 2016 at 11:59 am #56179@
AnonymousHi @aaronkine, Please test again after deactivating rs-buddypress-activity-refresh
RegardsJanuary 13, 2016 at 12:18 pm #56182@aaronkineI disabled that plugin but the Read More link still goes to its own page. Also, I disabled ALL plugins except Buddypress and BuddyPress Activity Plus.
It turns out that its part of the OneCommunity Theme that adds this functionality. I think i found the Javascript code that makes this happen… I copied and pasted it into buddyboss/js/buddyboss.js but it still did not work?? any ideas how I can get this to work with BuddyBoss?
// Activity "Read More" links jq('div.activity').on('click', '.activity-read-more a', function(event) { var target = jq(event.target); var link_id = target.parent().attr('id').split('-'); var a_id = link_id[3]; var type = link_id[0]; /* activity or acomment */ var inner_class = type == 'acomment' ? 'acomment-content' : 'activity-inner'; var a_inner = jq('li#' + type + '-' + a_id + ' .' + inner_class + ':first' ); jq(target).addClass('loading'); jq.post( ajaxurl, { action: 'get_single_activity_content', 'activity_id': a_id }, function(response) { jq(a_inner).slideUp(300).html(response).slideDown(300); }); return false; });
January 25, 2016 at 1:14 pm #57146@aaronkineOK I have found the issue. The BuddyPress setting “Automatically check for new items while viewing the activity stream” is causing all sorts of issues. When i turn off that setting the theme seems to work smoothly. But If i use another Theme “OneCommunity” I can turn on that setting and the site still works perfectly…
So why is BuddyBoss causing the issue? Please help fix so i can turn on Activity Refresh.
- The question ‘Activity Stream "Read More" button’ is closed to new replies.