BuddyBoss Home – Web Support Forums Themes BuddyBoss theme Activity Stream "Read More" button

Viewing 4 posts - 1 through 4 (of 4 total)
  • Question

    #56142
    @aaronkine

    The 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

    #56179

    Anonymous
    @

    Hi @aaronkine, Please test again after deactivating rs-buddypress-activity-refresh
    Regards

    #56182
    @aaronkine

    I 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;
    	});
    
    #57146
    @aaronkine

    OK 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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The question ‘Activity Stream "Read More" button’ is closed to new replies.