Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'notification user id'

Viewing 25 results - 26 through 50 (of 1,072 total)
  • Author
    Search Results
  • bonheurenvrac
    Participant

    Hello,

    We’re having an issue with users being automatically allowed in forums if an already approved member invited them.

    Besides removing the invitation link from the notification email, is there another solution to avoid these users from being automatically approved when registering using the custom registration link?

    Our actual configuration is to disallow everyone from registering in WP General settings, and then checking invitations and membership requests in the Buddypress Options Settings.

    Thank you for your help,

    Frank

    #325389

    Good afternoon. I have my own small community based on buddypress and bbpress. I want to add a push notification feature to my community. That is, I want users to be able to receive not only messages by mail from buddypress, but also push notifications, but I can not find a free and updated plugin. All the plugins that I find on the Internet have either not been updated for a long time, or do not have Russian language support, or they are paid and require api keys of external services. Could you please suggest me some good and free push notification plugin? Thanks.

    maustingraphics82
    Participant

    I’m trying to get groups_join_group to work when submitting a gravity form to create a user. All other fields are attached but they are not joining the group. This worked in 9.0

    Issue:

    
    // Create a new user
    		$new_user_id = wp_insert_user( $userdata );
    
    		// GFCommon::log_debug( __METHOD__ . '(): form => ' . print_r( $birthdate, true ) );
    
    		if ( ! is_wp_error( $new_user_id ) ) {
    			groups_join_group( $group_id, $new_user_id );
    

    Full code:

    add_action( 'gform_after_submission', 'add_member_gform_handle', 10, 2 );
    function add_member_gform_handle( $entry, $form ) {
    	if ( $form['title'] === 'Add Member' ) {
    		$fields     = $form['fields'];
    		$first_name = rgar( $entry, '1' );
    		$last_name  = rgar( $entry, '2' );
    		$login      = rgar( $entry, '3' );
    		$password   = rgar( $entry, '4' );
    		$email 	    = rgar( $entry, '5' );
    		$group_id   = rgar( $entry, '6' );
    		$role       = rgar( $entry, '11' );
    		$notification = rgar( $entry, '9.1' );
    		$birthdate = rgar( $entry, '10' );
    
    		$userdata = array(
    			'user_login' => $login,
    			'user_pass' => $password,
    		);
    
    		if ( ! empty( $first_name ) ) {
    			$userdata['first_name'] = $first_name;
    		}
    		if ( ! empty( $last_name ) ) {
    			$userdata['last_name'] = $last_name;
    		}
    		if ( ! empty( $email ) ) {
    			$userdata['user_email'] = $email;
    		}
    		if ( ! empty( $role ) ) {
    			$userdata['role'] = $role;
    		}
    
    		// Create a new user
    		$new_user_id = wp_insert_user( $userdata );
    
    		// GFCommon::log_debug( __METHOD__ . '(): form => ' . print_r( $birthdate, true ) );
    
    		if ( ! is_wp_error( $new_user_id ) ) {
    			groups_join_group( $group_id, $new_user_id );
    
    			// Make the user displayed as a staff on a clubhouse page
    			
    
    			if ( ! empty( $notification ) ) {
    				tml_send_new_user_notifications( $new_user_id, 'both' );
    			}
    
    			if ( ! empty( $birthdate ) ) {
    				$date = DateTime::createFromFormat('Y-m-d', $birthdate);
    				$date = $date->format('Ymd');
    
    				update_field('user_birthdate', $date, 'user_' . $new_user_id);
    			}
    		}
    
    		// Delete form entry
    		// GFAPI::delete_entry( $entry['id'] );
    	}
    }
    
    #324238
    maustingraphics82
    Participant

    I think the issue is within this part of the code but posted everything in the message above.

    // Create a new user
    		$new_user_id = wp_insert_user( $userdata );
    
    		// GFCommon::log_debug( __METHOD__ . '(): form => ' . print_r( $birthdate, true ) );
    
    		if ( ! is_wp_error( $new_user_id ) ) {
    			groups_join_group( $group_id, $new_user_id );
    
    			// Make the user displayed as a staff on a clubhouse page
    			if ( $role === 'staff' ) {
    				$group_ids =  groups_get_user_groups( $new_user_id );
    				$group = groups_get_group( array( 'group_id' => $group_ids['groups'][0]) );
    				$group_id = $group->id;
    				groups_promote_member( $new_user_id, $group_id, 'admin' );
    			} else {
    				groups_demote_member( $new_user_id, $group_id );
    			}
    
    			if ( ! empty( $notification ) ) {
    				tml_send_new_user_notifications( $new_user_id, 'both' );
    			}
    
    			if ( ! empty( $birthdate ) ) {
    				$date = DateTime::createFromFormat('Y-m-d', $birthdate);
    				$date = $date->format('Ymd');
    
    				update_field('user_birthdate', $date, 'user_' . $new_user_id);
    			}
    		}
    maustingraphics82
    Participant

    I use gravity forms to create a new user from a groups tab and assign them to a group, based on the group that the group admin is adding them from. This was working just fine in BuddyPress version 8.0 but since upgrading to 10 it is no longer working. What am I missing?

    /**
     *  Add member form handler. This form is currently located under the Group Information tab
     */
    add_action( 'gform_after_submission', 'add_member_gform_handle', 10, 2 );
    function add_member_gform_handle( $entry, $form ) {
    	if ( $form['title'] === 'Add Member' ) {
    		$fields     = $form['fields'];
    		$first_name = rgar( $entry, '1' );
    		$last_name  = rgar( $entry, '2' );
    		$login      = rgar( $entry, '3' );
    		$password   = rgar( $entry, '4' );
    		$email 	    = rgar( $entry, '5' );
    		$group_id   = rgar( $entry, '6' );
    		$role       = rgar( $entry, '11' );
    		$notification = rgar( $entry, '9.1' );
    		$birthdate = rgar( $entry, '10' );
    
    		$userdata = array(
    			'user_login' => $login,
    			'user_pass' => $password,
    		);
    
    		if ( ! empty( $first_name ) ) {
    			$userdata['first_name'] = $first_name;
    		}
    		if ( ! empty( $last_name ) ) {
    			$userdata['last_name'] = $last_name;
    		}
    		if ( ! empty( $email ) ) {
    			$userdata['user_email'] = $email;
    		}
    		if ( ! empty( $role ) ) {
    			$userdata['role'] = $role;
    		}
    
    		// Create a new user
    		$new_user_id = wp_insert_user( $userdata );
    
    		// GFCommon::log_debug( __METHOD__ . '(): form => ' . print_r( $birthdate, true ) );
    
    		if ( ! is_wp_error( $new_user_id ) ) {
    			groups_join_group( $group_id, $new_user_id );
    
    			// Make the user displayed as a staff on a clubhouse page
    			if ( $role === 'staff' ) {
    				$group_ids =  groups_get_user_groups( $new_user_id );
    				$group = groups_get_group( array( 'group_id' => $group_ids['groups'][0]) );
    				$group_id = $group->id;
    				groups_promote_member( $new_user_id, $group_id, 'admin' );
    			} else {
    				groups_demote_member( $new_user_id, $group_id );
    			}
    
    			if ( ! empty( $notification ) ) {
    				tml_send_new_user_notifications( $new_user_id, 'both' );
    			}
    
    			if ( ! empty( $birthdate ) ) {
    				$date = DateTime::createFromFormat('Y-m-d', $birthdate);
    				$date = $date->format('Ymd');
    
    				update_field('user_birthdate', $date, 'user_' . $new_user_id);
    			}
    		}
    
    		// Delete form entry
    		// GFAPI::delete_entry( $entry['id'] );
    	}
    }
    
    /**
     * Add Member form validation
     */
    add_filter( "gform_validation_$clubnet_add_member_form_id", 'add_member_form_validation' );
    function add_member_form_validation( $validation_result ) {
    	$form = $validation_result['form'];
    	$login = rgpost( 'input_3' );
    	$email = rgpost( 'input_5' );
    	$send_notificaton = rgpost( 'input_9_1' );
     
        if ( ! empty( $login ) && get_user_by( 'login', $login ) ) {
            $validation_result['is_valid'] = false;
     
            //finding Field with ID and marking it as failed validation
            foreach( $form['fields'] as &$field ) {
                if ( $field->id == '3' ) {
                    $field->failed_validation = true;
                    $field->validation_message = 'The user with this login already exists.';
                    break;
                }
            } // foreach
        }
    
    	if ( ! empty( $email ) && get_user_by( 'email', $email ) ) {
            $validation_result['is_valid'] = false;
     
            //finding Field with ID and marking it as failed validation
            foreach( $form['fields'] as &$field ) {
                if ( $field->id == '5' ) {
                    $field->failed_validation = true;
                    $field->validation_message = 'The user with this email already exists.';
                    break;
                }
            } // foreach
        }
    
    	// GFCommon::log_debug( 'VALIDATION' . __METHOD__ . '(): form => ' . print_r( 'Empty', true ) );
    	// Email is required if we requested to send a email about user's account
    	if ( ! empty( $send_notificaton ) && empty( $email ) ) {
    		$validation_result['is_valid'] = false;
            //finding Field with ID and marking it as failed validation
            foreach( $form['fields'] as &$field ) {
    			if ( $field->id == '5' ) {
                    $field->failed_validation = true;
                    $field->validation_message = 'Email is required since you requested to send an email.';
                    break;
                }
            } // foreach
    	}
     
        //Assign modified $form object back to the validation result
        $validation_result['form'] = $form;
        return $validation_result;
    }
    
    /**
     * Role field
     */
    add_action( 'init', 'clubnet_add_role_field' );
    function clubnet_add_role_field( $form ) {
    	global $wp_roles;
    	global $clubnet_add_member_form_id;
    
        $all_roles = $wp_roles->roles;
        // $editable_roles = apply_filters('editable_roles', $all_roles);
    	// $roles_to_skip = array( 'administrator' );
    	$editable_roles = $all_roles;
    	$roles_to_display = array( 'mentor', 'member', 'youth_leader', 'alumni', 'staff' );
    	$choices = array();
    
    	foreach ( $editable_roles as $role => $role_data ) {
    		if ( ! in_array( $role, $roles_to_display ) ) {
    			continue;
    		}
    
    		$choice = array(
    			'text' => $role_data['name'],
    			'value' => $role
    		);
    
    		array_push( $choices, $choice );
    	}
    
    	// Reorder to make member role first
    	usort( $choices, function( $choice ) {
    		if ( $choice['text'] === 'Member' ) {
    			return -1;
    		}
    
    		return 1;
    	} );
    
    	$form = GFAPI::get_form( $clubnet_add_member_form_id );
    	
    	if ( ! $form ) {
    		return;
    	}
    
    	$label = 'User Role';
    	$field_idx = -1;
    	$field_id = -1;
    
    	foreach ($form['fields'] as $idx => $field) {
    		if ( $field->label === $label ) {
    			$field_idx = $idx;
    			$field_id  = $field->id;
    		}
    	}
    
    	if ( $field_idx === -1 ) {
    		$field_id = GFFormsModel::get_next_field_id( $form['fields'] );
    	}
    
    	$props = array( 
    		'id' => $field_id,
    		'label' => $label,
    		'type' => 'select',
    		'choices' => $choices,
    	); 
    
    	if ( $field_idx === -1 ) {
    		$field = GF_Fields::create( $props );
    		$form['fields'][] = $field;
    		GFAPI::update_form( $form );
    	} else if ( $form['fields'][$field_idx]->choices !== $choices ) {
    		$field = GF_Fields::create( $props );
    		$form['fields'][$field_idx] = $field;
    		GFAPI::update_form( $form );
    	}
    }
    
    #324110

    In reply to: Database Errors

    Mike Witt
    Participant

    @shanebp – OK, I finally figured out how to replicate the error.

    Wordpress 5.9.2
    Twenty Twenty-Two Version: 1.1
    BuddyPress 10.2.0 (Nouveau)
    And some other plug-ins, including MemberPress and bbPress

    (1) Send two private messages to someone.
    (2) That person clicks on one of the notification, and the error happens
    Sometimes it happens if the recipient just refreshes their profile (and hence the notifications)

    Note: There need to be multiple private message notifications. If there’s just one notification the error doesn’t appear to happen.

    The error looks a bit different with BP Nouveau:

    [31-Mar-2022 17:41:07 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND user_id = 2 AND component_name = 'messages' AND component_action = 'new...' at line 1 for query UPDATE wp_bp_notifications SET is_new = 0 WHERE item_id IN () AND user_id = 2 AND component_name = 'messages' AND component_action = 'new_message' made by do_action('wp_ajax_messages_get_thread_messages'), WP_Hook->do_action, WP_Hook->apply_filters, bp_nouveau_ajax_get_thread_messages, bp_thread_the_message, BP_Messages_Thread_Template->the_message, do_action('thread_loop_start'), WP_Hook->do_action, WP_Hook->apply_filters, bp_messages_screen_conversation_mark_notifications, bp_notifications_mark_notifications_by_item_ids, BP_Notifications_Notification::update_id_list

    #324036

    In reply to: Database Errors

    Mike Witt
    Participant

    @shanebp, I have a bit more information, and I wonder if you could possibly take another look?

    (1) I was wrong about the error being related to a bbPress closed topic. That turned out to be just a coincidence. It’s happened several more times now, and actually the times don’t line up with any posts or replies that I can find.

    (2) I’ve checked with bbPress and GeneratePress. Nobody can find any reason to think it’s related to bbP. GP tech support said that generatepress is in the error log only because the SQL request is being run inside the GP template, page.php, and GeneratePress doesn’t have any code that affects SQL requests. GP support believes that something called “bp_replace_the_content” is involved (for whatever that’s worth).

    (3) It’s only happened since I updated to BP 10.1.0, however I never updated to 10.0.0 so 10.1.0 was my first update to BP 10.

    (4) The update that gets the error is always:

    UPDATE wp_bp_notifications SET is_new = 0 WHERE item_id IN () AND user_id = 1492 AND component_name = ‘messages’ AND component_action = ‘new_message’

    (With different user_ids or course) I assume the problem it the empty IN (), right?

    (5) I haven’t been able to think of any way to attempt to reproduce the error.

    Any ideas at all would be much appreciated!

    Mike

    bigtinydesigns
    Participant

    Hi,

    WordPress Version 5.9.2
    Theme: MagicVersion: 1.10.0 By Bdaia
    Website: miComunidad.com

    When I install the BuddyPress.10.2.0 I get these errors:

    WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_notifications' doesn't exist]
    SELECT COUNT(*) FROM wp_wkkr_bp_notifications n WHERE user_id IN (1) AND component_name IN ('xprofile','friends','messages','activity','groups','members') AND is_new = 1
    
    WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_messages_recipients' doesn't exist]
    SELECT SUM(unread_count) FROM wp_wkkr_bp_messages_recipients WHERE user_id = 1 AND is_deleted = 0 AND sender_only = 0
    
    WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_friends' doesn't exist]
    SELECT id FROM wp_wkkr_bp_friends WHERE (initiator_user_id = 1 OR friend_user_id = 1) ORDER BY date_created DESC
    
    WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_invitations' doesn't exist]
    SELECT DISTINCT i.item_id FROM wp_wkkr_bp_invitations i WHERE user_id IN (1) AND class IN ('bp_groups_invitation_manager') AND type = 'invite' AND invite_sent = 1 AND accepted = 0
    
    WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_groups' doesn't exist]
    SELECT DISTINCT g.id FROM wp_wkkr_bp_groups g WHERE g.id IN (0) ORDER BY g.date_created DESC
    
    WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_groups' doesn't exist]
    SELECT COUNT(DISTINCT g.id) FROM wp_wkkr_bp_groups g WHERE g.id IN (0)
    
    WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_notifications' doesn't exist]
    SELECT id, user_id, item_id, secondary_item_id, component_name, component_action, date_notified, is_new, COUNT(id) as total_count FROM wp_wkkr_bp_notifications n WHERE user_id IN (1) AND component_name IN ('xprofile','friends','messages','activity','groups','members') AND is_new = 1 GROUP BY user_id, component_name, component_action ORDER BY date_notified desc

    How do I create these database tables? Please help?

    Thanks,

    Carlos

    #323944
    Mike Witt
    Participant

    Any advice on debugging the error below?
    WordPress 5.9.2, BuddyPress 10.1.0, bbPress 2.6.9
    (I haven’t upgraded to 10.2.0 yet, but I don’t see any fixes that seems to apply to this.)
    It happens “once in a while” since upgrading to 10.1.0. (Four times since March 9th.)
    It *might* be related to email notifications (mentions?) in a bbPress closed topic.

    [09-Mar-2022 17:13:53 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND user_id = 1348 AND component_name = 'messages' AND component_action = 'new' at line 1 for query UPDATE wp_bp_notifications SET is_new = 0 WHERE item_id IN () AND user_id = 1348 AND component_name = 'messages' AND component_action = 'new_message'
    made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/generatepress/page.php'), generate_do_template_part, get_template_part, locate_template, load_template, require('/themes/generatepress/content-page.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, bp_replace_the_content, apply_filters('bp_replace_the_content'), WP_Hook->apply_filters, BP_Members_Theme_Compat->single_dummy_content, bp_buffer_template_part, bp_get_template_part, bp_locate_template, load_template, require('/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/home.php'), bp_get_template_part, bp_locate_template, load_template, require('/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/messages.php'), bp_get_template_part, bp_locate_template, load_template, require('/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/messages/single.php'), bp_thread_the_message, BP_Messages_Thread_Template->the_message, do_action('thread_loop_start'), WP_Hook->do_action, WP_Hook->apply_filters, bp_messages_screen_conversation_mark_notifications, bp_notifications_mark_notifications_by_item_ids, BP_Notifications_Notification::update_id_list
    Mike Witt
    Participant

    Are there any functions to turn a specific user’s notifications off an on. Something like:
    bp_notification_on( $uid, $type)
    bp_notifications_off( $uid)
    Or something along those lines?

    elitechsavvy
    Participant

    Hi folks,

    I’m troubleshooting why users cannot write on other members’ posts.

    My wall shows a green button but on other members are grayed out.

    These have been my actions so far:

    1. I’ve checked on Activity Settings and is selected. Which I did on/off with no results.
    2. I’ve run the tool options to “repair”
    3. Remove the plugin (Disable/remove)
    4. Install/activate the plugin
    5. All components are active
    6. All options are active
    7. WordPress report – Version 9.1.1
    Active components Community Members, Extended Profiles, Account Settings, Friend Connections, Private Messaging, Activity Streams, Notifications, User Groups, Site Tracking
    8. When inspecting POST grayed button got this line results: <input class=”loading” type=”submit” name=”ac_form_submit” value=”post” disabled=””>
    9. Check WordPress integrity/checksum – reinstall 5.8 FYI
    10. Reboot the server

    So far no luck.

    Any tips/hints will be highly appreciated!

    #321375
    littlebearclaw
    Participant

    Hello, I’m looking for suggestions for the easiest and most reliable way to place a notification bell in the main menu of my website.

    My plan is to use GamiPress to gamify the site to get users involved. There is an integration plugin between GamiPress and the BuddyPress Notification Bell Plugin. My main concern is that this plugin (BuddyPress Notification Bell) has not been updated in a couple of years.

    Can anyone tell me if they think this would work? Do you have any better ideas on how to accomplish what I’m looking for?

    Any help is greatly appreciated.

    Natalie
    Participant

    I’ve been trying to filter only the Activity Directory stream to show only a specific activity item type (in this case, it’s “new_product_page”, which I created with the help of the codex section on post types).

    I successfully managed to achieve this with the following code:

    function bpfr_filtering_activity( $retval ) {
    if ( bp_is_page( 'activity' ) ) {
    	// activities to filter on, comma separated
    	$retval['action'] = 'new_product_page, ';
    	$retval['max'] = '50';
    }		
    		return $retval;
    	}	
    add_filter( 'bp_before_has_activities_parse_args', 'bpfr_filtering_activity' );

    Although eventually I started to notice some errors where users were getting notification URLs (e.g. “John commented on one of your updates”) where the notification URLs weren’t appending the comment identifier at the end (e.g. /activity/p/762/?rid=310#acomment-780), instead ending prematurely with only the users referrer ID (e.g. /activity/p/762/?rid=310).

    This means the notification URLs would take you to the commented user’s profile, rather than the specific comment.

    After removing the above code from filtering the activity directory, suddenly all of the notification URLs issues went away and everything appeared to work flawlessly.

    I recall a wordpress developer once stating that is is advised NOT to block activity_comment and activity_update activities, because it will cause errors in BuddyPress.

    What I am wondering is if this is true? And, if there is a way to filter the Activity Directory to show only a specific post type (e.g. new_product_page) without it leading to errors elsewhere in BP? Is there a correct way to do it?

    knowmates
    Participant

    Hello,

    is it possible to inform every user when an admin/author posted a new post?

    We hid the WP admin bar to participants so we want to show the notification with the little bell.

    Best regards

    #320464
    tarunweb1
    Participant

    Hello Guys,

    I am creating a post subscription. When any user subscribe to any post I want to send them notifications about comments and post activities. I am adding custom notifications to buddypress. Notifications are adding but in frontend the title of notification is not showing. I checked many forums but did not find any solution.

    Below is my code:

    
    public function __construct() {
          
          add_filter( 'bp_notifications_get_registered_components', array($this,'custom_filter_notifications_get_registered_components'),20 );
          add_filter( 'bp_notifications_get_notifications_for_user', array($this,'custom_format_buddypress_notifications'), 10, 7 );
          add_action( 'wp_insert_comment', array($this,'bp_custom_add_notification'), 99, 2 );
       }
    
    For custom component
    
    public function custom_filter_notifications_get_registered_components( $component_names = array() ) {
     
           // Force $component_names to be an array
           if ( ! is_array( $component_names ) ) {
               $component_names = array();
           }
        
           // Add 'custom' component to registered components array
           array_push( $component_names, 'custom' );
        
           // Return component's with 'custom' appended
           return $component_names;
       }
    
    For notification formatting
    
    public function custom_format_buddypress_notifications( $content, $item_id, $secondary_item_id, $total_items, $format = 'string', $action, $component ) {
         	   
             if ( 'custom_action' === $action ){
               $comment = get_comment( $item_id );
            
               $custom_title = $comment->comment_author . ' commented on the post ' . get_the_title( $comment->comment_post_ID );
               $custom_link  = get_comment_link( $comment );
               $custom_text = $comment->comment_author . ' commented on your post ' . get_the_title( $comment->comment_post_ID );
        
               // WordPress Toolbar
               if ( 'string' === $format ) {
                   $data_to_return = apply_filters_ref_array( 'custom_filter', '<a href="' . esc_url( $custom_link ) . '" title="' . esc_attr( $custom_title ) . '">' . esc_html( $custom_text ) . '</a>', $custom_text, $custom_link );
                   
        
               // Deprecated BuddyBar
               } else {
                   $data_to_return = apply_filters_ref_array( 'custom_filter', array(
                       'text' => $custom_text,
                       'link' => $custom_link
                   ), $custom_link, (int) $total_items, $item_id, $secondary_item_id );
               }
               
             return $data_to_return;     
          } else{
             return $action;
          } 
       }
    
    For adding notification
    
    public function bp_custom_add_notification( $comment_id, $comment_object ) {
     
          $subscribed_user =  get_post_meta( $comment_object->comment_post_ID , 'subscribed_user',true ); 
          
          if(!empty($subscribed_user) && is_array($subscribed_user)){
             for ($i=0; $i < count($subscribed_user); $i++) { 
          		 if ( bp_is_active( 'notifications' ) ) {
                      bp_notifications_add_notification( array(
                         'user_id'           => $subscribed_user[$i],
                         'item_id'           => $comment_id,
                         'component_name'    => 'custom',
                         'component_action'  => 'custom_action',
                         'date_notified'     => bp_core_current_time(),
                         'is_new'            => 1,
                       ) );
          		 }
             }
          }   
       }
    
    

    Please suggest best possible way to fix this issue.

    Thank You

    #320358
    Anonymous User 18296540
    Inactive

    100% bug in POT/PO files or notification system. It is not possible to translate the contents of activation emails. Only the fragments remain translated, but the greater part (no error was made) remains in English. This applies to phrases such as:

    1)
    Thanks for registering!

    To complete the activation of your account and site, go to the following link: {{{activate-site.url}}}.

    After you activate, you can visit your site at {{{user-site.url}}}.

    2)
    Thanks for registering!

    To complete the activation of your account and site, go to the following link: {{{activate-site.url}}}

    After you activate, you can visit your site at {{{user-site.url}}}.

    3)
    Thanks for registering!

    To complete the activation of your account, go to the following link and click on the ‘Activate’ button: {{{activate.url}}}

    If the ‘Activation Key’ field is empty, copy and paste the following into the field – {{key}}

    4)
    Thanks for registering!

    To complete the activation of your account, go to the following link and click on the Activate button:
    {{{activate.url}}}

    If the ‘Activation Key’ field is empty, copy and paste the following into the field – {{key}}

    5)
    Your account was activated successfully! You can now log in with the username and password you provided when you signed up.

    6)
    Your account was activated successfully! You can now log in with the username and password you provided when you signed up.

    #320158
    pooriaarab
    Participant

    Hi Shane,

    Thanks for the quick reply and it actually worked! Thank you 🙂

    The sidebar shows for a specific user type now but it shows up in the wrong location. I tried the code in different places but it’s in the middle of the profile now and want it to be on the left side like the normal sidebar for user profile.

    The first part of the code is the simplified version you mentioned and the css styling. The rest is the remaining of the loop on that page. I suppose the code should go somewhere in there:

    </div><!-- #item-body -->
                <?php
                $member_type = bp_get_member_type( bp_displayed_user_id() );
           if ( $member_type == 'club' ) {?>
               <div id="secondary" class="widget-area sm-grid-1-1 no-padding-top" role="complementary">
                   <div class="bb-sticky-sidebar">
                       <?php dynamic_sidebar( 'club_sidebar'); ?>
                   </div>
               </div>
           <?php
            }
           
           ?>
       <?php
                    
                if ( ( !isset($bp_nouveau_appearance['user_nav_display']) || !$bp_nouveau_appearance['user_nav_display'] ) && is_active_sidebar('user_activity') && bp_is_user_activity() ) {
    
    				ob_start();
    				dynamic_sidebar('user_activity' );
    				$sidebar = ob_get_clean();  // get the contents of the buffer and turn it off.
    				if ( trim( $sidebar ) ) { ?>
    					<div id="user-activity" class="widget-area" role="complementary">
    						<div class="bb-sticky-sidebar">
    							<?php dynamic_sidebar( 'user_activity' ); ?>
    						</div>
    					</div><?php
    				}
    			}
              
    			if ( ( !isset($bp_nouveau_appearance['user_nav_display']) || !$bp_nouveau_appearance['user_nav_display'] ) && is_active_sidebar( 'profile' ) && !bp_is_user_settings() && !bp_is_user_messages() && !bp_is_user_notifications() && !bp_is_user_profile_edit() && !bp_is_user_change_avatar() && !bp_is_user_change_cover_image() && !bp_is_user_front() && $profile_cover_width == 'full' ) {
    
    			    ob_start();
    	            dynamic_sidebar('profile' );
    	            $sidebar = ob_get_clean();  // get the contents of the buffer and turn it off.
    				if ( trim( $sidebar ) ) { ?>
    					<div id="secondary" class="widget-area sm-grid-1-1 no-padding-top" role="complementary">
    						<div class="bb-sticky-sidebar">
    							<?php dynamic_sidebar( 'profile'); ?>
    						</div>
    					</div>
    					<?php
    				}
    			}
    			?>
    		</div>
    
    	</div><!-- // .bp-wrap -->
        	<?php if ( isset($bp_nouveau_appearance['user_nav_display']) && $bp_nouveau_appearance['user_nav_display'] &&  is_active_sidebar( 'profile' ) && !bp_is_user_settings() && !bp_is_user_messages() && !bp_is_user_notifications() && !bp_is_user_profile_edit() && !bp_is_user_change_avatar() && !bp_is_user_change_cover_image() && !bp_is_user_front() && $profile_cover_width != 'default' ) { ?>
    			</div>
    
    			<?php
    			ob_start();
    			dynamic_sidebar('profile' );
    			$sidebar = ob_get_clean();  // get the contents of the buffer and turn it off.
    			if ( trim( $sidebar ) ) {
    				?>
    				<div id="secondary" class="widget-area sm-grid-1-1 no-padding-top" role="complementary">
    					<div class="bb-sticky-sidebar">
    						<?php dynamic_sidebar( 'profile'); ?>
    					</div>
    				</div>
    				<?php
    			}
    			?>
    

    This is a screenshot of where the sidebar is appearing:

    Certificates is in the middle. How can it be in the place of cart?

    -How can I move the sidebar (Certificates) to where the left sidebar (Cart) is?

    -And how can I repeat this process for 3 different user types? 3 custom sidebars for 3 user types.

    -I was not sure what “ob_start()” and “bp_nouveau_appearance” were that appear in the beginning of the other sidebar code. How can I add them to the custom sidebar? Are they even necessary?

    Appreciate the support and the community around BuddyPress

    #320143
    pooriaarab
    Participant

    Hi,

    I’m trying to add a custom sidebar (for the widgets) for different user types. We have 3 different user types as “Member”, “Instructor”, and “Facilitator”. For these 3 different user types, we want 3 different sidebars. So, as you would go on Appearance -> Widgets you can see 3 sidebars and you can add the widgets to and they will ONLY appear for that specific user type.

    I managed to register the sidebar in the functions.php in the Childs Theme but was not sure how to call it in the BuddyPress > Members > Single > Home.php. I know I have to use bp_get_member_type() and if conditional to make it and call it using dynamic_sidebar(). Though I tried it and as the code is in the loop, it does not work.

    This is the code in the home.php which I assume I should include it in:

    if ( ( !isset($bp_nouveau_appearance['user_nav_display']) || !$bp_nouveau_appearance['user_nav_display'] ) && is_active_sidebar( 'profile' ) && !bp_is_user_settings() && !bp_is_user_messages() && !bp_is_user_notifications() && !bp_is_user_profile_edit() && !bp_is_user_change_avatar() && !bp_is_user_change_cover_image() && !bp_is_user_front() && $profile_cover_width == 'full' ) {

    ob_start();
    dynamic_sidebar('profile' );
    $sidebar = ob_get_clean(); // get the contents of the buffer and turn it off.
    if ( trim( $sidebar ) ) { ?>
    <div id="secondary" class="widget-area sm-grid-1-1 no-padding-top" role="complementary">
    <div class="bb-sticky-sidebar">
    <?php dynamic_sidebar( 'profile'); ?>
    </div>
    </div>
    <?php
    }
    }

    I am using BuddyBoss theme.

    benofinil
    Participant

    Hello all,

    I’ve looked throught the forum and many plugins, and I can not solve this problem which seems “so simple” to me !

    How to configure an email sent to the administrator each time a registration is done ?

    Let me explain :
    My community system is based on pre-registered users in a database.
    So, when a user registers on my site, he receives an email (originally, the wordpress email with the activation link) telling him that his account is being verified by the administrator.
    Then, the account is in the user pending system, and the administrator can activate or not this account manually.
    If the account is validate, the user will receive a welcoming message, etc.

    BUT, I would like to receive an email informing me that a user has registered, ie who has completed the registration form BUT has not yet validated his account. However, the default wordpress email is only sent to the administrator when the account is validate.

    It’s really exhausting to check permanetly if a user is in the pending system, in order to validate or refuse its account…

    Hope someone could help me…
    Thanks

    #319864
    soberstoner
    Participant

    I am still experiencing this issue and have found no possible solutions. I would like to add that email notifications are also not being sent. I have checked if notifications are working by using a notification widget and viewing them there, on the subsite. Users are not being notified of new notifications.

    lynnapp
    Participant

    Hi,
    I have been using the below code, So when someone clicks on the profile of an association it will redirect to the products tab.
    All is well and I can use the other tabs to navigate around except when I click on the activities tab. It takes me to the products tab users cannot see the associations (role) activity stream.

    I removed this code and it worked fine so it is some where here. I have this in the child-theme/buddypress-nouveau/members/single/home.php page

    WP Version 5.7.2 PHP 7.4.12

    	$displayed_user =  new WP_User( bp_displayed_user_id() );
    
    	if  ( ( in_array( 'associations', $displayed_user->roles, true ))   &&  
    		(strpos($_SERVER['REQUEST_URI'], "my-products") == false)  &&
    		(strpos($_SERVER['REQUEST_URI'], "front") == false)  &&
    		(strpos($_SERVER['REQUEST_URI'], "profile") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "activity") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "friends") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "my-donations") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "notifications") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "messages") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "groups") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "location") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "invite-anyone") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "settings") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "w-my-account") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "store-manager") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "articles") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "media") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "item-header-content") == false) 
    		) 
     
    	{
     //is assoc and is not already redirected to products or other profile links
    	$currenturl =  $_SERVER['REQUEST_URI'];
        	$urlto = $currenturl."my-products";
    ?>
            <script>
    	window.location.replace("<?php echo($urlto); ?>");
    	</script>
    <?php	
    
      	} else {  //  just load
    ?>
    

    Thank you for helping with this

    #319111
    vincenzon617
    Participant

    How do I edit the activity stream? I would like to remove the “favouriting, and @mentions, all with full RSS feed and email notification support” capabilities from my site. So ideally the users will not receive email notifications and they cannot be mentioned in a comment.

    #316907
    lynnapp
    Participant

    in my child theme I have added this to the members/single/parts/item-nav

            <label class="toggle" for="toggle">☰ <span>Menu</span></label>
            <input class="toggle" id="toggle" type="checkbox">
    
    <nav class="<?php bp_nouveau_single_item_nav_classes(); ?>" id="object-nav" role="navigation" aria-label="<?php esc_attr_e( 'Member menu', 'buddypress' ); ?>">
    	<?php if ( bp_nouveau_has_nav( array( 'type' => 'primary' ) ) ) : ?>
    		<ul>
       <?php bp_nav_menu(); ?> 
    		</ul>
    	<?php endif; ?>
    </nav>
     

    I have removed the submenu form all the other page fronts
    So this is the problem

    1. The loop for the sub-menus is
    a. Putting the profile menu items under a new submenu under settings
    (this submenu )

    	<ul class="sub-menu">
    		<li id="public-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/#item-header-content">View</a></li>
    		<li id="edit-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/edit/#item-header-content">Edit</a></li>
    		<li id="change-avatar-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/change-avatar/#item-header-content">Change Profile Photo</a></li>
    		<li id="change-cover-image-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/change-cover-image/#item-header-content">Change Cover Image</a></li>
    	</ul>

    Here is the source codes for the menus while looking at looking at my own profile not as admin.

    So I was wondering if the walker argument could help with this, but I could not find any documentation on that part.
    Could you point me to where or how to get the profile submenu items under the profile li and not as a sub sub of settings?

    <nav class="main-navs no-ajax bp-navs single-screen-navs user-nav-tabs tabbed-links horizontal users-nav" id="object-nav" role="navigation" aria-label="Member menu">
    		<ul>
       <div class="menu-bp-container"><ul id="menu-bp" class="menu"><li id="front-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/front/#item-header-content">Home</a>
    <ul class="sub-menu">
    	<li id="public-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/front/#item-header-content">View</a></li>
    </ul>
    </li>
    <li id="xprofile-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/profile/#item-header-content">Profile</a></li>
    <li id="activity-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/activity/#item-header-content">Activity</a>
    <ul class="sub-menu">
    	<li id="just-me-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/activity/#item-header-content">Personal</a></li>
    	<li id="activity-mentions-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/activity/mentions/#item-header-content">Mentions</a></li>
    	<li id="activity-favs-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/activity/favorites/#item-header-content">Favorites</a></li>
    	<li id="activity-friends-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/activity/friends/#item-header-content">Friends</a></li>
    	<li id="activity-groups-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/activity/groups/#item-header-content">Groups</a></li>
    </ul>
    </li>
    <li id="friends-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/friends/#item-header-content">Friends <span class="count" style="cursor: pointer;">1</span></a>
    <ul class="sub-menu">
    	<li id="friends-my-friends-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/friends/#item-header-content">Friendships</a></li>
    	<li id="requests-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/friends/requests/#item-header-content">Requests</a></li>
    </ul>
    </li>
    <li id="notifications-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/notifications/#item-header-content">Notifications <span class="count" style="cursor: pointer;">1</span></a>
    <ul class="sub-menu">
    	<li id="notifications-my-notifications-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/notifications/#item-header-content">Unread</a></li>
    	<li id="read-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/notifications/read/#item-header-content">Read</a></li>
    </ul>
    </li>
    <li id="invite-anyone-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/invite-anyone/#item-header-content">Send Invites</a>
    <ul class="sub-menu">
    	<li id="invite-new-members-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/invite-anyone/#item-header-content">Invite New Members</a></li>
    	<li id="sent-invites-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/invite-anyone/sent-invites/#item-header-content">Sent Invites</a></li>
    </ul>
    </li>
    <li id="settings-personal-li" class="menu-parent current-menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/settings/#item-header-content">Settings</a>
    <ul class="sub-menu">
    	<li id="general-personal-li" class="menu-child current-menu-item"><a href="http://localhost/wordpress/members/athlete-lynn/settings/#item-header-content">General</a></li>
    	<li id="notifications-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/settings/notifications/#item-header-content">Email</a></li>
    	<li id="profile-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/settings/profile/#item-header-content">Profile Visibility</a>
    	<ul class="sub-menu">
    		<li id="public-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/#item-header-content">View</a></li>
    		<li id="edit-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/edit/#item-header-content">Edit</a></li>
    		<li id="change-avatar-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/change-avatar/#item-header-content">Change Profile Photo</a></li>
    		<li id="change-cover-image-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/change-cover-image/#item-header-content">Change Cover Image</a></li>
    	</ul>
    </li>
    	<li id="invites-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/settings/invites/#item-header-content">Group Invites</a></li>
    	<li id="data-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/settings/data/#item-header-content">Export Data</a></li>
    	<li id="delete-account-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/settings/delete-account/#item-header-content">Delete Account</a></li>
    </ul>
    </li>
    <li id="groups-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/groups/#item-header-content">Groups <span class="no-count">0</span></a>
    <ul class="sub-menu">
    	<li id="groups-my-groups-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/groups/#item-header-content">Memberships</a></li>
    	<li id="invites-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/groups/invites/#item-header-content">Invitations</a></li>
    </ul>
    </li>
    </ul></div> 
    		</ul>
    </nav>
    #316925
    lynnapp
    Participant

    in my child theme I have added this to the members/single/parts/item-nav
    <label class=”toggle” for=”toggle”>☰ <span>Menu</span></label>
    <input class=”toggle” id=”toggle” type=”checkbox”>

    <nav class=”<?php bp_nouveau_single_item_nav_classes(); ?>” id=”object-nav” role=”navigation” aria-label=”<?php esc_attr_e( ‘Member menu’, ‘buddypress’ ); ?>”>
    <?php if ( bp_nouveau_has_nav( array( ‘type’ => ‘primary’ ) ) ) : ?>

      <?php bp_nav_menu(); ?>

    <?php endif; ?>
    </nav>

    I have removed the submenu form all the other page fronts
    So this is the problem

    1. The loop for the sub-menus is
    a. Putting the profile menu items under a new submenu under settings
    (this submenu )

    	<ul class="sub-menu">
    		<li id="public-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/#item-header-content">View</a></li>
    		<li id="edit-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/edit/#item-header-content">Edit</a></li>
    		<li id="change-avatar-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/change-avatar/#item-header-content">Change Profile Photo</a></li>
    		<li id="change-cover-image-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/change-cover-image/#item-header-content">Change Cover Image</a></li>
    	</ul>

    Here is the source codes for the menus while looking at looking at my own profile not as admin.

    So I was wondering if the walker argument could help with this, but I could not find any documentation on that part.
    Could you point me to where or how to get the profile submenu items under the profile li and not as a sub sub of settings?

    <nav class="main-navs no-ajax bp-navs single-screen-navs user-nav-tabs tabbed-links horizontal users-nav" id="object-nav" role="navigation" aria-label="Member menu">
    		<ul>
       <div class="menu-bp-container"><ul id="menu-bp" class="menu"><li id="front-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/front/#item-header-content">Home</a>
    <ul class="sub-menu">
    	<li id="public-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/front/#item-header-content">View</a></li>
    </ul>
    </li>
    <li id="xprofile-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/profile/#item-header-content">Profile</a></li>
    <li id="activity-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/activity/#item-header-content">Activity</a>
    <ul class="sub-menu">
    	<li id="just-me-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/activity/#item-header-content">Personal</a></li>
    	<li id="activity-mentions-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/activity/mentions/#item-header-content">Mentions</a></li>
    	<li id="activity-favs-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/activity/favorites/#item-header-content">Favorites</a></li>
    	<li id="activity-friends-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/activity/friends/#item-header-content">Friends</a></li>
    	<li id="activity-groups-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/activity/groups/#item-header-content">Groups</a></li>
    </ul>
    </li>
    <li id="friends-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/friends/#item-header-content">Friends <span class="count" style="cursor: pointer;">1</span></a>
    <ul class="sub-menu">
    	<li id="friends-my-friends-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/friends/#item-header-content">Friendships</a></li>
    	<li id="requests-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/friends/requests/#item-header-content">Requests</a></li>
    </ul>
    </li>
    <li id="notifications-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/notifications/#item-header-content">Notifications <span class="count" style="cursor: pointer;">1</span></a>
    <ul class="sub-menu">
    	<li id="notifications-my-notifications-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/notifications/#item-header-content">Unread</a></li>
    	<li id="read-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/notifications/read/#item-header-content">Read</a></li>
    </ul>
    </li>
    <li id="invite-anyone-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/invite-anyone/#item-header-content">Send Invites</a>
    <ul class="sub-menu">
    	<li id="invite-new-members-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/invite-anyone/#item-header-content">Invite New Members</a></li>
    	<li id="sent-invites-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/invite-anyone/sent-invites/#item-header-content">Sent Invites</a></li>
    </ul>
    </li>
    <li id="settings-personal-li" class="menu-parent current-menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/settings/#item-header-content">Settings</a>
    <ul class="sub-menu">
    	<li id="general-personal-li" class="menu-child current-menu-item"><a href="http://localhost/wordpress/members/athlete-lynn/settings/#item-header-content">General</a></li>
    	<li id="notifications-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/settings/notifications/#item-header-content">Email</a></li>
    	<li id="profile-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/settings/profile/#item-header-content">Profile Visibility</a>
    	<ul class="sub-menu">
    		<li id="public-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/#item-header-content">View</a></li>
    		<li id="edit-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/edit/#item-header-content">Edit</a></li>
    		<li id="change-avatar-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/change-avatar/#item-header-content">Change Profile Photo</a></li>
    		<li id="change-cover-image-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/change-cover-image/#item-header-content">Change Cover Image</a></li>
    	</ul>
    </li>
    	<li id="invites-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/settings/invites/#item-header-content">Group Invites</a></li>
    	<li id="data-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/settings/data/#item-header-content">Export Data</a></li>
    	<li id="delete-account-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/settings/delete-account/#item-header-content">Delete Account</a></li>
    </ul>
    </li>
    <li id="groups-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/groups/#item-header-content">Groups <span class="no-count">0</span></a>
    <ul class="sub-menu">
    	<li id="groups-my-groups-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/groups/#item-header-content">Memberships</a></li>
    	<li id="invites-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/groups/invites/#item-header-content">Invitations</a></li>
    </ul>
    </li>
    </ul></div> 
    		</ul>
    </nav>
    Coequipier.com
    Participant

    I have a BuddyPress social networks in a multi network WordPress install (WordPress multisite), thanks to LH Buddypress Multi Network plugin.

    Everything is up to date.

    How can I prevent people from accessing to a profile page from another blog?

    For example :
    teacherSite, teacherUser
    studentSite, studentUser

    I have restricted access to site for non-member.
    teacherUser can only connect on teacherSite.
    And he can’t see in the directory other users from others blogs.

    If studentUser knows the teacherUser username or if he finds or tests…

    He can go to studentSite.domain.com/members/teacherUser/, and he can see the profile of teacherUser even though teacherUser is not linked to studentSite.

    Fortunately, there is no information (because everything else is well segregated) except the name and the gravatar.

    But he can still make a connection request or send him a private message!
    teacherUser will not see any notification on teacherSite. But he will potentially receive an email which will redirect him to studentSite without being able to connect to it.

    How to avoid this?

    If you know, you are a master!

Viewing 25 results - 26 through 50 (of 1,072 total)
Skip to toolbar