Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'activation email'

Viewing 25 results - 301 through 325 (of 1,239 total)
  • Author
    Search Results
  • #258472

    In reply to: Confirmation Email

    roller24
    Participant

    David Im trying to alleviate the activation process, I tried your snippet in /wp-content/plugins/bp-custom.php

    I added a closing php tag because I didn’t see one, but something didn’t happen correctly.
    the registration page returns to registration page and no user is activated.

    Are we missing something? Do I need to put the code elsewhere?

    I also noticed in one file, I think it was signup that at the end of the file after submitting registration there was an if statement that asks if user activation required… send activation email..
    else
    echo your good go ahead and login..

    I was searching for the setting which makes activation required, but could not find it.
    There is a strange row in the bp data tables called “registration” with only a 0 as the data.
    Could this be changed to 1, I didn’t test it, but if you know.

    #258410
    steigw
    Participant

    It’s a staging site that doesn’t have public access, but I can put the code and info in here. Here is the complete code of the functions.php in the child theme. maybe I just put it all together wrong.

    <?php
    function nisarg_enqueue_styles() {
    
        $parent_style = 'nisarg-style';
    
        wp_enqueue_style( 'bootstrap', get_template_directory_uri().'/css/bootstrap.css' );
        wp_enqueue_style( 'font-awesome', get_template_directory_uri().'/font-awesome/css/font-awesome.min.css' );   
        wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
    
        wp_enqueue_style( 'nisarg-child-style',
            get_stylesheet_directory_uri() . '/style.css',
            array( $parent_style )
        );
    }
    add_action( 'wp_enqueue_scripts', 'nisarg_enqueue_styles' );
    ?>
    <?php
    function custom_wp_mail_from( $email ) {
            $handle = ‘accounts’;
    	$find = 'http://'; 
    	$replace = '';
    	$link = get_bloginfo( 'url' );
    	$domain = str_replace( $find, $replace, $link );
    	return $handle . '@' . $domain ;
    }
    add_filter( 'wp_mail_from', 'custom_wp_mail_from' );
    ?>

    The email link is:http://mydomain.com/activate/JA0BvkK1Q0DND10SYegdOtkTMemhGUF0/

    When I click on it immediately, I get all this:

    Fatal error: Uncaught exception ‘phpmailerException’ with message ‘Invalid address: ‘accounts’@mydomain.com’ in /homepages/25/d283441938/htdocs/clickandbuilds/staging/wp-includes/class-phpmailer.php:946 Stack trace: #0 /homepages/25/d283441938/htdocs/clickandbuilds/staging/wp-includes/pluggable.php(352): PHPMailer->setFrom(‘\xE2\x80\x98accounts\xE2\x80\x99@…’, ‘WordPress’) #1 /homepages/25/d283441938/htdocs/clickandbuilds/staging/wp-includes/pluggable.php(1726): wp_mail(‘webmaster@arlin…’, ‘[My Dev Sit…’, ‘New user regist…’) #2 /homepages/25/d283441938/htdocs/clickandbuilds/staging/wp-content/plugins/buddypress/bp-members/bp-members-functions.php(2031): wp_new_user_notification(18) #3 /homepages/25/d283441938/htdocs/clickandbuilds/staging/wp-content/plugins/buddypress/bp-members/bp-members-screens.php(364): bp_core_activate_signup(‘JA0BvkK1Q0DND10…’) #4 [internal function]: bp_core_screen_activation(”) #5 /homepages/25/d283441938/htdocs/clickandbuilds/staging/wp-includes/plugin.php(524): cal in /homepages/25/d283441938/htdocs/clickandbuilds/staging/wp-includes/class-phpmailer.php on line 946

    If I wait a while, then I get the normal webpage and it says “invalid activation key”. I don’t understand the significance of an immediate click on the link in the email vs. waiting a few more seconds, but it definitely matters.

    #257672

    In reply to: Redirect does not work

    Paul Wong-Gibbs
    Keymaster

    @fail2reap So… after the user sends the registration form, rather than go to the page that says something like “check your email for an activation link”, you want to redirect them somewhere else?

    #256963
    itnetworkexpert
    Participant

    Hello @danbp
    I have installed wp-email-smtp plugin and configured it successfully with no errors and was able to send test messages, but activation emails still would not send.

    Has this issue actually been resolved?

    Buddy press Version 2.6.1.1

    Regards,

    Fayaz

    #256945
    itnetworkexpert
    Participant

    same problem with the plugin wp mai smtp Buddypress not sending activation emails

    #256071
    danbp
    Participant

    What is your BP version ? Have you tried to use the email repair tool ?

    New user activation emails not coming

    #256057
    pulidomate
    Participant

    Finally i have done this:

    function send_mail_to_teacher($user_id, $user_login, $user_password, $user_email, $usermeta){
    
      $key = get_user_meta( $user_id, 'activation_key', TRUE );
      $first_name = bp_get_profile_field_data('field=Name&user_id='.$user_id);
      $surname = bp_get_profile_field_data('field=Surname&user_id='.$user_id);
    
      $args = array(
        'tokens' => array(
          'key'          => $key,
          'user.email'   => $user_email,
          'user.id'      => $user_id,
          'first_name'   => $first_name,
          'surname'      => $surname,
        ),
      );  
    
      $teacher_email = bp_get_profile_field_data('field=Teacher&user_id='.$user_id);
    
      bp_send_email( 'sendtoteacher', $teacher_email, $args );
    
    }
    
    add_action('bp_core_signup_user', 'send_mail_to_teacher', 10, 5);
    #255978
    pulidomate
    Participant

    Yes, but this code doesn’t work

    function activation_email( $user_id, $user_email, $key, $user_login = '' ) {
    
      $args = array(
        'tokens' => array(
          'key'          => $key,
          'user.email'   => $user_email,
          'user.id'      => $user_id,
        ),
      );
    
      if ( $user_id ) {
        $to = $user_id;
      } else {
        $to = array( array( $user_email => $user_login ) );
      }
    
        $teacher = bp_get_profile_field_data('field=Teacher&user_id='.$user_id);
    
        bp_send_email( 'core-user-registration', $teacher , $args );
    
    }
    add_action('bp_core_signup_send_validation_email','activation_email',99,4);
    #255817
    pulidomate
    Participant

    Finally i have done this:

    function activation_email( $subject, $message, $user_id, $user_email, $key ) {
        $teacher = bp_get_profile_field_data('field=Teacher&user_id='.$user_id);
        $activate_url = esc_url( $activate_url );
        $message = sprintf( __( "Thanks for registering! To complete the activation of this account please click the following link:\n\n%1\$s\n\n", 'buddypress' ), $activate_url );
        $user_email = $teacher;
    
        wp_mail( $user_email, $subject, $message );
    }
    add_action( 'bp_core_sent_user_validation_email', 'activation_email', 10, 5 );
    #255647

    In reply to: Confirmation Email

    Dono12
    Participant

    Thanks for your prompt response and your help but that function did not achieve the goal I was looking for. I wanted the activation Key to come from Cymi User Extra Field. I found a solution from someone with a similar problem but it is a little too extreme for me. The result you get is a Cymi User Extra Field Key/URL, Looks like This(cimy_key=88fddcb568dcf2d6). It involved editing a core Buddypress file wp-content/plugins/buddypress/bp-core/bp-core-filters.php. Can you help with a function for my functions.php or bp-custom to achieve the same goal. If it’s not too much maybe generate the Cymi-Key in the Buddypress Email Template though not a priority. I’m fully aware that editing core files is not practical, especially being that you lose it during updates.

    https://buddypress.org/support/topic/activation-email-key-doesnt-work-i-may-have-the-fix/

    function bp_core_activation_signup_user_notification( $user, $user_email, $key, $meta ) {
    
    $activate_url = bp_get_activation_page() . "key=$key";
    $activate_url = esc_url($activate_url);
    $admin_email = get_site_option( 'admin_email' );
    
    if ( empty( $admin_email ) )
    $admin_email = 'support@' . $_SERVER;
    
    // Then it ends with, on line 255
    
    add_filter( 'wpmu_signup_user_notification', 'bp_core_activation_signup_user_notification', 1, 4 );
    #255638

    In reply to: Confirmation Email

    David Cavins
    Keymaster

    I’m not sure what behavior you’re aiming for, but this snippet will disable the confirmation email and log the user in automatically upon successful registration.

    <?php 
    add_action( 'bp_core_signup_user', array( $this, 'disable_validation_of_new_users' ) );
    add_filter( 'bp_registration_needs_activation', '__return_false' );
    add_filter( 'bp_core_signup_send_activation_key', '__return_false' );
    
    function disable_validation_of_new_users( $user_id ) {
    
    	// Get the user's activation key for BP. This is the activation_key in user_meta, not the key in the user table.
    	$user_key = get_user_meta( $user_id, 'activation_key', TRUE );
    
    	// Activate the signup
    	$awuser = apply_filters( 'bp_core_activate_account', bp_core_activate_signup( $user_key ) );
    
    	// Automatically log the user in.
    	// Thanks to Justin Klein's  wp-fb-autoconnect plugin for the basic code to login automatically
    	$user_info = get_userdata($user_id);
    	wp_set_auth_cookie($user_id);
    
    	do_action( 'wp_signon', $user_info->user_login );
    
    	bp_core_add_message( __( 'Your account is now active!', 'my-plugin-slug' ) );
    
    	buddypress()->activation_complete = true;
    }
    #255152
    thehappycouponer
    Participant

    We are experiencing this same issue. All auto emails are sending except new user activation email. I’ve checked to make sure this email is enabled and it is, but it’s still not sending. Please advise. We’re losing out on new customers.

    #255141
    econowill
    Participant

    i experienced exactly same issue with writer.
    only activation mail not work, others do. password change, etc…

    try to this
    admin panel – setup – buddypress
    setup is including permal link menu. i dont know exactly what it in english.

    and click restore email setup. and i solved.
    good luck!

    #254811

    In reply to: email activation.

    emlehh
    Participant

    Okey, so i have disabled the plugin that stopped the automatic activation emails, installed and activated the plugin you suggested. Now what? I seriously can’t find a setting for the activation email. I know i found it easily before disabling it.

    #254799

    In reply to: email activation.

    emlehh
    Participant

    Where do i find the option to change activation email sender?

    Thanks, 🙂 Will try that.

    #253992

    In reply to: Membership Codes

    danbp
    Participant

    @maganiza,

    it’s possible. I suppose you need a unique code for some later user specific actions. But that code exist nowhere when a user register. What can we do ?

    1) generate a 6 digit code and show it on the register page
    2) asign that code to the user
    3) show the code on his profile

    1 – we use php mt_rand to generate the code and one of the available action hook on the register page for his output. Add this snippet to bp-custom.php

    function bpfr_digit_generator() {
    $num = mt_rand ( 0, 0xffffff ); 
    $output = sprintf ( "%06x" , $num );
     
    	echo '<strong>Your personnal code: '. $output .'</strong>';
    
    }
    add_action( 'bp_after_account_details_fields', 'bpfr_digit_generator' );

    2) create a new xprofile field, call it Personnal Code or whatever. Make it mandatory and asign it the visibility level you want. In field description, ask the user to copy/paste in the code.

    3) as the user entered the code in a xprofile field, you get automagically this field on his profile.

    I’m a bit unsure how to insert this field value in the activation email, or if it’s even possible. Perhaps somebody else can help you. See email on codex.

    A bit raw, but at least you have a start point how to do that.

    Here also another method, you may use if you don’t want the user to copy/paste the code.

    #253939
    Earl_D
    Participant

    I am running the lest version of Buddypress and WordPress on a VPS server NOT running multisite. Tiny framework is the theme I am using. However the first thing I did to trouble shoot was try to replicate problem without any plugin and using 2012 theme (which tiny frame is based on) and 2016 theme. The issues remained the same with but those thems and th social me theme.

    I will try to check the MYSQL question as I am familiar with that having done MYSQL database programming. However I have narrowed done the problem to something related to the extended profile fields component. Through trial and error and some research I surfaced the correlation which one other person seems to have referred as well. If extended profile fields are turned OFF the registration is completed and the activation email sent. If it is on the registration process is not completed. I tested this extensively turning on and off and it followed that pattern. I currently have the component turned off and users are able to register. When I turned on again I was unable to complete a registration.

    It may be unrelated but no registration spam protection plugins will work now either I have tried several with recaptcha and without and in every case the registration process short circuits.

    Thanks for any help in advance. I would like to get the extended field working again.
    EarlD

    #253881
    Paul Wong-Gibbs
    Keymaster

    Did anything else update at the same time? Anything?

    2.5.3 contained changes to email implementation, and a security fix regarding user activation. The latter is most likely cause.

    What theme are you using? Do you have a custom registration template (did you make one)? What other plugins do you have running? Are you on multisite or regular WordPress?

    Can you think of any other useful information regarding any customisations around user or site registration?

    sharmavishal
    Participant

    When I activate some members they are not added to the members list.

    BP considers activated users when they login to the website. else it doesnt.

    activation emails dont go or goes to spam folder? check this plugin and use it as per your requirements

    https://wordpress.org/plugins/wp-mail-options/

    Also if your email domain is on lets say google apps and you are using the email domain to send mail from your site hosted on a different server you need to add email srv records

    #252584
    dfarland
    Participant

    It doesn’t appear to be. The only emails I’m receiving are those initiated by WP or bbPress. The emails related to activation, group requests, mentions, and other BuddyPress emails are not coming through.

    #252205
    concoa
    Participant

    UPDATE:
    I deleted all BP files and the plugin and did a reinstall.

    PROBLEM #1)
    I am still having trouble with the Register page. I do not know what this error refers to:

    displays an error message:
    “Profile Details
    Warning: Creating default object from empty value in /home/content/p3pnexwpnas09_data01/28/2853428/html/wp-content/plugins/buddypress/bp-xprofile/classes/class-bp-xprofile-group.php on line 649”

    Line 649 is:
    $fields[ $key ]->visibility_level = $field_visibility;

    PROBLEM #2)
    Registration submission is now working, but an auto response email is being sent. Is there something in BuddyPress (or WordPress) to disable this? I’m getting an email saying:
    Hi test4,
    Thanks for registering!

    To complete the activation of your account, go to the following link: http://blahblahblah.com/activate/ef23a0f24958c3a125917f7e3bac95f8/

    I’m using s2Member to allow admin approval of registrations. This email needs to be removed. Thx.

    #252092
    manigopal
    Participant

    at normal wp-admin / registration it works but only while trying to register via buddypress its not working ie no email for user registration and even activation also.

    Jojanonone
    Participant

    Thanks a lot @berkelmudez!!

    Accidentally I noticed that activation emails were not being sent. And neither were notification emails, like when receiving a private message. Switched to Postman and all was sweet again.

    WordPress 4.4.2
    BuddyPress 2.5.2
    bbPress 2.5.8

    #251654
    alkarana
    Participant

    This plugin would be better if you added a redirect after login so that we could send users to any page we wanted after they login instead of going to the user dashboard.

    https://wordpress.org/extend/plugins/user-activation-email/

    ———–
    Website

    r-a-y
    Keymaster

    If you are using any WordPress plugins that manipulate email, try disabling them and see if you are able to send out the activation email.

    If you are using any email plugins, please list them as well. If not, check if your WordPress install can send any email. You can check by enabling post comment moderation under “Settings > Discussion” and using an anonymous user to post a comment on your blog.

Viewing 25 results - 301 through 325 (of 1,239 total)
Skip to toolbar