New
PeoplePress is here. Community building for WordPress, reimagined. Fast, modern, and built for the communities you've always wanted to run.
See it live

BuddyDev

Search

Replies

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Members have no name #3785

    Hi Lavish,

    is there any chance that you have deleted the first xprofile field?

    Can you please post a screen-shot of edit profile page on the front-end? In your case, It seems the display name is not being synchronized.

    Thank you
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Adding menu items #3768

    Hi Phill,

    Thank you for your appreciation. Please remove the previous code and try the following code in your bp-custom.php file.

    
    function buddydev_modify_user_profile_tab() {
    	
    	bp_core_new_nav_item( array(
    			'name'		                => 'Community', //replace with your name
    			'slug'		                => 'community', // slug must be unique
    			'screen_function'	        => 'buddydev_screen_profile_community',
    			'position'                  => 11, // unique
    			'default_subnav_slug'       => 'community-sub',
    			'show_for_displayed_user'   => true, //Whether the nav item should be visible when viewing a member profile other than your own
    		)
    	);
    
    }
    add_action( 'bp_setup_nav', 'buddydev_modify_user_profile_tab', 8 );
    
    function buddydev_screen_profile_community() {
    
    	add_action( 'bp_template_content', 'buddydev_load_content' );
    	bp_core_load_template( 'members/single/plugins'  );
    
    }
    
    function buddydev_load_content() {
    
    	echo do_shortcode( '[mpp-show-gallery id=303]' ); // replace by Your shortcode
    
    }
    
    

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Adding menu items #3766

    Hi Phill,

    I have tried to fix problem by adding a new menu to Buddypress profile page that render shortcode content. Please try it in your bp-custom.php file and let me know if it works or not.

    
    function buddydev_modify_user_profile_tab() {
    
    	$bp = buddypress();
    	
    	$user_url = bp_loggedin_user_domain();
    	// add 'Change profile picture' sub-menu tab
    	bp_core_new_subnav_item( array(
    			'name'		=> 'Community', //replace with your name
    			'slug'		=> 'community', // slug must be unique
    			'parent_url'	=> trailingslashit( $user_url . $bp->profile->slug ),
    			'parent_slug'	=> $bp->profile->slug,
    			'screen_function'	=> 'buddydev_screen_profile_community',
    			'position'          => 30,
    			'user_has_access'   => bp_is_my_profile()
    		)
    	);
    
    }
    add_action( 'bp_setup_nav', 'buddydev_modify_user_profile_tab', 100 );
    
    function buddydev_screen_profile_community() {
    
    	add_action( 'bp_template_content', 'buddydev_load_content' );
    
    	bp_core_load_template( 'members/single/settings/general' );
    }
    
    function buddydev_load_content() {
    
    	echo do_shortcode( '[mpp-show-gallery id=303]' ); // replace by Your shortcode
    }
    
    

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Adding menu items #3763

    Hi Phill

    Thank you for posting. You can refer the following URL to create a new nav item for BuddyPress Profile Tab.

    https://buddydev.com/support/forums/topic/move-subnav-tabs/#post-3296

    Thank You
    Ravi

    • This reply was modified 10 years, 5 months ago by Ravi.
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Simple Front End Posts #3738

    Hi Glenn,
    I am sorry but I am unable to understand your details.

    Can you please provide more details to allow me understand what are you trying to accomplish here?

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hi Alayna,

    There are multiple issues.

    1. On SiteWide activity BuddyPress uses WordPress heartbeat API to get latest activities but in case of user activity there is no such functionality going on. There is no filter to allow us enabling it
    2. At the moment, FB Like activity does not support “since” parameter for fetching new activities, so even if we recreate the heartbeat step, this plugin will need to be updated.

    It will take us atleast 2-3 days to update it.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hi Alayna,

    You can do something like this.

    
      jQuery(document).on( 'bpln:new_notifications', function( event, res ){
    
            // pass count selector here
            jQuery('#count').text(res.count); //to show no. of count
            // pass message selector here
            jQuery('#message').html(res.messages);
            //alert(res.count);
        });
    
    

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hi Alayna,

    Please refer the following url as I have bind a callback function to this event here

    https://github.com/buddydev/bp-live-notification-tone/blob/master/assets/js/bp-live-notification-tone.js#L11

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hi Alayna,

    Thank You for confirming.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Edit Blog Post layout #3693

    Hello Brendan,

    It should be in “wp-content/plugins/” directory. If it is not present create one. You can refer following url

    https://buddydev.com/docs/guides/guides/buddypress-guides/what-is-bp-custom-php/

    Thank You
    Ravi