Replies
- Brajesh Singh on February 28, 2016 at 1:28 pm in reply to: Show recent visitors only to me + images are not changing size #2783
Hi Jasmin,
Thank you for posting. I am glad the second issue is fixed.The first one is the default behavior. This plugin only shows the recent visitors to the user if they are visiting their own profile. For Example, User A can not see the visitors of User B.
Can you please post me a screenshot to show if t is not doing that?
Thank you
Brajesh - Brajesh Singh on February 28, 2016 at 1:24 pm in reply to: [Resolved] member type on registration #2782
Hi Blade,
Thank you for the kind words 🙂Please upgrade to 1.0.2 from here
https://buddydev.com/plugins/bp-xprofile-member-type-field/
and put this code in your bp-custom.php
add_filter( 'bd_xprofile_field_type_membertype_as_radio', '__return_true');That will make it work as radio.
Hope that helps. Please do let me know if that works for you or not?Thank you
Brajesh - Brajesh Singh on February 28, 2016 at 2:07 am in reply to: [Resolved] Disable BuddyPress 'Join Group' and 'Add friend' based on user's role #2778
No problem.
You are most welcome.
Happy coding 🙂 - Brajesh Singh on February 28, 2016 at 12:51 am in reply to: [Resolved] Disable BuddyPress 'Join Group' and 'Add friend' based on user's role #2776
Here is the link to the table.
https://codex.wordpress.org/Roles_and_Capabilities#Capability_vs._Role_Table - Brajesh Singh on February 28, 2016 at 12:51 am in reply to: [Resolved] Disable BuddyPress 'Join Group' and 'Add friend' based on user's role #2775
Hi Emmanuel,
Here are some example code to show hiding the buttons for specific olesadd_filter( 'bp_get_group_join_button', 'custom_hide_joingroup_button'); function custom_hide_joingroup_button( $btn) { if ( ! current_user_can('manage_options' ) ) { unset( $btn['id'] );//unsetting id will fore BP_Button to not generate any content } return $btn; } add_filter( 'bp_get_add_friend_button', 'custom_hide_addfriend_button' ); function custom_hide_addfriend_button( $btn ) { if ( ! current_user_can('manage_options' ) ) { unset( $btn['id'] );//unsetting id will fore BP_Button to not generate any content } return $btn; }Please take a look at this table to see which capability you may use.
Hope that it helps.
- Brajesh Singh on February 27, 2016 at 11:19 pm in reply to: [Resolved] Disable BuddyPress 'Join Group' and 'Add friend' based on user's role #2773
Hi Emmanuel,
Welcome to BuddyDev forums.It is doable and there can be multiple ways to do it. Are you comfortable with php code? If yes, I can guide in the right direction.
Thank you
Brajesh - Brajesh Singh on February 27, 2016 at 11:18 pm in reply to: [Resolved] member type on registration #2772
Hi Blade,
Welcome to BuddyDev.Thank you for asking this.
We will have it available in next 4-5 hours and I will post an update here.Thank you
Brajesh - Brajesh Singh on February 27, 2016 at 10:21 pm in reply to: BuddyBlog – Custom Post Type, Custom Taxonomies, and Permalinks #2771
Hi Devin,
The only reason it is not following WordPress permalink can be somehow this filter is enabledbuddyblog_show_posts_on_profileEither there is some remaining code filtering on it or somehow the admin settings for BuddyBlog to show posts on profile is still enabled.
Please give the settings/code another check and if you don’t find anything/it does not work, Please grant me temporary access to the site. I can debug and find the problem.
Thank you
Brajesh - Brajesh Singh on February 27, 2016 at 10:14 pm in reply to: Show recent visitors only to me + images are not changing size #2770
Hi Jasmin,
Welcome to BuddyDev forums.1. Isn’t Recent visitors visible to the logged in user only. This is the default behaviour.
For avatar, Please put the following code in your bp-custom.php
function devb_custom_settings_for_recent_visitors ( $settings ) { $settings['default_avatar_size'] = 64;//64 px return $settings; } add_filter( 'bp_visitors_settings', 'devb_custom_settings_for_recent_visitors' );Is it changing the avatar size? If not, It may be some css issue and you can point me to the site. That will allow me to provide you some css too.
Hi Jem,
Thank you for confirming.I am sorry about the lightbox. It skipped me otherwise we might have added the support in the shortcode. It is still possible to enable it via code. I will experiment a little and post back today if that can be done via code until we add he support in shortcodes.
Thank you
Brajesh