Replies
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
RaviHi 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
RaviHi 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
RaviHi 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.
- This reply was modified 10 years, 5 months ago by
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- Ravi on May 2, 2016 at 8:55 pm in reply to: FB Like User Activity Stream – Activity auto-refresh not working. #3736
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 - Ravi on April 27, 2016 at 7:26 am in reply to: [Resolved] Show new notification without having to refresh? #3714
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 - Ravi on April 26, 2016 at 1:56 pm in reply to: [Resolved] Show new notification without having to refresh? #3706
Hi Alayna,
Please refer the following url as I have bind a callback function to this event here
Thank You
Ravi - Ravi on April 24, 2016 at 4:15 am in reply to: [Resolved] Excluding current logged in user from members widget? #3695
Hi Alayna,
Thank You for confirming.
Thank You
Ravi 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