Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Hi Carl,
    Let us not close it. I am believing that it might be a conflict with the UX plugin. Will do a test and then will get back to you.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Good to know that.

    Thank you for marking as resolved.

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Hi Jon,
    You did the right change. That is what I would have suggested too.

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: Lightbox gallery is not showing all images #5008

    Hi Serge,
    Thank you.
    Is it happening in activity or clicking on gallery thumbnail in the widgets/directory?

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    I will need some details from you. will write in another post today. Sorry for the delay Arvind.

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Thank you for the feedback.

    Will certainly add tutorials to show compatibility with the new plugin in future. Currently my hands are full, so please use the above approach for now(and you may ping me in 15 days for the new plugin).

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Hi Lavish,
    I am sorry I could not find time. I will look at it tonight.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: BP Activity Shortcode : LOAD NEWEST #5004

    Hi,
    Thank you for the clarification. The code for loading newest activity is part of bussypress.js(that comes with your theme or loaded via the theme compatibility).

    Here is the code section in that js file that does it.

    
    	/** Activity HeartBeat ************************************************/
    
    	// Set the interval and the namespace event
    	if ( typeof wp !== 'undefined' && typeof wp.heartbeat !== 'undefined' && typeof BP_DTheme.pulse !== 'undefined' ) {
    
    		wp.heartbeat.interval( Number( BP_DTheme.pulse ) );
    
    		jq.fn.extend({
    			'heartbeat-send': function() {
    				return this.bind( 'heartbeat-send.buddypress' );
    			}
    		});
    	}
    
    	// Set the last id to request after
    	var first_item_recorded = 0;
    	jq( document ).on( 'heartbeat-send.buddypress', function( e, data ) {
    
    		first_item_recorded = 0;
    
    		// First row is default latest activity id
    		if ( jq( '#buddypress ul.activity-list li' ).first().prop( 'id' ) ) {
    			// getting the timestamp
    			timestamp = jq( '#buddypress ul.activity-list li' ).first().prop( 'class' ).match( /date-recorded-([0-9]+)/ );
    
    			if ( timestamp ) {
    				first_item_recorded = timestamp[1];
    			}
    		}
    
    		if ( 0 === activity_last_recorded || Number( first_item_recorded ) > activity_last_recorded ) {
    			activity_last_recorded = Number( first_item_recorded );
    		}
    
    		data.bp_activity_last_recorded = activity_last_recorded;
    
    		last_recorded_search = bp_get_querystring('s');
    
    		if ( last_recorded_search ) {
    			data.bp_activity_last_recorded_search_terms = last_recorded_search;
    		}
    	});
    
    	// Increment newest_activities and activity_last_recorded if data has been returned
    	jq( document ).on( 'heartbeat-tick', function( e, data ) {
    
    		// Only proceed if we have newest activities
    		if ( ! data.bp_activity_newest_activities ) {
    			return;
    		}
    
    		newest_activities = data.bp_activity_newest_activities.activities + newest_activities;
    		activity_last_recorded  = Number( data.bp_activity_newest_activities.last_recorded );
    
    		if ( jq( '#buddypress ul.activity-list li' ).first().hasClass( 'load-newest' ) ) {
    			return;
    		}
    
    		jq( '#buddypress ul.activity-list' ).prepend( '<li class="load-newest"><a href="#newest">' + BP_DTheme.newest + '</a></li>' );
    	});
    });
    
    

    Most probably the buddypress.js file is not getting loaded on your page where you have used the shortcode. Please check for that.

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Hi Carl,
    Thank you for the mail and details. I am sorry but I was not able to recreate it. Will it be possible to provide me a temporary account for testing purpose.

    Thank you
    brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: [Resolved] Wall Photo Gallery #5002

    Hi Mike,
    I am sorry for the confusion. Please see here
    https://buddydev.com/mediapress/topics/getting-started/mediapress-wall-gallery/