I found a post written by Boone ( http://bpdevel.wordpress.com/author/boonebgorges/ ) where he says something about replacing all references to “$current_user” with “$bp->displayed_user” in order to allow super admins to have access to user settings.
I am using BuddyPress v.1.2.8 and found this code in bp-core-settings.php…
/***** NOTIFICATION SETTINGS ******/
function bp_core_screen_notification_settings() {
global $current_user, $bp_settings_updated;
$bp_settings_updated = false;
if ( $_POST ) {
check_admin_referer('bp_settings_notifications');
if ( $_POST ) {
foreach ( (array)$_POST as $key => $value ) {
update_user_meta( (int)$current_user->id, $key, $value );
}
}
$bp_settings_updated = true;
}
add_action( 'bp_template_title', 'bp_core_screen_notification_settings_title' );
add_action( 'bp_template_content', 'bp_core_screen_notification_settings_content' );
bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
}
function bp_core_screen_notification_settings_title() {
_e( 'Notification Settings', 'buddypress' );
}
function bp_core_screen_notification_settings_content() {
global $bp, $current_user, $bp_settings_updated; ?>
<form action="loggedin_user->domain . BP_SETTINGS_SLUG . '/notifications' ?>" method="post" id="settings-form">
<input type="submit" name="submit" value="" id="submit" class="auto" />
<?php
}
Can someone help me out with implementing this?
Thanks,
C.