Replies
Hi Chirag,
Thank You posting. You can disable ‘Add Media’ from BuddyBlog plugin setting under setting in backedend. Check Allow Upload setting and sat it to NO. It will disable the ‘Add Media’ button.
Please use the following code in your bp-custom.php file.
function buddydev_change_post_format( $post_id ) { set_post_format( $post_id, 'video' ); // set the default post format here } add_action('bsfep_post_saved','buddydev_change_post_format'); function buddydev_video_field( $settings ){ // extra field for video url $settings['custom_fields']['_video_url'] = array( 'type' => 'textbox', 'label' => 'Enter Video Url', 'default' => '' ); return $settings; } add_filter('buddyblog_post_form_settings','buddydev_video_field', 10 );
to render the content of this post use the following code
function buddydev_filter_content( $content ) { $video_url = get_post_custom_values( '_video_url', get_the_ID() )[0]; if ( $video_url ) { $content .= $video_url; } return $content; } add_filter('the_content','buddydev_filter_content' );
Please let me know if it works for you or not.
Thank You
Ravi- Ravi on May 12, 2016 at 2:16 pm in reply to: Mediapress limited to 20 items per audio gallery? #3834
Hi George,
Thank You for posting. You can limit the media and gallery listing on website. There is an option to manage galleries and media listing on frontend. You can check the MediaPress setting in Admin Pannel under MediaPress setting theming tab with label “How many Media per page”. You can fix this from there.
Thank You
Ravi 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 8 years, 6 months ago by Ravi.
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