Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'activation email'

Viewing 25 results - 1,251 through 1,275 (of 1,893 total)
  • Author
    Search Results
  • #121121

    In reply to: Buddypress mails

    Tammie Lister
    Moderator

    When you say can’t send out emails are you on a server that has been set up to email? I ask this as you may not be.

    Also what happens on activation does it just not send out?

    https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/registration-not-working may also help you.

    #24236
    ttcole1254
    Member

    I have a basic website with the most recent version of BuddyPress installed (1.2.10) and WordPress version 3.2.1. What happens, is when a person registers, it tells you to check your email for the registration link. On that same page, it allows you to upload and crop your avatar. Once you click the link sent in the email, it comes back fine saying “Account Activated.” Here is when the problems comes up. When the correct username and password is typed in, an error page will come up with the words “There was an error activating your account, please try again.” asking for an activation key. If you ignore this page and go back and try to log in again, everything is fine. What I want to know, basically, is how to delete this page, as it will be confusing to users who are registering on the site, because the page serves no purpose.

    Thanks,
    Tyler

    #24211
    WebEndev
    Participant

    Using BuddyPress 1.5 RC1 with WP 3.2.1, and Gravity Forms 1.6 with the User Registration Add-On

    I set up a custom Registration form using Gravity Forms.

    The WP user was created, and the BP user meta was populated perfectly.

    An email was sent out to the user as expected, but it was only the email containing Username, Password, and a link back to wp-login. The activation email did not go out.

    Logging the user on worked just fine, and it seems that the user has the correct role, and has the correct access on the site.

    I assume that the BuddyPress activation process was bypassed by using Gravity Forms?

    I would prefer to have activation as an extra measure to prevent bogus registration.

    I have a request in the Gravity Form forums to make the activation process work in their User Registration add-on plugin, but this may not be done for some time.

    In the mean time, is there a way to trigger the activation process that could be used in Gravity Forms?

    Thanks

    #119898
    acurran
    Member

    My 3 step solution to this problem is as follows:

    1. Install plugin – BuddyPress Pending Activations (https://wordpress.org/extend/plugins/buddypress-pending-activations/)
    2. Make hack to plugin function bp_pending_activations_admin() so that it sends an email when a user is activated:
    $resendusers = $wpdb->get_results( $wpdb->prepare( “SELECT u.ID, u.user_login, u.user_email, m.meta_value FROM ” . CUSTOM_USER_META_TABLE . ” m, “. CUSTOM_USER_TABLE .” u WHERE u.ID = m.user_id AND m.meta_key = ‘activation_key’ AND u.ID IN ({$userids})” ) );

    foreach ( $resendusers as $resend ) {

    /* Activate the signup */
    $user = apply_filters( ‘bp_core_activate_account’, bp_core_activate_signup( $resend->meta_value ) );

    /* If there was errors, add a message and redirect */
    if ( $user->errors ) {
    echo ‘There was an error activating this account, please try again: ‘. $resend->user_login;
    } else {
    $to = $resend->user_email;
    $subject = “Your ?????? Account Has Been Activated!”;
    $message = “Your account has been activated. Go to http://??????/ and sign in with the username and password that you created when you signed up.nnWelcome to ?????!”;
    $admin_email = get_site_option( “admin_email” );
    $from_name = “??????????”;
    $message_headers = “MIME-Version: 1.0n” . “From: “{$from_name}” n” . “Content-Type: text/plain; charset=”” . get_option( ‘blog_charset’ ) . “”n”;
    wp_mail( $to, $subject, $message, $message_headers );
    }
    3. Redirect activation email to admin (to use as a noitification for admin instead of automatically sending activition key to user) by adding this to functions.php:
    function change_activation_email_to($content) {
    return get_site_option( “admin_email” );
    }
    add_filter( ‘bp_core_activation_signup_user_notification_to’, ‘change_activation_email_to’);

    So the when a new user signs up, they do not get any activation email. That goes to the admin instead. You will need to change the wording in your template to let the user know that they have to wait for manual approval. Admin logs in to WP admin and goes to Pending Activitations and activates the user. An email is sent to user to let them know they have been activated.

    #119388
    nicholmikey
    Participant

    So this is what happened, the plugin “Multisite User Management” has a hook that fires when you make a new user in order to automatically assign users roles to certain blogs. This all worked fine in my dev environment, but on my production site the plugin took so long that it would crash PHP during the activation process. I fixed this by disabling that plugin. Now I was left with 80+ users that were missing their xprofile data and passwords that they set, as the script crashed before it could get to that point. (no data being copied to xprofile tables). I fixed their profiles by selecting damaged users from the wp_signups table and running the code from bp-core-signup.php that was missed due to crashes.

    This code updates all users from the 20th of august to today (the date range of the problem)

    `
    <?php

    require( dirname(__FILE__) . ‘/wp-load.php’ );
    global $bp, $wp, $wpdb;

    $users = $wpdb->get_results( “SELECT * FROM wp_signups WHERE registered > ‘2011-08-22 00:00:00′”);

    $user_id = $user;

    foreach ($users as $dbuser){

    echo $dbuser->user_login . ‘
    ‘;
    $meta = unserialize($dbuser->meta);
    $user_login = $wpdb->escape($dbuser->user_login);
    $user_email = $wpdb->escape($dbuser->user_email);
    $password = wp_generate_password( 12, false );
    $user_id = username_exists($user_login);

    $user = array(‘blog_id’ => ‘0’, ‘user_id’ => $user_id, ‘password’ => $password, ‘title’ => $signup->title, ‘meta’ => $meta);

    if ( function_exists( ‘xprofile_set_field_data’ ) ) {
    if ( !empty( $user ) ) {
    $profile_field_ids = explode( ‘,’, $user );

    foreach( (array)$profile_field_ids as $field_id ) {
    $current_field = $user[“field_{$field_id}”];

    if ( !empty( $current_field ) )
    xprofile_set_field_data( $field_id, $user_id, $current_field );
    }
    }
    }

    /* Update the user_url and display_name */
    wp_update_user( array( ‘ID’ => $user_id, ‘user_url’ => bp_core_get_user_domain( $user_id, sanitize_title( $user_login ), $user_login ), ‘display_name’ => bp_core_get_user_displayname( $user_id ) ) );

    /* Add a last active entry */
    update_user_meta( $user_id, ‘last_activity’, bp_core_current_time() );

    /* Set the password on multisite installs */
    if ( bp_core_is_multisite() && !empty( $user ) )
    $wpdb->query( $wpdb->prepare( “UPDATE $wpdb->users SET user_pass = %s WHERE ID = %d”, $user, $user_id ) );

    /* Delete the total member cache */
    wp_cache_delete( ‘bp_total_member_count’, ‘bp’ );

    }

    echo ‘all done’;

    ?>
    `

    #23951
    nicholmikey
    Participant

    Hello,

    I have a large user base (7000+ users) and recently there have been problems when new users register. Users fill in their xprofile data and sign up, get an activation key in the mail, but when they click the activation link the page either comes back with a 502 Bad Gateway or a blank page. Turning on debug mode still results in the blank page. After this, users get an email saying they are activated, but all of their xprofile data is gone and their name is replaced with their username. I am under a really tight deadline to fix this and am pulling my hair out, any suggestions?

    christophg
    Member

    Hello all! So I have been tinkering with a feedback plugin designed by @justbishop (as described here: http://wordpress.org/support/topic/any-plugin-similar-to-ebays-user-feedback-member-rating-feedback?replies=2). It works well but i need to set a conditional that causes it to only create a feedback page for members with an s2member level 1.

    I changed:

    `add_action ( ‘user_register’, ‘create_feedback_page’ );

    function create_feedback_page(){

    create_feedback_page($user_id);

    $user_info = get_userdata($user_id); }`

    To:

    `add_action ( ‘user_register’, ‘create_feedback_page’ );

    function create_feedback_page(){

    if (!current_user_can(‘access_s2member_level1’))

    create_feedback_page($user_id);

    $user_info = get_userdata($user_id); }`

    It worked at first but then I tested it a second time and upon clicking on the registration confirmation email i got the message “[an error occurred while processing this directive]” and when that page is refreshed it leads me to a page that asks for a valid activation code. I know it has to do with the changes I made to this plugin because when I reverse it all goes well. Any ideas on how to remedy this? ANY input would be GREATLY appreciated!

    #119079
    kerri3317
    Member

    What if the activation email is not going out??
    Admin profile viewing question is also still out there.

    modemlooper
    Moderator
    candy2012
    Member

    Hi,
    this is on old VERY buggy subject and after years of people pointing out to it no real solution so far unfortunatelly!
    I want to deactivate that obligatory email activation part, and NONE of those plugin attempts from a year ago work with the latest BP/WP versions anymore!

    Why can’t buddypress simply provide an option to deactivate that thing?

    Why forcing people use something they either need or want?

    I for ex. have S2 activated, the LAST thing I need is this extra “new user killer” buddypress email activation.

    Anyone knows of a WORKING hack to use with the latest WP / buddypress versions?

    Thank you v.much!

    #118172
    Whitefox
    Member

    OK so I’ve had the same problem and have built a very clumsy workaround.

    PROBLEM: When the user click the email verification it sends them to verify.php and logs them in to WP but my Buddypress doesn’t know they are logged in and asks them to login. If the user just ignores the login request there is no problem but users don’t do that so they try to login and get the same “error..please provide a valid activation key” message because the account is already active.

    MY RUBBISH ANSWER: The only thing that worked for me was to hide the BP admin bar and handle login links manually then change the text on the verify.php to a simple ‘congratulations, you’re in’ message. The downside of this is that I lost the use of my BP-Sliding-Login-Panel which I love. so I would be very grateful for a real solution to this.

    #118127
    Whitefox
    Member

    I have been working through a similar problem where WP sends an activation email and the new user replies. The user is then logged in to WP but NOT BP…. so if the user tries to login as BP says they should it will generate an error because they are already logged in!

    I am having to tell newly registered users to close their browser then re-open and login.

    If someone comes up with a more viable option I would be very grateful.

    enderandrew
    Member

    You can check the time stamps of the emails to get an idea of when the mailsender sent them. That might give you a better idea if it is your mailsender on the server, or something else delaying the emails.

    enderandrew
    Member

    The email delay could be your mailsender, it could be the receiver, or anything in between. Most of the time email is relatively instant, except the times when it isn’t.

    Andrea Rennick
    Participant

    ” ( preferably not a plugin, Is there some code edits can achieve this)?”

    It’s basically the same thing.
    https://wordpress.org/extend/plugins/bp-disable-activation/

    And your emails not getting sent out in time is a server setting.

    #117193
    @mercime
    Participant

    First, ask users to check if activation email went to spam folder. If not, wome webhosts have problem with WP mail. Some have used this plugin successfully https://wordpress.org/extend/plugins/wp-mail-smtp/

    #117150
    igeekout
    Member

    I have a similar issue where users sign up, get the activation email but are sent to a page asking for an activation key to be entered in an input field. One member on this site told me the key is the in the url. Sure, I realize that. But how do the users know that?

    #117028
    igeekout
    Member

    Looks like ill have to add some text to that email stating that incasae they are prompted with that field.

    There is no indication that that needs to be done.

    #117026
    Andrea Rennick
    Participant

    they only need to copy/paste that info if for some reason the key in that URL does not show in their address bar.

    #117023
    igeekout
    Member

    so youre saying, a user needs to copy the key string and paste it in to the input field where im being asked to enter my activation key?

    why do I think thats wrong?

    #117022
    Andrea Rennick
    Participant

    For example, this is the email that is sent:

    “Thanks for registering! To complete the activation of your account please click the following link:

    http://example.com/activate?key=5570d3e7b263884f2b63ed6d096571cb&#8221;

    See where it says KEY? And all those letters and numbers afterwards? THat is the activation key.

    #117021
    Andrea Rennick
    Participant

    “But where is the activation code that its asking me to enter…”

    In the email with the link you just clicked. it’s part of the link itself.

    “Clicking the link doesn’t add the activation code in the input field does it?”

    Yes, yes it does.

    #117019
    igeekout
    Member

    @Andrea_r Yes, I understand that the link is the activation. But where is the activation code that its asking me to enter…

    As I stated in previous posts…..

    when I click the link, I am sometimes taken to a page where im asked to enter a activation key. But there is no activation key in the email. Just a link.

    Clicking the link doesn’t add the activation code in the input field does it? Where is the email with the activation code that needs to be entered in to input

    #117018
    Andrea Rennick
    Participant

    Yes, you DID receive the activation key. it was in the link that you just clicked on. CLicking the link verifies your new account.

    #117017
    igeekout
    Member

    @Andrea_r Nope, cant post a link cause its not live yet and client would freak.

    Here’s what happens.

    I get an email. It contains an activation link. If I click that link, sometimes im taken to a page that asks for an activation key to be entered in to an field. But I never received an activation key.

Viewing 25 results - 1,251 through 1,275 (of 1,893 total)
Skip to toolbar