Where i
-
Hello
I have moved “Change Profile picture” to Settings tab with the following:function add_settings_subnav_tab() { global $bp; // rename general settings tab //$bp->bp_options_nav['settings']['general']['name'] = 'Account Details'; // remove profile menu tab // unset($bp->bp_nav['profile']); // add 'Change profile picture' sub-menu tab bp_core_new_subnav_item( array( 'name' => 'Change Profile Picture', 'slug' => 'change-profile-picture', 'parent_url' => $bp->loggedin_user->domain . $bp->bp_nav['settings']['slug'] . '/', 'parent_slug' => $bp->bp_nav['settings']['slug'], 'screen_function' => 'change_profile_picture', 'position' => 30 ) ); } function change_profile_picture(){ add_action( 'bp_template_content', 'change_profile_picture_screen_content' ); xprofile_screen_change_avatar(); } add_filter('xprofile_template_change_avatar', 'filter_changeavatar_template'); function filter_changeavatar_template($template){ return 'members/single/plugins'; } function change_profile_picture_screen_content() { bp_get_template_part( 'members/single/profile/change-avatar' ); } add_action( 'bp_setup_nav', 'add_settings_subnav_tab', 100 );
But I don’t have anymore the avatar-upload-form with the camera feature.
How to put this in the members/single/profile/change-avatar.php file?Best wishes
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Where i’ is closed to new replies.