Replies
- Brajesh Singh on August 11, 2019 at 10:58 pm in reply to: Media Upload box not opening on iPhone #24569
Hi David,
My apologies for not being able to assist earlier.
I will be working to resolve it this week.Since the plugin is working on ios devices on our demo, I am assuming the issue is with theme compatibility.
I don’t own any ios device, will be trying to simulate it on Windows/Linux and fixing if I am able to re-create it.
I will be getting back to you with the updates by day end Tuesday.
PS:- Sorry about the wp.org forums. I keep an eye there but their limitations(not allowed to ask for login etc, prevents from troubleshooting). That’s why you see low activity there.
Thank you
Brajesh - Brajesh Singh on August 11, 2019 at 10:38 pm in reply to: xProfile field on Registration Page #24568
Hi Mike,
Thank you.You can use the following css to hide the 2nd column.
#profile-details-section { display:none; }I could not complete the second part of the article. Will find some time and do it in near future.
Regards
Brajesh Hi Mike,
Thank you for the question.
I don’t have any specific preference at the moment. In past, I used WordPress social login by Miled. It does not seem to be maintained anymore.My suggestion will be to look for BuddyPress Compatibility/Data import in any of the social login plugin you select.
Please do let me know which one you went with.
Regards
Brajesh- Brajesh Singh on August 11, 2019 at 10:16 pm in reply to: Badge for Participant or other Bbpress Roles #24566
Hi Mike,
Thank you for reporting the issue.I checked and I can see the issue. bbPress roles are not registered as global roles. They seem to be registered dynamically and being assigned to user.
We are using
get_editable_roles()To get the list of available roles and bbPress roles are not available here.
We will add support for bbPress next week(19th onwards) as we are thin on available developers this week(having 2 holidays here on 12th and 15th).
Thank you
Brajesh - Brajesh Singh on August 10, 2019 at 5:20 pm in reply to: Issue with BuddyPress User Profile Tabs Creator Pro #24556
Hi Slim,
Welcome back to BuddyDev.Are you sure they are coming from profile tabs and linking to BuddyPress user profile tabs?
Can you please show me your tab settings(did you specify admin bar id) for the same?
Thank you
Brajesh Hi Matthew,
Please add the following lines too/** * Remove group admin/settings sub nav. */ function buddydev_remove_group_admin_settings() { if ( ! bp_is_group() ) { return; } bp_core_remove_subnav_item( groups_get_current_group()->slug . '_manage', 'group-settings', 'groups' ); // reattach screen function to avoid 404. add_action( 'bp_screens', 'groups_screen_group_admin', 3 ); } add_action( 'bp_template_redirect', 'buddydev_remove_group_admin_settings', 1 );That will remove the settings from manage too.
Hope that helps.
Regards
Brajesh- Brajesh Singh on August 9, 2019 at 9:49 pm in reply to: [Resolved] buddypress multisite not working #24552
Marking resolved due to lack of activity.
- Brajesh Singh on August 9, 2019 at 9:48 pm in reply to: [Resolved] Profile Name is not Syncing when activating BP-Multi-Network #24550
Marking resolved due to lack of activity.
- Brajesh Singh on August 9, 2019 at 9:43 pm in reply to: [Resolved] BP Multi Network not filtering members… #24547
Closing as resolved due to lack of activity and the age of the ticket.
- Brajesh Singh on August 9, 2019 at 12:36 pm in reply to: moving/deleting/renaming tabs and subnavs #24546
Hi Gijs,
Thank you for the patience.
Achieving what you are looking for can be divided into 3 parts:-1. Adding new tabs under profile and removing it from settings
2. setting up action handler to handle the form submission
3. template loading for settings and modifying form urls to point to the new url.You will need some custom code and a few template page editing. I will explain below.
1. Custom code:- Please put this in your bp-custom.php
/** * When we are on profile component, * If someone asks it is settings component, say yes. This is not the best strategy but helps remove remove the action handler barrier. */ add_filter( 'bp_is_current_component', function ( $is_current_component, $component ) { if ( 'settings' == $component && bp_is_current_component( 'profile' ) ) { $is_current_component = true; } return $is_current_component; }, 10, 2 ) /** * Add some of the settings sub nav as xprofile sub nav. */ function buddydev_custom_setup_xprofile_settings_nav() { // Determine user to use. if ( bp_displayed_user_domain() ) { $user_domain = bp_displayed_user_domain(); } elseif ( bp_loggedin_user_domain() ) { $user_domain = bp_loggedin_user_domain(); } else { return; } $access = bp_core_can_edit_settings(); $slug = bp_get_profile_slug(); $settings_link = trailingslashit( $user_domain . $slug ); $sub_nav = array(); $sub_nav [] = array( 'name' => _x( 'Profile Visibility', 'Profile settings sub nav', 'buddypress' ), 'slug' => 'profile', 'parent_url' => $settings_link, 'parent_slug' => $slug, 'screen_function' => 'bp_xprofile_screen_settings', 'position' => 110, 'user_has_access' => bp_core_can_edit_settings() ); $sub_nav[] = array( 'name' => __( 'Export Data', 'buddypress' ), 'slug' => 'data', 'parent_url' => $settings_link, 'parent_slug' => $slug, 'screen_function' => 'bp_settings_screen_data', 'position' => 120, 'user_has_access' => $access, ); $sub_nav[] = array( 'name' => __( 'Delete Account', 'buddypress' ), 'slug' => 'delete-account', 'parent_url' => $settings_link, 'parent_slug' => $slug, 'screen_function' => 'bp_settings_screen_delete_account', 'position' => 130, 'user_has_access' => ! is_super_admin( bp_displayed_user_id() ) ); foreach ( $sub_nav as $su ) { bp_core_new_subnav_item( $su, 'members' ); } } /** * After settings nav is registered, let us reorganize. */ function buddydev_custom_reorganize_settings_nav() { bp_core_remove_subnav_item('settings', 'delete-account'); bp_core_remove_subnav_item('settings', 'data'); bp_core_remove_subnav_item('settings', 'profile'); buddydev_custom_setup_xprofile_settings_nav(); } add_action( 'bp_settings_setup_nav', 'buddydev_custom_reorganize_settings_nav', 300 );That is part 1. You will need to edit the profile templates to include the settings form and will also need to update the settings template to submit to profile page.
here is the code I added in my profile template(switch part)
case 'delete-account': bp_get_template_part( 'members/single/settings/delete-account' ); break; case 'profile': bp_get_template_part( 'members/single/settings/profile' ); break; case 'data': bp_get_template_part( 'members/single/settings/data' ); break;I hope you can take it from here.
If you are not comfortable with editing php files, please consider our customization service
https://buddydev.com/buddypress-plugin-customization-service/
Regards
Brajesh