Replies
- Brajesh Singh on February 29, 2016 at 10:31 am in reply to: Show recent visitors only to me + images are not changing size #2798
Thank you for the screenshots.
That makes it clear. I was thinking the issue is with the Header actions but I see you meant the problem with the tabs.
I am looking at at and It is most probably a bug. A solution will be coming a little late today.
Thank you
Brajesh - Brajesh Singh on February 29, 2016 at 10:30 am in reply to: [Resolved] member type on registration #2797
Hi Blade,
Thank you for the kind words.Can you please check this with twenty sixteen theme? I just checked and the Member types were listed on View profile /edit profile page.
If you can help me find out the issue, I may be able to help.
Thank you
Brajesh - Brajesh Singh on February 29, 2016 at 10:28 am in reply to: [Resolved] Custom Gallery From BuddyPress Fields #2796
Hi Paul,
Welcome to BuddyDev.I am sorry but I don’t understand the question completely.
MPP_Media_Query is used to list the media.
To add a media you will use mpp_add_media() and to add a gallery you will use mpp_create_gallery()
If you can explain a little more what you are trying to accomplish, I am be able to help better.
Thank you
Brajesh Hi Michael,
I have added the filters support. Once you enable the filters, It will list 4 sub tabs(or depending on which types are active) under MediaPress to list “Photos”, “Videos” etc. Please visit your MediaPress settings to enable the type filters.About po/mo file, what is the name you are assigning them?
- Brajesh Singh on February 28, 2016 at 3:49 pm in reply to: BuddyBlog – Custom Post Type, Custom Taxonomies, and Permalinks #2785
Hi Devin,
Thank you for the login details. I checked and it is working as expected.I understand that you don’t want the “user_post” in the url. It is because you have named your custom post type to “user_post”. Please see this section on codex on how to change the rewrite slug
https://codex.wordpress.org/Function_Reference/register_post_type#rewrite
Once you change the slug, It will use that. Please do note that the permalinks for custom post types have their own structure and will not exactly follow what is there for posts.
- 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.