Replies
- Ravi on April 7, 2022 at 2:26 pm in reply to: Can I hide “Add Friend” buttons when viewing Buddypress Profile>Friends? #44327
Hello Micael,
Thank you for sharing the code. Please try the following code for hiding Add Friend button in the friends list.
add_action( 'bp_before_friends_loop', function() { add_filter( 'bp_get_add_friend_button', '__return_empty_array' ); } ); add_action( 'bp_after_friends_loop', function () { remove_filter( 'bp_get_add_friend_button', '__return_empty_array', 10 ); } );
Please check.
Regards
Ravi Hello Tosin,
Please try the following code instead of calling the direct function as mentioned by the plugin author.
echo do_shortcode( '[post-views]' );
You can pass the ‘id’ if not work.
Regards
RaviHello Mac,
Thank you for posting. We will look at this and will acknowledge you within 24 hrs.
Regards
Ravi- Ravi on April 7, 2022 at 6:54 am in reply to: Can I hide “Add Friend” buttons when viewing Buddypress Profile>Friends? #44315
Hello Michael,
Welcome to the BuddyDev Forums. Please share the code you are using to hide Buttons so that I can help you.
Do you want to complete hide this button only or do want to disable the friends and message feature also?.
Regards
Ravi Hello Kathy,
Sorry for the inconvenience. I have checked on my local server by moving to the BuddyBoss Videos tab in front of the profile tab and it is working fine for me.
Please have a look at the following screenshot:
https://www.awesomescreenshot.com/image/25348909?key=e4e6d1451156cda56ae130759628dc74Let me know if helps you or not.
Regards
RaviHello,
Thank you for posting. Please visit Dashboard > Settings > Pages > Directories > User Groups and associate a page for site groups and check if you are able to access Site groups or not.
Please make sure you have some groups on your site.
Regards
RaviHello Tosin,
Thank you for your acknowledgement. I have rechecked this on my local development server and it is working fine for me. Please have a look:
https://www.awesomescreenshot.com/image/25345015?key=d592c187c63529f4afc2015e70945eeb
Please try after switching to the default theme temporarily and let me know if it is showing there or not.
Please make sure you have selected the post type under plugin settings > Display > Post Type.
Regards
Ravi- Ravi on April 5, 2022 at 10:06 am in reply to: BuddyPress Xprofile Custom Field Types Country – add Country to list #44295
Hello Chris,
Thank you for using the plugin. I have updated the country list in the plugin. We will update you within 24 hrs regarding the release.
Please check the commit URL and let me know if I added the correct country code:
https://github.com/buddydev/bp-xprofile-custom-field-types/commit/6ed56b3b1b9c209c1d2187e5ed89204ae1226f2bRegards
Ravi Hello Tosin,
Try the following code:
add_filter( 'pvc_display_views_count', function( $display ) { if ( ! function_exists( 'buddyblog_pro' ) ) { return $display; } $pvc = Post_Views_Counter(); if ( empty( $pvc->options['display'] ) || empty( $pvc->options['display']['post_types_display'] ) ) { return $display; } $current_post_type = bblpro_get_current_post_type(); if ( ! $display && $current_post_type && in_array( $current_post_type, (array) $pvc->options['display']['post_types_display'] ) ) { $display = true; } return $display; } ); add_filter( 'the_excerpt', function ( $excerpt ) { if ( ! function_exists( 'Post_Views_Counter' ) ) { return $excerpt; } return Post_Views_Counter()->frontend->add_post_views_count( $excerpt ); } );
It will append the view count on the archive page.
Regards
RaviHello Giuseppe,
Thank you for your acknowledgement. Please check the profile of a user with a different user who is not an administrator and let me know if the listing tab is seen by that user or not.
Shared image is not accessible to me.
Regards
Ravi