Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'activation email'

Viewing 25 results - 451 through 475 (of 1,427 total)
  • Author
    Search Results
  • #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.

    #258392
    zpaulypaul
    Participant

    Hello everybody, I have been working on a website for the past 3 weeks.
    When I first installed buddy-press into it I was able to create a few accounts and the activation emails were being automatically sent.
    Now after upgrading the theme I’m using emails are not being sent automatically or manually.
    Any ideas?

    #258374
    israelle
    Participant

    hi
    I’ve set-up buddypress on my website
    it doesn’t send any confirmation code only sn email with that link
    “Thanks for registering!

    To complete the activation of your account, go to the following link:

    http://email.mail1.hol.es/c/eJwtjssKwjAURL-mWYbcvLPIoogFd2r9gTS92mCkUlOVfr1ZCLOYA3NgRh-s0g5J8pyBZo4pBuDAUABphKbagNaU8U4qY0Uj2SOkDHSaM8UXmbwIXEVuEdGNaIcrglCDVlbEKAWTI8l-KuXZiLbhXc2GOWzr368cYknvULDWdn87p91wPJpOrl_eS3OQ9_4ytOvk1kWc6oQsPr2WjMbUJ5-Qc6BxpimT4n_Nkjq6

    when the user click on this link he gets an error_404 page
    how can I solve this problem and get the confirmation code

    thanks
    Israel

    #258320
    steigw
    Participant

    I’m running WP 4.6 and BP 2.6.2 the nisarg child theme. I noticed that new account activation emails arrived as wordpress@mydomain.com. I wanted to change that and read all you have to do is insert code into the functions.php file in the child theme.

    <?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' );
    ?>

    I did this and sure enough, the emails came from accounts@mydomain.com and that was great, until the link to activate was actually clicked. Then it took me to a website of just raw letters/numbers. So clearly something went wrong.

    Could someone help me with what I should do? Thanks!

    #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?

    rebelangelo
    Participant

    Hi,

    I am getting notifications email like new friendship, comments, etc.. but can’t get new registration activation email.

    I’ve install facebook-login plugin and seems like it blocked buddypress registration mail I think. However, when I deleted this plugin I still couldn’t get activation email.

    I tried to repair buddypress from Tools->Buddypress and still have this problem

    Also I am using WP-Mail-SMTP for this email actions.

    My budyypress version is 2.6.1.1

    Thanks

    veresku
    Participant

    Hello,

    After updating my site does not send email with activation link. I debug the new code and the function bp_get_email returns this error:
    WP_Error Object
    (
    [errors] => Array
    (
    [missing_email] => Array
    (
    [0] => bp_get_email
    )

    )

    [error_data] => Array
    (
    [missing_email] => Array
    (
    [0] => core-user-registration
    [1] => Array
    (
    [no_found_rows] => 1
    [numberposts] => 1
    [post_status] => publish
    [post_type] => bp-email
    [suppress_filters] =>
    [tax_query] => Array
    (
    [0] => Array
    (
    [field] => slug
    [taxonomy] => bp-email-type
    [terms] => core-user-registration
    )

    )

    )

    )

    )

    )

    In admin panel I can see only buddypress email but I cannot see any terms for it

    Please help me to resolve this problem

    Thank you, Tiana

    #257114

    Topic: Activation email

    in group forum Installing BuddyPress
    jtburlew
    Participant

    When a new user registers with BuddyPress, they’re not receiving an activate email. I have to manually activate them from my dashboard. With over 3,000 people to get registered, this is not convenient.

    Help?

    http://www.safecare.info

    #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

    itnetworkexpert
    Participant

    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

    #256143
    vicksterm
    Participant

    After I click the Register button on the registration page, the text about “Check Your Email to Activate Your Account” does not display. It is hidden with an element style “display:none;”. I can’t figure out why that is there or how to remove/change it. The activation email is sent so the registration is working. It’s just that the text is hidden. I did change the slug for the register page via WP admin, but according to the codex that’s the way to do it. Any ideas for how to get the text back? Here’s the source code, along with some around it:

    <div id="main" class="clearfix " style="">
    	<div class="fusion-row" style="">
    		<div id="content" class="" style="float: left;">
    			<div id="post-0" class="bp_register type-bp_register post-0 page type-page status-publish hentry">
    				<span class="entry-title" style="display: none;">Check Your Email To Activate Your Account!</span>
    				<span class="vcard" style="display: none;">
    				<span class="fn"></span>
    					</span>
    				<span class="updated" style="display:none;">2016-06-21T19:03:57+00:00</span>
    				<h3 class="entry-title">Check Your Email To Activate Your Account!</h3>
    		<div class="post-content">				
    		<div id="buddypress">
    		<div class="page" id="register-page">
    #256073
    Dono12
    Participant

    Is there a way to add a filter to the function bp_core_activation_signup_user_notification located in bp-core-filters.php?
    I would like to change out the verification key it generates to the default WordPress key because the Buddypress key is in conflict
    with the cimy user extra field plugin. I would like a function for bp-customs or functions.php to replace the key giving me the ability
    to keep the new Buddypress user email features.

    #256071
    danbp
    Participant

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

    New user activation emails not coming

    #256068
    #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);
    balmainboy
    Participant

    Hi,

    I had setup my custom activation emails using {{recipient.name}} as a greeting at the top of the email body and in the email’s subject line, and I then added the {{recipient.username}} further in the email body to confirm the user’s username.

    Suddenly the emails are displaying the {{recipient.username}} in all outbound mail for both instances despite {{recipient.name}} being used in both the html and plain text versions of the email. This is pretty annoying as it decreases the personalisation of the email and repeats the same username – which can often be quite random or goofy names.

    Does anyone know any fixes for this?

    #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;
    }
    #255632

    Topic: Confirmation Email

    in group forum Requests & Feedback
    Dono12
    Participant

    I’m using Cymi User Extra Field, when you enable email confirmation the user gets the Buddypress email template
    with the confirmation link. when the user clicks the link it takes them to the confirmation page of the site prompting them
    to login with username and password. Problem is the user name and password doesnt work. The user gets created because they
    are visible in the users list. How can I fix this problem.
    I’ve disabled the Buddypress sign up for the default WordPress using: BP CUSTOM

    function my_disable_bp_registration() {
      remove_action( 'bp_init',    'bp_core_wpsignup_redirect' );
      remove_action( 'bp_screens', 'bp_core_screen_signup' );
    }
    add_action( 'bp_loaded', 'my_disable_bp_registration' );
    add_filter( 'bp_get_signup_page', "firmasite_redirect_bp_signup_page");
        function firmasite_redirect_bp_signup_page($page ){
            return bp_get_root_domain() . '/wp-login.php?action=register'; 
     }

    and I found this code in a Buddpress Forum:

    https://buddypress.trac.wordpress.org/ticket/3443

    // Change the text on the signup page

    add_filter( 'bp_registration_needs_activation', '__return_false' );
    
    function my_disable_activation( $user, $user_email, $key, $meta = '' ) {
    	// Activate the user
    	bp_core_activate_signup( $key );
    
    	// Return false so no email sent
    	return false;
    }
    add_filter( 'wpmu_signup_user_notification', 'my_disable_activation', 10, 4 );
    
    

    I tried it with the hope that the key would be disabled and the key fired by WordPress would take over but it still didnt work.

    I really don’t care who fires the key I just want the user to be able to login after click the key in their email.

    #255479
    Nina15
    Participant

    Since v2.6.0 on WP 4.5.3 users successfully registered (yes pending activation) cannot login after activation by Super Admin (on multisite install) or Site Admin (on main site install). ERROR: The password you entered for the username <username> is incorrect.
    Users self-activated via email link can login without any problems. This seems to be a bug with admin activation that needs to be addressed.
    The database row for wp_users seems to be all correct including the password in hash format.
    Can any of the gurus please confirm my findings?

    #255209
    rezza72
    Participant

    hi
    i use buddyPress .
    After a user is registered ، dont sent him an email activation .
    please help .
    tnx

    #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.

Viewing 25 results - 451 through 475 (of 1,427 total)
Skip to toolbar