Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wp user activate'

Viewing 25 results - 76 through 100 (of 902 total)
  • Author
    Search Results
  • #303673
    zoleest
    Participant

    Still not worked, but I found out a not too elegant solution. As far as I understand there is an order how the hooks run. There is a hook in class-buddypress.php add_action( 'bp_core_signup_user', array( $this, 'subscribe_from_form' ), 10, 4 ); so I added to my hooks 11, 4 so this is my code now:

    function xprofile_sync_wp_profile2( $user_id = 0 ) {	
    	
    	
    	
    	// Bail if profile syncing is disabled
    	if ( bp_disable_profile_sync() ) {
    		return true;
    	}
    
    	if ( empty( $user_id ) ) {
    		$user_id = bp_loggedin_user_id();
    	}
    
    	if ( empty( $user_id ) ) {
    		return false;
    	}
        
        global $wpdb;
    	
        // Get name from x-fields
        $display_name = xprofile_get_field_data('Név',$user_id );
        
    
        $wpdb->query( $wpdb->prepare( "UPDATE wphu_users SET display_name = '%s' WHERE ID = %d", $display_name,  $user_id ) );
    	
    	
    }
    add_action( 'xprofile_updated_profile', 'xprofile_sync_wp_profile2', 11, 4);
    add_action( 'bp_core_signup_user',      'xprofile_sync_wp_profile2', 11, 4);
    add_action( 'bp_core_activated_user',   'xprofile_sync_wp_profile2', 11, 4);

    And fortunately it works now 🙂 I don’t know if this is a correct way, but work, so I’m okay with it.

    #303549
    airsid
    Participant

    Hello,
    Please find attached my plugins/buddypress/bp-themes/bp-default/registration/register.php content

    <?php get_header( 'buddypress' ); ?>
    
    	<div id="content">
    		<div class="padder">
    
    		<?php do_action( 'bp_before_register_page' ); ?>
    
    		<div class="page" id="register-page">
    
    			<form action="" name="signup_form" id="signup_form" class="standard-form" method="post" enctype="multipart/form-data">
    
    			<?php if ( 'registration-disabled' == bp_get_current_signup_step() ) : ?>
    				<?php do_action( 'template_notices' ); ?>
    				<?php do_action( 'bp_before_registration_disabled' ); ?>
    
    					<p><?php _e( 'User registration is currently not allowed.', 'buddypress' ); ?></p>
    
    				<?php do_action( 'bp_after_registration_disabled' ); ?>
    			<?php endif; // registration-disabled signup setp ?>
    
    			<?php if ( 'request-details' == bp_get_current_signup_step() ) : ?>
    
    				<h2><?php _e( 'Create an Account', 'buddypress' ); ?></h2>
    
    				<?php do_action( 'template_notices' ); ?>
    
    				<p><?php _e( 'Registering for this site is easy, just fill in the fields below and we\'ll get a new account set up for you in no time.', 'buddypress' ); ?></p>
    
    				<?php do_action( 'bp_before_account_details_fields' ); ?>
    
    				<div class="register-section" id="basic-details-section">
    
    					<?php /***** Basic Account Details ******/ ?>
    
    					<h4><?php _e( 'Account Details', 'buddypress' ); ?></h4>
    
    					<label for="signup_username"><?php _e( 'Username', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    					<?php do_action( 'bp_signup_username_errors' ); ?>
    					<input type="text" name="signup_username" id="signup_username" value="<?php bp_signup_username_value(); ?>" />
    
    					<label for="signup_email"><?php _e( 'Email Address', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    					<?php do_action( 'bp_signup_email_errors' ); ?>
    					<input type="text" name="signup_email" id="signup_email" value="<?php bp_signup_email_value(); ?>" />
    
    					<label for="signup_password"><?php _e( 'Choose a Password', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    					<?php do_action( 'bp_signup_password_errors' ); ?>
    					<input type="password" name="signup_password" id="signup_password" value="" />
    
    					<label for="signup_password_confirm"><?php _e( 'Confirm Password', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    					<?php do_action( 'bp_signup_password_confirm_errors' ); ?>
    					<input type="password" name="signup_password_confirm" id="signup_password_confirm" value="" />
    
    					<?php do_action( 'bp_account_details_fields' ); ?>
    
    				</div><!-- #basic-details-section -->
    
    				<?php do_action( 'bp_after_account_details_fields' ); ?>
    
    				<?php /***** Extra Profile Details ******/ ?>
    
    				<?php if ( bp_is_active( 'xprofile' ) ) : ?>
    
    					<?php do_action( 'bp_before_signup_profile_fields' ); ?>
    
    					<div class="register-section" id="profile-details-section">
    
    						<h4><?php _e( 'Profile Details', 'buddypress' ); ?></h4>
    
    						<?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
    						<?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( array( 'profile_group_id' => 1, 'fetch_field_data' => false ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
    
    						<?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    
    							<div class="editfield">
    
    								<?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?>
    
    									<label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    									<?php do_action( bp_get_the_profile_field_errors_action() ); ?>
    									<input type="text" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" value="<?php bp_the_profile_field_edit_value(); ?>" />
    
    								<?php endif; ?>
    
    								<?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?>
    
    									<label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    									<?php do_action( bp_get_the_profile_field_errors_action() ); ?>
    									<textarea rows="5" cols="40" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_edit_value(); ?></textarea>
    
    								<?php endif; ?>
    
    								<?php if ( 'selectbox' == bp_get_the_profile_field_type() ) : ?>
    
    									<label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    									<?php do_action( bp_get_the_profile_field_errors_action() ); ?>
    									<select name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>">
    										<?php bp_the_profile_field_options(); ?>
    									</select>
    
    								<?php endif; ?>
    
    								<?php if ( 'multiselectbox' == bp_get_the_profile_field_type() ) : ?>
    
    									<label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    									<?php do_action( bp_get_the_profile_field_errors_action() ); ?>
    									<select name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" multiple="multiple">
    										<?php bp_the_profile_field_options(); ?>
    									</select>
    
    								<?php endif; ?>
    
    								<?php if ( 'radio' == bp_get_the_profile_field_type() ) : ?>
    
    									<div class="radio">
    										<span class="label"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></span>
    
    										<?php do_action( bp_get_the_profile_field_errors_action() ); ?>
    										<?php bp_the_profile_field_options(); ?>
    
    										<?php if ( !bp_get_the_profile_field_is_required() ) : ?>
    											<a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name(); ?>' );"><?php _e( 'Clear', 'buddypress' ); ?></a>
    										<?php endif; ?>
    									</div>
    
    								<?php endif; ?>
    
    								<?php if ( 'checkbox' == bp_get_the_profile_field_type() ) : ?>
    
    									<div class="checkbox">
    										<span class="label"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></span>
    
    										<?php do_action( bp_get_the_profile_field_errors_action() ); ?>
    										<?php bp_the_profile_field_options(); ?>
    									</div>
    
    								<?php endif; ?>
    
    								<?php if ( 'datebox' == bp_get_the_profile_field_type() ) : ?>
    
    									<div class="datebox">
    										<label for="<?php bp_the_profile_field_input_name(); ?>_day"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    										<?php do_action( bp_get_the_profile_field_errors_action() ); ?>
    
    										<select name="<?php bp_the_profile_field_input_name(); ?>_day" id="<?php bp_the_profile_field_input_name(); ?>_day">
    											<?php bp_the_profile_field_options( 'type=day' ); ?>
    										</select>
    
    										<select name="<?php bp_the_profile_field_input_name(); ?>_month" id="<?php bp_the_profile_field_input_name(); ?>_month">
    											<?php bp_the_profile_field_options( 'type=month' ); ?>
    										</select>
    
    										<select name="<?php bp_the_profile_field_input_name(); ?>_year" id="<?php bp_the_profile_field_input_name(); ?>_year">
    											<?php bp_the_profile_field_options( 'type=year' ); ?>
    										</select>
    									</div>
    
    								<?php endif; ?>
    
    								<?php if ( 'url' == bp_get_the_profile_field_type() ) : ?>
    
    									<label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    									<input type="text" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" value="<?php bp_the_profile_field_edit_value(); ?>" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required="true"<?php endif; ?>/>
    
    								<?php endif; ?>
    
    								<?php do_action( 'bp_custom_profile_edit_fields_pre_visibility' ); ?>
    
    								<?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
    									<p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
    										<?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></a>
    									</p>
    
    									<div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>">
    										<fieldset>
    											<legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend>
    
    											<?php bp_profile_visibility_radio_buttons() ?>
    
    										</fieldset>
    										<a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'buddypress' ) ?></a>
    
    									</div>
    								<?php else : ?>
    									<p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
    										<?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?>
    									</p>
    								<?php endif ?>
    
    								<?php do_action( 'bp_custom_profile_edit_fields' ); ?>
    
    								<p class="description"><?php bp_the_profile_field_description(); ?></p>
    
    							</div>
    
    						<?php endwhile; ?>
    
    						<input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids(); ?>" />
    
    						<?php endwhile; endif; endif; ?>
    
    						<?php do_action( 'bp_signup_profile_fields' ); ?>
    
    					</div><!-- #profile-details-section -->
    
    					<?php do_action( 'bp_after_signup_profile_fields' ); ?>
    
    				<?php endif; ?>
    
    				<?php if ( bp_get_blog_signup_allowed() ) : ?>
    
    					<?php do_action( 'bp_before_blog_details_fields' ); ?>
    
    					<?php /***** Blog Creation Details ******/ ?>
    
    					<div class="register-section" id="blog-details-section">
    
    						<h4><?php _e( 'Blog Details', 'buddypress' ); ?></h4>
    
    						<p><input type="checkbox" name="signup_with_blog" id="signup_with_blog" value="1"<?php if ( (int) bp_get_signup_with_blog_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'Yes, I\'d like to create a new site', 'buddypress' ); ?></p>
    
    						<div id="blog-details"<?php if ( (int) bp_get_signup_with_blog_value() ) : ?>class="show"<?php endif; ?>>
    
    							<label for="signup_blog_url"><?php _e( 'Blog URL', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    							<?php do_action( 'bp_signup_blog_url_errors' ); ?>
    
    							<?php if ( is_subdomain_install() ) : ?>
    								http:// <input type="text" name="signup_blog_url" id="signup_blog_url" value="<?php bp_signup_blog_url_value(); ?>" /> .<?php bp_blogs_subdomain_base(); ?>
    							<?php else : ?>
    								<?php echo home_url( '/' ); ?> <input type="text" name="signup_blog_url" id="signup_blog_url" value="<?php bp_signup_blog_url_value(); ?>" />
    							<?php endif; ?>
    
    							<label for="signup_blog_title"><?php _e( 'Site Title', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    							<?php do_action( 'bp_signup_blog_title_errors' ); ?>
    							<input type="text" name="signup_blog_title" id="signup_blog_title" value="<?php bp_signup_blog_title_value(); ?>" />
    
    							<span class="label"><?php _e( 'I would like my site to appear in search engines, and in public listings around this network.', 'buddypress' ); ?>:</span>
    							<?php do_action( 'bp_signup_blog_privacy_errors' ); ?>
    
    							<label><input type="radio" name="signup_blog_privacy" id="signup_blog_privacy_public" value="public"<?php if ( 'public' == bp_get_signup_blog_privacy_value() || !bp_get_signup_blog_privacy_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'Yes', 'buddypress' ); ?></label>
    							<label><input type="radio" name="signup_blog_privacy" id="signup_blog_privacy_private" value="private"<?php if ( 'private' == bp_get_signup_blog_privacy_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'No', 'buddypress' ); ?></label>
    
    							<?php do_action( 'bp_blog_details_fields' ); ?>
    
    						</div>
    
    					</div><!-- #blog-details-section -->
    
    					<?php do_action( 'bp_after_blog_details_fields' ); ?>
    
    				<?php endif; ?>
    
    				<?php do_action( 'bp_before_registration_submit_buttons' ); ?>
    
    				<div class="submit">
    					<input type="submit" name="signup_submit" id="signup_submit" value="<?php esc_attr_e( 'Complete Sign Up', 'buddypress' ); ?>" />
    				</div>
    
    				<?php do_action( 'bp_after_registration_submit_buttons' ); ?>
    
    				<?php wp_nonce_field( 'bp_new_signup' ); ?>
    
    			<?php endif; // request-details signup step ?>
    
    			<?php if ( 'completed-confirmation' == bp_get_current_signup_step() ) : ?>
    
    				<h2><?php _e( 'Check Your Email To Activate Your Account!', 'buddypress' ); ?></h2>
    
    				<?php do_action( 'template_notices' ); ?>
    				<?php do_action( 'bp_before_registration_confirmed' ); ?>
    
    				<?php if ( bp_registration_needs_activation() ) : ?>
    					<p><?php _e( 'You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.', 'buddypress' ); ?></p>
    				<?php else : ?>
    					<p><?php _e( 'You have successfully created your account! Please log in using the username and password you have just created.', 'buddypress' ); ?></p>
    				<?php endif; ?>
    
    				<?php do_action( 'bp_after_registration_confirmed' ); ?>
    
    			<?php endif; // completed-confirmation signup step ?>
    
    			<?php do_action( 'bp_custom_signup_steps' ); ?>
    
    			</form>
    
    		</div>
    
    		<?php do_action( 'bp_after_register_page' ); ?>
    
    		</div><!-- .padder -->
    	</div><!-- #content -->
    
    	<?php get_sidebar( 'buddypress' ); ?>
    
    	<script type="text/javascript">
    		jQuery(document).ready( function() {
    			if ( jQuery('div#blog-details').length && !jQuery('div#blog-details').hasClass('show') )
    				jQuery('div#blog-details').toggle();
    
    			jQuery( 'input#signup_with_blog' ).click( function() {
    				jQuery('div#blog-details').fadeOut().toggle();
    			});
    		});
    	</script>
    
    <?php get_footer( 'buddypress' ); ?>
    MorgunovVit
    Participant

    So, it seems that I’ve done it!
    Thanks shanebp for the tip.

    Here’s the code of function for changing display-name:

    add_action( 'bp_core_activated_user', 'change_user_defaults', 99, 3 ); 
    function change_user_defaults($user_id, $key, $user) {
    
        if (empty($user_id)) {
            $user_id = bp_loggedin_user_id();
        }
    
        if (empty($user_id)) {
            return false;
        }
    
        $mv_first_name = xprofile_get_field_data(26, $user_id);
        $mv_last_name = xprofile_get_field_data(11, $user_id); 
        $name = $mv_first_name . ' ' . $mv_last_name; 
        
        
        if ($name !== ' ') {
            $args = array(
                'ID' => $user_id,
                'display_name' => $name
            );       
            wp_update_user($args);
        }
    }
    shanebp
    Moderator

    afaik – It is not possible, at least not easily.
    Members are not stored per site – regardless of whether BP is activated per site or globally.
    And neither are BuddyPress activity items. “Recently Active” is handled via activity items.

    WP multisite uses the usermeta database table to track which users have access to which sites.
    You could write a custom widget that checks BP last_activity items and then filters it by the usermeta data.

    #302749
    h3lpn33d3d
    Participant

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'ghostpool_reset_password_success' not found or invalid function name in /wp-includes/class-wp-hook.php on line 286

    Error is displayed during user registration although user saw:

    Check Your Email To Activate Your Account!
    You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.

    The email message never came.

    Also… every email from login form, registration form, reset password form is not sent.

    MorgunovVit
    Participant

    Hi, everybody!

    Could you help me to set set display_name = xprofile ‘first_name’ + ‘last_name’ at the user registration?
    I’ve tryed this code:

    
    function change_user_defaults($user_id) {
    	$user = get_userdata($user_id);
            $mv_first_name = xprofile_get_field_data(  26,  $user_id ); 
            $mv_last_name = xprofile_get_field_data(  11,  $user_id );  
            $name = $mv_first_name . ' ' . $mv_last_name; 
            $mv_login = $user_id . stristr($user->user_email, '@', true); 
            if ($name !== ' '){
                $args = array(
                        'ID' => $user_id,
                        'display_name' => $name
                );
                wp_update_user( $args );
            }
    }
    
    add_action( 'xprofile_updated_profile', 'change_user_defaults' ); /* but this works only after manual BuddyPress profile update */
    
    /* I also tried these hooks too */
    add_action( 'bp_core_signup_user',      'change_user_defaults' ); 
    add_action( 'bp_core_activated_user',   'change_user_defaults' );
    /* but it didn't work at the user registration  */
    
    #302486
    mackymickman
    Participant

    I’d like to create a topic with his name at user registration.

    What’s wrong with this code:

    function bp_user_fst_topic (){
    
        // get user name	
        $user_data = get_user_by( 'id', bp_loggedin_user_id() )->data;
        $user_nicename = = $user_data->user_nicename;
    
        // create slug
        $new_slug = 'first-topic-' . $user_nicename;
    
        // create topic
        $post_value = array(
            'post_name' => $new_slug,
            'post_type' => 'topic',
            'post_author' => $userid,
            'post_title' => 'first topic',
            'post_content' => 'This topic was created when you registered.',
            'post_category' => array(1,5), 
            'tags_input' => array('tag1','tag2'), 
            'post_status' => 'publish' 
        );
        wp_insert_post($post_value);
    
    }
    add_filter( 'bp_core_activated_user', 'bp_user_fst_topic',1 );

    Could you tell me how to do this..?

    chuchudolls
    Participant

    WP v. 5.0.3
    Directory
    root
    I did not upgrade from a previous version of WordPress.
    WordPress was functioning properly before BuddyPress install.
    BuddyPress v 4.1.0
    No upgrade.
    Other plug-ins: bbPress, bbPress WP Tweaks, Breadcrumb NavXT, BuddyPress, Column Shortcodes, Contact Form 7, Content Aware Sidebars, Mailchimp for WooCommerce (currently not set up), MetaSlider, N-Media WooCommerce PPOM, Shindiri Woo Shop Slider Lite, Widget Options, WooCommerce (currently not set up), WooCommerce Produce Carousel Slider, WooCommerce Services (currently not set up). All are up to date.
    Wordpress theme is Vogue.
    I’ve not modified the core files in any way that I’m aware of.
    No custom functions that I’m aware of.
    I do not know how to do .php coding.
    I do not have any errors that I am aware of and could not run the check from the tutorial as it didn’t work. Again, do not know .php code.
    Current website has been removed from online and is on a private server/localhost. This will change soon as the new site is finished.
    Windows.
    No BuddyPress theme chosen so maybe default theme selected?
    No idea if I overloaded any buddypress template files.

    Posting above per the “When asking for support” sticky.

    I have two problems. The first is that I don’t have a way for users to create groups using the BuddyPress groups system. I can only create groups manually by selecting “Groups” > “Add New” in the dashboard. I do not wish to cater to 100’s of requests for groups, and would like users to have freedom of creation. “Anyone can register” is selected. “User Groups” is selected.

    As of right now, my site has a “Social” menu option with sub-menu of all the BuddyPress items. If I click on “Groups” in the sub-menu, I DO NOT get an option to create groups. However, if I click on the main menu “Social,” and look at the right side where my “Groups” widget is, I can click on groups, and get a new page that has a “Create New Group” option that allows anyone to create.

    Ok, so why not just add the widget to all the BuddyPress pages? I did. They won’t load. The only way people can add groups is if they go through this widget. Which leads me to my second problem; I am not able to add that widget anywhere else on the website. It will not load on any other of the BuddyPress pages/sub-menu options. In fact, nothing will load.

    This was the result of adding “Content Aware Sidebar” plug-in, because I was not able to get website widgets OFF BuddyPress pages even when selected to be off those specific pages. Now, I have removed my main-site widgets from BuddyPress pages, but can’t get BuddyPress widgets on BuddyPress pages. Boy, I hope that was clear.

    If I remove “Content Aware Sidebar” (or deactivate it), everything goes back to the way it was. Main website widgets that I don’t want on BuddyPress pages will load on BuddyPress pages, but so will the BuddyPress widgets.

    How do I get my BuddyPress widgets to load AND prevent my other widgets from loading on BuddyPress-only pages? Or can I manually insert a “Create Group” link inside the “Groups” page, preferably next to “Invitations” and “Memberships?”

    I believe the problem lies with both the “Content Aware Sidebar” plugin and “Widget Options,” which is the one I used to be able to manually select pages. It worked perfectly until BuddyPress was installed. Now, I can’t get choices over BuddyPress-only widgets, but I can get widgets to load at will anywhere else on the site.

    #301936

    In reply to: Members Not Showing

    Unfunnel
    Participant

    I recently applied this code in the functions.php – but when removing the code once the users were activated and in the member directory – my WP dashboard became inaccessible.

    HELP?

    #282820
    shanebp
    Moderator

    if I do it on the User Screen through the Admin page it works fine…but my Users won’t have that option.

    That tells you there is something happening on the front end.
    I’ll bet it will work if you deactivate any ‘lazy’ loader plugin or code. ( jetpack ? )
    And / or any ‘minify’ plugin or code that is affecting javascript.

    I am using a theme now that is tested with BuddyPress

    Sez who? The theme creators? Always check by momentarily switching to a WP theme like 2016.

    #282758
    Steve
    Participant

    We have 250,000 users and unless we deactivate BuddyPress – it’s extremely slow with BuddyPress?

    I had posted this into forum but with no replies
    Yet – current WordPress 5.0 and current BuddyPress.

    Cloud SQL is running ar 100% we need to upgrade or contact buddy press team about the issue.
    Please contact them and provide the below server details and ask for support.
    1. Google Cloud VM Instance Ubuntu 18.04 (3.75 GB RAM)
    2. PHP 7.2, Nginx + FastCGI cache, Opcache, Redis, WP-Rocket plugin
    3. Cloud SQL for the database (3.75 GB RAM)

    #282399
    shanebp
    Moderator

    Add users manually is easy.
    Go to .../wp-admin/users.php on your website and click on the button at the top that says ‘Add New‘.

    Re add users to group in wp-admin:
    Please see this sticky topic.

    To narrow down problems, use a default WP theme like 2016.
    Deactivate other plugins.
    After everything is working, then start using your preferred assets.

    #282378
    shanebp
    Moderator

    For help re IIS setups, you’re better off asking elsewhere.

    Re WP / BP: Have you done some basic debugging ? To narrow things down ?

    Try this: wipe the WP and BP installs.
    Start over.
    Do not use the Alliance theme initially.
    Instead use a WP theme like 2016.
    Don’t install or activate any other plugins.
    Create a few users manually.
    You may have to create the BP pages manually. And then manually assign them to BP via .../wp-admin/admin.php?page=bp-page-settings.

    #281719
    Arize Nnonyelu
    Participant

    @haleyscorner yes I can resend from wp-admin>users>manage sign up


    @sbrajesh
    thanks so much for your support

    I’m simply going to insert a notice that will ask uses to copy code from their browser address and paste into box to activate. I have been trying that in the buddypress plugin but kept seeing nothing. Now u know its from the youzer plugin I’m going to do that while I work on a solution or wait for an update. Thanks so much.

    #275692
    Phoenix
    Participant

    Hello, everyone!
    After I have filled the registration form WP redirects me to the Homepage. In users list (Dashboard) I don’t see new user too.
    Steps which I tried to resolve the problem:
    1) WP in simple mode, not WPMS
    2) Dashboard – Settings – checkbox “Users can register” checked
    3) Disabled all plugins and checked BuddyPress registration function
    4) Changed theme to another one. (I use OneCommunity theme by default)
    5) Installed WP Mail SMTP (tried to send messages via php wp_mail & smtp). Both variants work for WP, also checked to send messages via Contact form 7 etc. BUT not sending any mail from BuddyPress
    6) Tried to reinstall BuddyPress plugin, still not working
    7) There is no hosting problems too…
    8) I don’t see another user accounts in Users dashboard.
    9) Switched between old and new BuddyPress templates…
    10) Additional information:
    – WP version 4.9.8
    – BuddyPress 3.1.0
    – Activated plugins (15): Anti-Spam by CleanTalk, bbPress, BuddyPress, Contact Form 7, No Category Base (WPML), OneCommunity Shortcodes, UpdraftPlus – Backup/Restore, UpdraftPlus – Backup/Restore, Wordfence Security, WP Mail SMTP, WP Sitemap Page, WP-Polls, WPBakery Page Builder, Yoast SEO Premium, WP Recaptcha Integration.
    11) There is no any php errors (when I enable debug) and js errors in browser console.

    I can’t find another reason why didn’t registration form not working…. Domain – barbiusa58.info
    How I can fix it? Thanks in advance)

    #275606
    shanebp
    Moderator

    Make sure all your members have a ‘last_activity’ timestamp.

    New users not showing on member page until they sign in

    If the issues persist, you need to do some basic debugging.
    Start by using a WP theme like 2017 and use the BP > Options > Template Pack > BuddyPress Legacy templates. If that clears up the issues, then you need to get a solution from BuddyBoss.

    If the issues persist, deactivate any other plugins.
    If the issues persist, there is a serious and unknown problem.
    Otherwise, activate the other plugins one at a time until you see an issue.

    #275261
    pauapau
    Participant

    update:
    hmm i dont know. but it seems like the $user->errors is empty with var_Dump. but with print_r not.

    also in the backend the user is activated when he clicks on the activation link. but $user->errors will give an error.

    error_Log:
    [17-Jul-2018 17:27:38 UTC] PHP Notice: Trying to get property of non-object in /mnt/web313/d2/98/57260698/htdocs/goUnhooked/wp-content/plugins/buddypress/bp-members/screens/activate.php on line 118
    [17-Jul-2018 17:27:38 UTC] error varDump:||
    [17-Jul-2018 17:27:38 UTC] error print_r:|1|

    
     error_log(" error varDump:|".var_dump($user->errors)."|");
     error_log(" error print:|".print_r($user->errors)."|");
    
    #275074
    T
    Participant

    If I go to wp-content/themes/pro/buddypress/members > activate.php, the code doesn’t line up with what’s posted in github. Here’s what I have:

    <div id="buddypress">
    
    	<?php do_action( 'bp_before_activation_page' ); ?>
    
    	<div class="page" id="activate-page">
    
    		<?php do_action( 'template_notices' ); ?>
    
    		<?php do_action( 'bp_before_activate_content' ); ?>
    
    		<?php if ( bp_account_was_activated() ) : ?>
    
    			<?php if ( isset( $_GET['e'] ) ) : ?>
    				<p><?php _e( 'Your account was activated successfully! Your account details have been sent to you in a separate email.', '__x__' ); ?></p>
    			<?php else : ?>
    				<p><?php printf( __( 'Your account was activated successfully! You can now <a href="%s">log in</a> with the username and password you provided when you signed up.', '__x__' ), wp_login_url( bp_get_root_domain() ) ); ?></p>
    			<?php endif; ?>
    
    		<?php else : ?>
    
    			<form action="" method="get" class="standard-form cf man" id="activation-form">
    
    				<label for="key"><?php _e( 'Please provide a valid activation key.', '__x__' ); ?></label>
    				<input type="text" name="key" id="key" value="" />
    
    				<p class="submit">
    					<input type="submit" name="submit" value="<?php esc_attr_e( 'Activate', '__x__' ); ?>" />
    				</p>
    
    			</form>
    
    		<?php endif; ?>
    
    		<?php do_action( 'bp_after_activate_content' ); ?>
    
    	</div><!-- .page -->
    
    	<?php do_action( 'bp_after_activation_page' ); ?>
    
    </div><!-- #buddypress -->

    Are you sure I edit this in my theme? Or do I go into this instead? bp-templates/bp-legacy/buddypress/members > activate.php

    #274454
    xprt007
    Participant

    Hi

    Cannot delete Spammer

    Thank you for the quick response.
    The question is which plugin?
    I tried deactivating a couple starting with Aksimet and when I reached bbforum & buddypress & deactivated both: the pink background of the “Spammer” user disappeared, as well as the link “Extended”. They both do not reappear with bbforum activated. (See screenshot)
    That made me assume it’s Buddypress that’s responsible for this pink background and the Extended link.
    Moreover it’s under “Extended” edit of User on “wp-admin/users.php”, that one gets the status shown and where one can change from Spammer to Active, which will not work.

    So just wondering … Or may be I’m just overlooking something obvious?

    Regards

    #274115
    Varun Dubey
    Participant

    @vpsgeneral I am able to replicate the issue, you can edit

    bp-templates/bp-nouveau/buddypress/members/activate.php

    Replace sprintf with printf

    sprintf(
    							__( 'Your account was activated successfully! You can now <a href="%s">log in</a> with the username and password you provided when you signed up.', 'buddypress' ),
    							wp_login_url( bp_get_root_domain() )
    						)

    with

    printf(
    							__( 'Your account was activated successfully! You can now <a href="%s">log in</a> with the username and password you provided when you signed up.', 'buddypress' ),
    							wp_login_url( bp_get_root_domain() )
    						)
    #274105

    In reply to: Activation Email

    meridioinc
    Participant

    Well, it sort of half works now.

    So I already had installed wp mail smtp, got all that setup…
    So then I updated the buddypress plugin with the newest version that I think dropped today.
    Then I installed wp better emails, reinstalled/reinstated emails in tools->buddypress, and the activation email thing works.

    The only issue I’m having now is that I can activate the account, but I can’t login because it says that the password is incorrect, even though it isn’t. So that’s progress anyway.

    But I’m not sure what to do now.

    So if I go to the login area of my site, I enter my username and password, and then it sends me to a default WordPress login page. So I enter the info again, and it says that it’s the incorrect password. Should I basically be logging in twice like that? Once on my site, then once via the default WordPress login, only to be denied access?

    #273768
    harry74
    Participant

    I am reposting the same with the code parts fixed (I hope)

    Wordpress Version: 4.9.6
    Buddypress version: 3.0.0

    Hello,

    I’ve been struggling for days with oEmbed, but I’m not a coder nor very experienced in WP so no luck yet. I want to be able to post on the activity stream from almost any source and generate a preview (same as on Facebook, Tumblr etc). First of all, even some major sites (Facebook, Flickr, Tumblr) from the WP whitelist do not generate a preview when posting a link in activity. A bug maybe? Also, Activity Plus and rtMedia are not solutions, because I tried them and both have problems. I should point out that I have multisite and BP Multi Network and have set BP_ENABLE_MULTIBLOG as true.

    Two very good plugins are Iframely and Embedly. The problem with the first is that there’s a limit of embeds in the free version and it doesn’t support as many sites as I need. Embedly does, but here’s the problem. When activated, there seems to be a conflict with some of the default embed providers of BP, like Vimeo and Youtube. A preview is still generated, but it is only a dead image of the video. You cannot click play or click on the title and open the video in a new tab. So the plugin becomes essentially useless (nobody could afford to have a social network where users can’t post YouTube videos). There’s a similar problem with Iframely (the YouTube video is OK but there’s a big blank area beneath it), but they have an option “Do not override default embed providers” that solves the problem. Unfortunately Embedly doesn’t have such an option. Does anyone know if I could force it somehow to do the same? (I have already contacted their support days ago but they never answered.)

    Then, I thought to remove YouTube from the oEmbed providers list with

    <?php wp_oembed_remove_provider( $format ) ?>

    hoping that this would eliminate the conflict, since Embedly alone would handle YouTube links. I’m not sure what I did it wrong, because at first I pasted this code as a test:

    <?php wp_oembed_remove_provider( 'http://wordpress.tv/*' ); ?>

    in the wp-includes/media.php file at the end and it returned syntax error, unexpected ‘<‘. Then I tried:

    wp_oembed_remove_provider( 'http://wordpress.tv/*' );

    No error this time, but nothing changed. I could still post a link from wordpress.tv and a preview was generated. Can someone explain how to do this correctly? And do you think that if I remove YouTube from the providers it will solve the issue?

    Finally, I found out about oEmbed Discovery. The documentation is not very clear, so I’m not even sure what exactly it is supposed to do if enabled. Does it allow content from any site to be embedded? Or does it have limitations too? And what does it mean “you can give unfiltered_html users (Administrators and Editors) the ability to embed”? If I used it, would I have to give every new user editor role so that they could post? Anyway, the thing is I installed the Enable oEmbed Discovery plugin, but absolutely nothing changed. I tried some test posts from various websites and only the link was posted as usual. Any idea what went wrong?

    I tried all the above with network activation, per site activation, network and per site together, everything… but to no avail. Any help will be greatly appreciated because this is a huge problem for my site. Sorry for the long post, at least I hope it might help others too with similar issues. Lastly, if anyone proposes a solution which includes some code, please mention where I should paste it (I do have a bp-custom.php file).

    Thanks in advance

    #273758
    harry74
    Participant

    Hello,

    I’ve been struggling for days with oEmbed, but I’m not a coder nor very experienced in WP so no luck yet. I want to be able to post on the activity stream from almost any source and generate a preview (same as on Facebook, Tumblr etc). First of all, even some major sites (Facebook, Flickr, Tumblr) from the WP whitelist do not generate a preview when posting a link in activity. A bug maybe? Also, Activity Plus and rtMedia are not solutions, because I tried them and both have problems. I should point out that I have multisite and BP Multi Network and have set BP_ENABLE_MULTIBLOG as true.

    Two very good plugins are Iframely and Embedly. The problem with the first is that there’s a limit of embeds in the free version and it doesn’t support as many sites as I need. Embedly does, but here’s the problem. When activated, there seems to be a conflict with some of the default embed providers of BP, like Vimeo and Youtube. A preview is still generated, but it is only a dead image of the video. You cannot click play or click on the title and open the video in a new tab. So the plugin becomes essentially useless (nobody could afford to have a social network where users can’t post YouTube videos). There’s a similar problem with Iframely (the YouTube video is OK but there’s a big blank area beneath it), but they have an option “Do not override default embed providers” that solves the problem. Unfortunately Embedly doesn’t have such an option. Does anyone know if I could force it somehow to do the same? (I have already contacted their support days ago but they never answered.)

    Then, I thought to remove YouTube from the oEmbed providers list with

    <?php wp_oembed_remove_provider( $format ) ?>

    hoping that this would eliminate the conflict, since Embedly alone would handle YouTube links. I’m not sure what I did it wrong, because at first I pasted this code as a test:

    <?php wp_oembed_remove_provider( ‘http://wordpress.tv/*&#8217; ); ?>

    (with the < >) in the wp-includes/media.php file at the end and it returned syntax error, unexpected ‘<‘. Then I tried:

    wp_oembed_remove_provider( ‘http://wordpress.tv/*&#8217; );

    No error this time, but nothing changed. I could still post a link from wordpress.tv and a preview was generated. Can someone explain how to do this correctly? And do you think that if I remove YouTube from the providers it will solve the issue?

    Finally, I found out about oEmbed Discovery. The documentation is not very clear, so I’m not even sure what exactly it is supposed to do if enabled. Does it allow content from any site to be embedded? Or does it have limitations too? And what does it mean “you can give unfiltered_html users (Administrators and Editors) the ability to embed”? If I used it, would I have to give every new user editor role so that they could post? Anyway, the thing is I installed the Enable oEmbed Discovery plugin, but absolutely nothing changed. I tried some test posts from various websites and only the link was posted as usual. Any idea what went wrong?

    I tried all the above with network activation, per site activation, network and per site together, everything… but to no avail. Any help will be greatly appreciated because this is a huge problem for my site. Sorry for the long post, at least I hope it might help others too with similar issues. Lastly, if anyone proposes a solution which includes some code, please mention where I should paste it (I do have a bp-custom.php file).

    Thanks in advance

    #273490
    knowitallninja
    Participant

    I have now tried everything except rollback.

    I have uninstalled and reinstalled buddypress. I have deactivated every single plugin except buddypress and I have even switched to the twenty-seventeen theme, with no custom code or anything. I am still getting an error when I add a user to a group. The error in my log says this:

    Call to undefined function groups_record_activity() in /wp-content/plugins/buddypress/bp-groups/bp-groups-functions.php:588

    So it seems the error is certainly to do with buddypress itself, right? Anyone got any suggestions?

Viewing 25 results - 76 through 100 (of 902 total)
Skip to toolbar