@schweizersolutions
Active 1 month, 4 weeks ago
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
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 😉This is the output of the get_option:
array ( )
And this is, what update_option use to store:
array ( 'groups' => 1, )
Thank you Henry, but we already tried this hook.
Maybe I should give you some code:
class SKS_Test { public function __construct() { add_action( 'activated_plugin', array( $this, 'activated_plugin' ), 99, 1 ); } public function activated_plugin( $plugin ) { if ( $plugin == 'buddypress/bp-loader.php' && ! get_option( 'sks_installed', false ) ) { $bp_active_components = get_option( 'bp-active-components', array() ); $bp_active_components['groups'] = 1; delete_transient( '_bp_is_new_install' ); delete_transient( '_bp_activation_redirect' ); update_option( 'bp-active-components', $bp_active_components ); update_option( 'hide-loggedout-adminbar', 1 ); } } }
The group component is still disabled in the settings of BuddyPress 🙁
Hey Paul,
thats great, it works! Big thanks 🙂
Cheers
Andreas
Viewing 4 replies - 1 through 4 (of 4 total)