Skip to:
Content
Pages
Categories
Search
Top
Bottom

Edit/delete xprofile fields (Multisite)


  • tpstriker
    Participant

    @tpstriker

    Unless the buddypress plugin is network activated (I want it only on some specific sites) I can’t edit or delete any xprofile fields. I received an error message from wordpress that I don’t have access to that page.

    Running WordPress 4.7.3 (Multisite)
    Running BuddyPress 2.8.2

Viewing 1 replies (of 1 total)

  • Schweizer Solutions GmbH
    Participant

    @schweizersolutions

    We’ve the same problem.

    But we found a solution to fix it.

    File: \htdocs\wp-content\plugins\buddypress\bp-xprofile\bp-xprofile-admin.php

    Search the function “xprofile_admin_field” and there you replace the code from Line 609 to 630 with this:

    	$field_edit_url = add_query_arg(
    		array(
    			'page'     => 'bp-profile-setup',
    			'group_id' => (int) $field->group_id,
    			'field_id' => (int) $field->id,
    			'mode'     => 'edit_field'
    		),
    		//network_admin_url( 'users.php' )
    		'users.php'
    	);
    
    	if ( $field->can_delete ) {
    		$field_delete_url = add_query_arg(
    			array(
    				'page'     => 'bp-profile-setup',
    				'field_id' => (int) $field->id,
    				'mode'     => 'delete_field'
    			),
    			//network_admin_url( 'users.php' ) . '#tabs-' . (int) $field->group_id
    			'users.php#tabs-' . (int) $field->group_id
    		);
    	}

    So it don’t create nework admin url links, just site links. This will fix it till the next update.
    I hope the BuddyPress devs will fix it in the next release 😉

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar