Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'activation email'

Viewing 25 results - 1,101 through 1,125 (of 1,893 total)
  • Author
    Search Results
  • #132320
    allentan
    Member

    @merime

    I managed to get it to work now… I do the hard way, reset everything and start all over under a new folder /dev. Its working. But alignment is Out a Little.

    http://learningdigitalphotography.net/dev/register/

    But when i register myself as a new user, it doesn;t give me any activation code… i just register and approved it via a link sent to my email.
    I wanted to add this plugin to allow sharing of photo…
    https://wordpress.org/extend/plugins/buddypress-easy-albums-photos-video-and-music/

    I believe this photo sharing plugin works? How can i integrate them into my site?

    cpavel
    Member

    I think I resolved the issue. The issue was that only users that are on GMAIL receive new user activation email upon joining my buddypress powered site. Users in other email domains were not receiving user activation emails. I am running my own VPS based host, essentailly I own the server with public IP that is running WP and BP, so I think this situation might apply to others, hence this post. I am hoping this could help others with similar email issues.

    Here are the of my install:

    1. WordPress version 3.3.1
    2. WordPress installed as directory
    3. WordPress installed in root
    4. Fresh Install
    5. Fresh install of BP version 1.5.4 define( ‘BP_ENABLE_MULTIBLOG’, true);
    6. Running LEMP server (CentOS 5.8+Nginx +MySQL+PHP)

    7. Started troubleshooting by checking sendmail logs:
    cat /var/spool/mail/nginx

    8. Observed following error messages:


    The following addresses had permanent fatal errors



    (reason: 554 Denied [SHXBL] – Denied by Spamhaus XBL – See http://www.spamhaus.org/query/bl?ip=my.host.ip.add (Mode: normal))

    9. Followed link provided to spamhaus which presented me with:

    my.host.ip.add is listed in the XBL, because it appears in:

    CBL (link to CBL)

    10. Followed CBL Link to read:
    “This IP address is HELO’ing as “localhost.localdomain” which violates the relevant standards (specifically: RFC5321)”

    11. Followed link provided to http://cbl.abuseat.org/namingproblems.html
    the gist of which is:
    “There are two basic types of detections that land an IP in this page. RFC2821 section 4.1.1.1 says that there are only two legal types of HELO/EHLO a mail server can issue – either a fully qualified domain name (eg: “mail.example.com”) or an “IP literal” (eg: “[1.2.3.4]”).”

    12. Followed instructions to fix link for UNIX system (also there is a link for Windows) to http://cbl.abuseat.org/sendmailhelp.html

    13. completed fix to sendmail.cf file, I chose to respond to HELO as [my.host.ip.add] fashion and completed sendmail restart.

    14. you will now need to delist your domain from CBL – go back to CBL link (it will complain about timestamp, so might have to do it through spamhaus link) and at the bottom of the page there should be link to request de-listing. Click and wait 1-2 hours

    14. I tested again, by sending registration email from my BP install (signed up new user) to check how the email header is received now, here is a comparison for before and after. Then fix was confirmed working as registration email came through to another email domain

    Before:
    Received: from localhost.localdomain ([my.host.ip.add])
    by mx.google.com with ESMTP id e70si6268183yhk.134.2012.03.30.09.16.56;
    Fri, 30 Mar 2012 09:16:56 -0700 (PDT)

    After:
    Received: from [my.host.ip.add] ([my.host.ip.add])
    by mx.google.com with ESMTP id n5si4532434614yhm.135.2012.03.30.11.24.59;
    Fri, 30 Mar 2012 11:24:59 -0700 (PDT)

    Paul Wong-Gibbs
    Keymaster

    When a user registers an account on your site, they’ll be sent an email with the key/link.

    yadigit
    Participant

    (As posted in “Installing Buddypress Forums” Sorry, I didn’t realize I was in the wrong forum.)

    Hello, I’ve been looking around for a plugin that will let me allow/deny registration for my BP/WP site.
    I am using BP 1.5.5 and WP 3.3,

    I looked in the core-filters.php and came across the code to send the activation code to the user’s email.

    `
    /***
    * bp_core_filter_user_welcome_email()
    *
    * Replace the generated password in the welcome email.
    * This will not filter when the site admin registers a user.
    *
    * @uses locate_template To see if custom registration files exist
    * @param string $welcome_email Complete email passed through WordPress
    * @return string Filtered $welcome_email with ‘PASSWORD’ replaced by [User Set]
    */
    function bp_core_filter_user_welcome_email( $welcome_email ) {
    /* Don’t touch the email if we don’t have a custom registration template */
    if ( ” == locate_template( array( ‘registration/register.php’ ), false ) && ” == locate_template( array( ‘register.php’ ), false ) )
    return $welcome_email;

    // [User Set] Replaces ‘PASSWORD’ in welcome email; Represents value set by user
    return str_replace( ‘PASSWORD’, __( ‘[User Set]’, ‘buddypress’ ), $welcome_email );
    }
    if ( !is_admin() && empty( $_GET ) )
    add_filter( ‘update_welcome_user_email’, ‘bp_core_filter_user_welcome_email’ );

    /***
    * bp_core_filter_blog_welcome_email()
    *
    * Replace the generated password in the welcome email.
    * This will not filter when the site admin registers a user.
    *
    * @uses locate_template To see if custom registration files exist
    * @param string $welcome_email Complete email passed through WordPress
    * @param integer $blog_id ID of the blog user is joining
    * @param integer $user_id ID of the user joining
    * @param string $password Password of user
    * @return string Filtered $welcome_email with $password replaced by [User Set]
    */
    function bp_core_filter_blog_welcome_email( $welcome_email, $blog_id, $user_id, $password ) {
    /* Don’t touch the email if we don’t have a custom registration template */
    if ( ” == locate_template( array( ‘registration/register.php’ ), false ) && ” == locate_template( array( ‘register.php’ ), false ) )
    return $welcome_email;

    // [User Set] Replaces $password in welcome email; Represents value set by user
    return str_replace( $password, __( ‘[User Set]’, ‘buddypress’ ), $welcome_email );
    }
    if ( !is_admin() && empty( $_GET ) )
    add_filter( ‘update_welcome_email’, ‘bp_core_filter_blog_welcome_email’, 10, 4 );

    // Notify user of signup success.
    function bp_core_activation_signup_blog_notification( $domain, $path, $title, $user, $user_email, $key, $meta ) {

    // Send email with activation link.
    $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;

    $from_name = ( ” == get_site_option( ‘site_name’ ) ) ? ‘WordPress’ : esc_html( get_site_option( ‘site_name’ ) );
    $message_headers = “MIME-Version: 1.0n” . “From: “{$from_name}” n” . “Content-Type: text/plain; charset=”” . get_option( ‘blog_charset’ ) . “”n”;
    $message = sprintf( __( “Thanks for registering! To complete the activation of your account and blog, please click the following link:nn%1$snnnnAfter you activate, you can visit your blog here:nn%2$s”, ‘buddypress’ ), $activate_url, esc_url( “http://{$domain}{$path}” ) );
    $subject = ‘ ‘ . sprintf(__( ‘Activate %s’, ‘buddypress’ ), esc_url( ‘http://’ . $domain . $path ) );

    // Send the message
    $to = apply_filters( ‘bp_core_activation_signup_blog_notification_to’, $user_email, $domain, $path, $title, $user, $user_email, $key, $meta );
    $subject = apply_filters( ‘bp_core_activation_signup_blog_notification_subject’, $subject, $domain, $path, $title, $user, $user_email, $key, $meta );
    $message = apply_filters( ‘bp_core_activation_signup_blog_notification_message’, $message, $domain, $path, $title, $user, $user_email, $key, $meta );

    wp_mail( $to, $subject, $message, $message_headers );

    do_action( ‘bp_core_sent_blog_signup_email’, $admin_email, $subject, $message, $domain, $path, $title, $user, $user_email, $key, $meta );

    // Return false to stop the original WPMU function from continuing
    return false;
    }
    if ( !is_admin() )
    add_filter( ‘wpmu_signup_blog_notification’, ‘bp_core_activation_signup_blog_notification’, 1, 7 );

    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;

    // If this is an admin generated activation, add a param to email the
    // user login details
    $email = is_admin() ? ‘&e=1’ : ”;

    $from_name = ( ” == get_site_option( ‘site_name’ ) ) ? ‘WordPress’ : esc_html( get_site_option( ‘site_name’ ) );
    $message_headers = “MIME-Version: 1.0n” . “From: “{$from_name}” n” . “Content-Type: text/plain; charset=”” . get_option( ‘blog_charset’ ) . “”n”;
    $message = sprintf( __( “Thanks for registering! To complete the activation of your account please click the following link:nn%snn”, ‘buddypress’ ), $activate_url . $email );
    $subject = ‘ ‘ . __( ‘Activate Your Account’, ‘buddypress’ );

    // Send the message
    $to = apply_filters( ‘bp_core_activation_signup_user_notification_to’, $user_email, $user, $user_email, $key, $meta );
    $subject = apply_filters( ‘bp_core_activation_signup_user_notification_subject’, $subject, $user, $user_email, $key, $meta );
    $message = apply_filters( ‘bp_core_activation_signup_user_notification_message’, $message, $user, $user_email, $key, $meta );

    wp_mail( $to, $subject, $message, $message_headers );

    do_action( ‘bp_core_sent_user_signup_email’, $admin_email, $subject, $message, $user, $user_email, $key, $meta );

    // Return false to stop the original WPMU function from continuing
    return false;
    }
    if ( !is_admin() || ( is_admin() && empty( $_POST ) ) )
    add_filter( ‘wpmu_signup_user_notification’, ‘bp_core_activation_signup_user_notification’, 1, 4 );

    `

    I replaced $user_email, with $admin_email,
    it doesn’t seem to work.
    did I miss something here?
    Any ideas?

    Thank you =D

    Ps. BP rocks.

    yadigit
    Participant

    Hello, I’ve been looking around for a plugin that will let me allow/deny registration for my BP/WP site.
    I am using BP 1.5.5 and WP 3.3,

    I looked in the core-filters.php and came across the code to send the activation code to the user’s email.

    `
    /***
    * bp_core_filter_user_welcome_email()
    *
    * Replace the generated password in the welcome email.
    * This will not filter when the site admin registers a user.
    *
    * @uses locate_template To see if custom registration files exist
    * @param string $welcome_email Complete email passed through WordPress
    * @return string Filtered $welcome_email with ‘PASSWORD’ replaced by [User Set]
    */
    function bp_core_filter_user_welcome_email( $welcome_email ) {
    /* Don’t touch the email if we don’t have a custom registration template */
    if ( ” == locate_template( array( ‘registration/register.php’ ), false ) && ” == locate_template( array( ‘register.php’ ), false ) )
    return $welcome_email;

    // [User Set] Replaces ‘PASSWORD’ in welcome email; Represents value set by user
    return str_replace( ‘PASSWORD’, __( ‘[User Set]’, ‘buddypress’ ), $welcome_email );
    }
    if ( !is_admin() && empty( $_GET ) )
    add_filter( ‘update_welcome_user_email’, ‘bp_core_filter_user_welcome_email’ );

    /***
    * bp_core_filter_blog_welcome_email()
    *
    * Replace the generated password in the welcome email.
    * This will not filter when the site admin registers a user.
    *
    * @uses locate_template To see if custom registration files exist
    * @param string $welcome_email Complete email passed through WordPress
    * @param integer $blog_id ID of the blog user is joining
    * @param integer $user_id ID of the user joining
    * @param string $password Password of user
    * @return string Filtered $welcome_email with $password replaced by [User Set]
    */
    function bp_core_filter_blog_welcome_email( $welcome_email, $blog_id, $user_id, $password ) {
    /* Don’t touch the email if we don’t have a custom registration template */
    if ( ” == locate_template( array( ‘registration/register.php’ ), false ) && ” == locate_template( array( ‘register.php’ ), false ) )
    return $welcome_email;

    // [User Set] Replaces $password in welcome email; Represents value set by user
    return str_replace( $password, __( ‘[User Set]’, ‘buddypress’ ), $welcome_email );
    }
    if ( !is_admin() && empty( $_GET ) )
    add_filter( ‘update_welcome_email’, ‘bp_core_filter_blog_welcome_email’, 10, 4 );

    // Notify user of signup success.
    function bp_core_activation_signup_blog_notification( $domain, $path, $title, $user, $user_email, $key, $meta ) {

    // Send email with activation link.
    $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;

    $from_name = ( ” == get_site_option( ‘site_name’ ) ) ? ‘WordPress’ : esc_html( get_site_option( ‘site_name’ ) );
    $message_headers = “MIME-Version: 1.0n” . “From: “{$from_name}” n” . “Content-Type: text/plain; charset=”” . get_option( ‘blog_charset’ ) . “”n”;
    $message = sprintf( __( “Thanks for registering! To complete the activation of your account and blog, please click the following link:nn%1$snnnnAfter you activate, you can visit your blog here:nn%2$s”, ‘buddypress’ ), $activate_url, esc_url( “http://{$domain}{$path}” ) );
    $subject = ‘ ‘ . sprintf(__( ‘Activate %s’, ‘buddypress’ ), esc_url( ‘http://’ . $domain . $path ) );

    // Send the message
    $to = apply_filters( ‘bp_core_activation_signup_blog_notification_to’, $user_email, $domain, $path, $title, $user, $user_email, $key, $meta );
    $subject = apply_filters( ‘bp_core_activation_signup_blog_notification_subject’, $subject, $domain, $path, $title, $user, $user_email, $key, $meta );
    $message = apply_filters( ‘bp_core_activation_signup_blog_notification_message’, $message, $domain, $path, $title, $user, $user_email, $key, $meta );

    wp_mail( $to, $subject, $message, $message_headers );

    do_action( ‘bp_core_sent_blog_signup_email’, $admin_email, $subject, $message, $domain, $path, $title, $user, $user_email, $key, $meta );

    // Return false to stop the original WPMU function from continuing
    return false;
    }
    if ( !is_admin() )
    add_filter( ‘wpmu_signup_blog_notification’, ‘bp_core_activation_signup_blog_notification’, 1, 7 );

    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;

    // If this is an admin generated activation, add a param to email the
    // user login details
    $email = is_admin() ? ‘&e=1’ : ”;

    $from_name = ( ” == get_site_option( ‘site_name’ ) ) ? ‘WordPress’ : esc_html( get_site_option( ‘site_name’ ) );
    $message_headers = “MIME-Version: 1.0n” . “From: “{$from_name}” n” . “Content-Type: text/plain; charset=”” . get_option( ‘blog_charset’ ) . “”n”;
    $message = sprintf( __( “Thanks for registering! To complete the activation of your account please click the following link:nn%snn”, ‘buddypress’ ), $activate_url . $email );
    $subject = ‘ ‘ . __( ‘Activate Your Account’, ‘buddypress’ );

    // Send the message
    $to = apply_filters( ‘bp_core_activation_signup_user_notification_to’, $user_email, $user, $user_email, $key, $meta );
    $subject = apply_filters( ‘bp_core_activation_signup_user_notification_subject’, $subject, $user, $user_email, $key, $meta );
    $message = apply_filters( ‘bp_core_activation_signup_user_notification_message’, $message, $user, $user_email, $key, $meta );

    wp_mail( $to, $subject, $message, $message_headers );

    do_action( ‘bp_core_sent_user_signup_email’, $admin_email, $subject, $message, $user, $user_email, $key, $meta );

    // Return false to stop the original WPMU function from continuing
    return false;
    }
    if ( !is_admin() || ( is_admin() && empty( $_POST ) ) )
    add_filter( ‘wpmu_signup_user_notification’, ‘bp_core_activation_signup_user_notification’, 1, 4 );

    `

    I replaced $user_email, with $admin_email,
    it doesn’t seem to work.
    did I miss something here?
    Any ideas?

    Thank you =D

    Ps. BP rocks.

    #28479
    coreymj78
    Member

    1. Ok, this is something I have never understood and I really need to now that this site is about to go live. When I sign up a test account on my buddypress register page, I activate it via the email, etc then it says activation complete, etc. But what I don’t get is, the new user does not show up in the SITE admin > Users > All Users, it only shows up in the NETWORK admin Users > All Users. This means that my client’s staff will not be able to see the BuddyPress members in their site admin users area right? Why is this?

    2. Another issue I am having now is that when checking what the actual WordPress ROLE the new BuddyPress user was by testing it with a function like this:

    if( current_user_can( ‘author’ ))

    …the BuddyPress new user didn’t match any of them. I tried Editor, Author, Member, Subscriber, Moderator, Contributor, Key Master… and even Blocked and Inactive (whatever those are) and none of them affected this new user. What role is WordPress even giving the new BuddyPress users? I have verified that the new BP user does not have access to the WP admin dashboard at all, so that is good. But I need to be able to filter certain aspects of the site in addition to this, thus I need to know how to use the above conditional for BP users.

    3. After I get this sorted, is there a plugin or function I can use that would cause new BuddyPress registrants to be automatically redirected to the BP Groups area when logging in?

    #131779
    allentan
    Member

    I tried to add in a functions.php by added above code to my existing functions.php in my theme folder, and it gives an error. This doesn’t work.

    The page URL is a Page_name by itself, when creating a new page, the URL end with a .html I am using a special plugin call “Page Link To” to link the page to the correct Page name. That is from http://learningdigitalphotography.net/registration.html to http://learningdigitalphotography.net/registration/ this is so because my permalink is not working to what i intented the page URL to be. Will this cause an issue?

    ANother things which i have question is the the registeration page seems missing some field.
    http://learningdigitalphotography.net/registration/
    There is a profile Detail but no field to enter those info. Is there some info which needs User to Key in?

    Very strange that why My registration page is Not accepting user registration. You can do a try to register.. http://learningdigitalphotography.net/registration/

    #131778
    allentan
    Member

    The activate page is this http://learningdigitalphotography.net/activate-2/

    Beside functions.php, is there any other files is causing the issue?

    So for functions.php , what i need is to create a file and with the code below:
    //Fix Email issue
    function fix_bp_core_email_from_address_filter() {
    return apply_filters( ‘bp_core_email_from_address_filter’, ‘noreply@yoururl.com’);
    }
    add_filter( ‘wp_mail_from’, ‘fix_bp_core_email_from_address_filter’ );

    #131772
    aces
    Participant
    #131771
    aces
    Participant

    @allentan What debug info does a wp-mail-smtp test email give you.

    Does that email actually leave your host’s servers?

    The functions.php file would be found in the ( child ) theme directory. If it doesn’t exist you can create one.

    Were you logged out when you filled in the registration form?

    I wonder if this even is an email problem as I can’t reach normal buddypress pages such as http://learningdigitalphotography.net/activate/ I get `(HTTP 404 Not Found)`….

    #131770
    allentan
    Member

    @ORyanMcentire you mentioned you add a code into functions.php. Where can i find this file? Which part should i insert this code.
    //Fix Email issue
    function fix_bp_core_email_from_address_filter() {
    return apply_filters( ‘bp_core_email_from_address_filter’, ‘noreply@yoururl.com’);
    }
    add_filter( ‘wp_mail_from’, ‘fix_bp_core_email_from_address_filter’ );

    #131768
    allentan
    Member

    Hi…

    I have tried all ways mentioned above.. added the Mail-From and wp-mail-smtp plugin and it still doesn’t work at all. It just bring me back to the home page without any successful registration complete message…

    What can be wrong?

    #131766
    aces
    Participant
    #28306
    leeallen55
    Member

    I just set up Buddypress and my new member registration email takes me to my Buddypress site and requires an activation key. How do I not make this required so the person just clicks on the link on their email and it takes them to the “Congrats your activation is successful” screen.

    #131362

    Thanks, removing the www prefix to my domain name in Settings, General did the trick.

    #131360
    aces
    Participant

    Hi all. I have an issue where the two emails that are supposed to go out when a new user registers on the site, the activation email to the user and the ‘new user registration’ email to the admin, does not get sent / delivered. I’ve tried deactivating all my plugins and deactivated my premium buddypress theme but it still didn’t work. Only after disabling buddypress and using the standard WordPress install, does a user receive their activation email. I have searched high and low, but I just cannot get to the bottom of this, but as soon as I activate buddypress, it stops working. Any help would be greatly appreciated. Thanks, Justin.

    #28241
    MaTaX91
    Member

    So after a new user click the activation link in their email why does it also ask them for a code? it doesn’t need it so why is it there?

    ashleyo
    Member

    New users can receive email and click to activate account, it says, account activated! then asks for an activation key. Is this a conflict between wp an bp? how can i resolve it? it works fine with bp default, but not the theme i’m using.
    Thanks

    bp 1.5.4

    #131263

    In reply to: Users log-in to WP

    margysdr
    Member

    I have looking for answers on this myself. We have a log in on our site that says it will email the activation code, but we never got the activation code. Do you know how to set this up, or know of where I can go to get this answer? thanks.

    #131071

    In reply to: No activation emails

    Colinbrowne
    Member

    Thanks!

    9087877
    Inactive

    Every time I hear of this I have to say before anything else disable all plugins except for BP then try a test registration/activation. Even If it sends it to a spam folder in your email then you have used a process of elimination to find the culprit. Most of the time if you are getting your test activations in a spam folder on your email then setting up an email on your host from your domain cures the issue. Something like “admin_yourusername@yourdomain.com” in your cpanel webmail or whatever you have usually fixes this. You may also need to change the email in your dashboard/settings/general E-mail Address to reflect the email you created on your host depending on the host and how they handle mail. Hopefully this will help you. “My advise to anyone is after installing any plugin after BP is to do a test registration/activation each time.” That way you don’t have to sort through 20 plugins to find the one that breaks activation. Oh yeah, and if it activates go ahead and log-in with the username and password you created or the test registration/activation member you created will not show up in the members directory.

    snowlas
    Participant

    I don’t know enough to write a patch. If someone knows how to make that into a patch, it would be great. As always, I recommended backing up any files you will be editing, so you can replace them as needed.

    Paul Wong-Gibbs
    Keymaster

    Editing core is a very bad idea. If that can’t be unhooked or filtered around, submit a ticket to core — patches would be welcome.

    snowlas
    Participant

    I think I solved it for the most part. Take a look at my solutions and see if it might help you: https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/activation-email-key-doesnt-work-i-may-have-the-fix/

Viewing 25 results - 1,101 through 1,125 (of 1,893 total)
Skip to toolbar