Replies
- Brajesh Singh on March 20, 2018 at 5:42 pm in reply to: [Resolved] BuddyPress Member Type Pro – Hide Profile Tabs based on member type #13986
Hi Sujee,
Thank you.1. The Member Types pro comes with two xprofile member type field. Single Member Type or Multiple Member Type and a lot more features.
2. Please see the tutorial on how to enable it if it is not visible.
https://buddydev.com/docs/guides/plugins/buddypress-plugins/buddypress-user-profile-tabs-creator-pro/enable-slug-option-profile-tabs-editing/Hope that helps.
Regards
Brajesh - Brajesh Singh on March 20, 2018 at 2:55 pm in reply to: [Resolved] BuddyPress Private Message Rate Limiter – Group Admin Override #13982
Thank you for sharing Graham.
I see you are using current_user_can( edit_files ). It’s a good choice(depending on your specific site).
I will suggest quoting the string for cap though. current_user_can( ‘edit_files’ )
Best Regards
Brajesh - Brajesh Singh on March 20, 2018 at 1:36 pm in reply to: [Resolved] BuddyPress Member Type Pro – Hide Profile Tabs based on member type #13980
Hi Sujee,
Thank you for the kind words and being a premium member.1. Xprofile field:- Please visit Dashboard->Users->Profile Fields and make sure you have the member type xprofile field. Please make sure you don’t have the xprofile member type field plugin installed.
You may want to edit and setup various options for it. That should show the field.
2. Member Type Directory listing:- Please check this one more time. It should work.
3. Removing Profile tabs based on member type:- At the moment, the simplest solution will be to use the
https://buddydev.com/plugins/buddypress-user-profile-tabs-creator-pro/and control the visibility of the tab.
It does not provide member type based option but you can use role.
If you only want to do it based on member type, Please let me know and I will post the code.
Please do note that hiding a tab depends on two things:- visited profile and visitor. So, if we are going to tackle this, we will need conditions for both.
Regards
Brajesh - Brajesh Singh on March 20, 2018 at 1:12 pm in reply to: [Resolved] Urgent: Mediapress conflict with Gravityforms accessing admin "view entry" #13979
Hi Leland,
My apology for the inconvenience.The problem lies with Gravity form and its inappropriate use of the ms-functions.php
Please see
https://github.com/buddydev/mediapress/issues/43Since they are unable to fix it quickly, I will try and push and update for compatibility today(I will need to check if I can).
Thank you
Brajesh - Brajesh Singh on March 20, 2018 at 1:09 pm in reply to: [Resolved] Conditional Profile Field For a Field whose number of dropdown list is too much #13978
Hi Nattiy,
Welcome to BuddyDev300 items in a list is not too much from memory point of view.
The message you are referring to symbolizes stale nonce.
I will suggest looking for other clues. Most probably it is not due to the conditional field.
Can you please try disabling other plugins and recreating it.
Thank you
Brajesh - Brajesh Singh on March 20, 2018 at 1:05 pm in reply to: [Resolved] Fb connect none update since 2014 #13977
Hi Julia,
I am sorry, we have deprecated this plugin.I will suggest using https://wordpress.org/plugins/wordpress-social-login/ instead.
Regards
Brajesh - Brajesh Singh on March 19, 2018 at 1:45 pm in reply to: [Resolved] [BUG] Uploading on Mobile not working (HTML5 Shim Not Working?) #13963
Hi Alex,
I am sorry but there has not been much done on it. I will work on it today/tomorrow and push an update.Thank you
Brajesh - Brajesh Singh on March 19, 2018 at 1:43 pm in reply to: [Resolved] how do I show full posts on the profile feed without 'read more'? #13962
Hi Peter,
Thank you.Can you please point what you want to accomplish on the page by marking a screenshot and linking me.
Thank you
Brajesh - Brajesh Singh on March 19, 2018 at 1:08 pm in reply to: Conditional field plugin not working with taxonomy select field type #13960
Hi Leland,
The BuddyPress Xprofile Custom Fields Type sis not maintained anymore. It was abandoned by its author.
https://github.com/donmik/buddypress-xprofile-custom-fields-typeWe are planning to fork it and rebuild it for BuddyPress 2.9/3.0
and then we can test it with the Conditional profile field. At the moment, spending time on compatibility with a unmaintained plugin does not seem justified.
Regards
Brajesh - Brajesh Singh on March 19, 2018 at 1:03 pm in reply to: [Resolved] automatic change of type with Member Types Pro #13959
Hi Herve,
I am sorry but I believe I am not sure of the original goals anymore and the modification may cause issues.1. You can uncomment the previous modification I have suggested
2. and then, you can change the log_deleted function to this/** * On Delete Avatar, delete the user meta to reflect the change * * @param array $args see args array. */ public function log_deleted( $args ) { if ( $args['object'] != 'user' ) { return; } $user_id = empty( $args['item_id'] ) ? 0 : absint( $args['item_id'] ); if ( ! $user_id ) { if ( bp_is_user() && ( bp_is_my_profile() || is_super_admin() ) ) { $user_id = bp_displayed_user_id(); } else { $user_id = bp_loggedin_user_id(); } } $user = get_user_by( 'id', $user_id ); if( $user && ! is_super_admin( $user_id ) ) { $user->set_role('subscriber' ); } }PS: should I modify the repost the gist?