Search Results for 'activation email'
-
Search Results
-
Topic: How to Get User Profile Data
I’m doing some development and today got onto trying to register a few dummy accounts to play with but the activation email is not being sent from either the default theme, my own theme or Twenty Ten
WordPress 3.1.1
Buddypress 1.2.8I’ve searched and found all sorts of explanations and suggestions to use a plugin to change to SMPT but I think this is going in the wrong direction. If I write my own script and send mail via PHPs mail() function it works. If I go to the WordPress default login and click “Lost your password?” and put in an email address from an unconfirmed account I receive an email on that account and when I click the reset link in that email I can then login.
PHP mail() works on my system.
The default WordPress forgot password form sends email.
The registration form on Buddypress default theme does not send email.The WordPress “Lost your password?” has <form action="url_to_site/wp-login.php?action=lostpassword …
The Buddypress forms are <form action =" " … Interestingly though if you click "Complete sign up" the form is validated and you are taken to a confirmation page where you can upload an avatar.
This sounds like a bug, swins like a bug, smells like a bug. Anyone know what it is, where it is and how I might squash it? I’ve been looking half the day and am posting here in the hope that someone has already found the blighter.
Cheers
TonyO
Hi there, i have just started on BP and my friends are trying to become members but they are not receiving the activation email… so it´s they can not confirm that they are really the ones that waht to become members. Where do I configure this notifications?
Topic: bp_members_signup.php
I’m trying to troubleshoot the email activation messages that go out when users signup with buddypress….after a bit of googling, I found the right bit of code in a file that should be /bp-members/bp-members-signup.php
function bp_members_signup_send_validation_email( $user_id, $user_email, $key ) {
$activate_url = bp_get_activation_page() .”?key=$key”;
$activate_url = esc_url( $activate_url );$from_name = ( ” == get_option( ‘blogname’ ) ) ? __( ‘BuddyPress’, ‘buddypress’ ) : esc_html( get_option( ‘blogname’ ) );
$message = sprintf( __( “Thanks for registering! To complete the activation of your account please click the following link:nn%snn”, ‘buddypress’ ), $activate_url );
$subject = ‘ ‘ . __( ‘Activate Your Account’, ‘buddypress’ );// Send the message
$to = apply_filters( ‘bp_members_signup_send_validation_email_to’, $user_email, $user_id );
$subject = apply_filters( ‘bp_members_signup_send_validation_email_subject’, $subject, $user_id );
$message = apply_filters( ‘bp_members_signup_send_validation_email_message’, $message, $user_id, $activate_url );wp_mail( $to, $subject, $message );
do_action( ‘bp_members_sent_user_validation_email’, $subject, $message, $user_id, $user_email, $key );
}HOWEVER, in the version of BuddyPress running on our site (version 1.2.5.2) I can’t find any directories named bp-members/ at all! Have I gone mad? Has it been moved somewhere else?
BP Classifieds is compatible up to WPMU 2.9.2 and BP 1.2.1 only. Unless you’re on those versions, expect the plugin to break in current versions as there have been numerous major code changes since plugin was released a year ago.
During a recent project, I needed to get certain User Profile Data to be used. This was used outside any loops and not on the Profile page. Hopefully this will help others seeking the same information.
To obtain the default data (such as User ID, User Login, ect) use the following:
`global $bp;
$the_user_id = $bp->loggedin_user->userdata->ID;
$the_user_login = $bp->loggedin_user->userdata->user_login;`
Userdata values include:
ID
user_login
user_pass (this is encrypted MD5 Hash)
user_nicename
user_email
user_url
user_registered
user_activation_key
user_status
display_name
To get field data from extended profile fields for the current logged in user, use the following:
`$the_first_name = bp_get_profile_field_data(‘field=First Name&user_id=’.bp_loggedin_user_id());
/* Change field name to the one you added to the profile, or if you know the field’s #, you can use that instead. */
`
I do hope this helps someone else. It drove me nuts trying to track down the info, but after piecing bits of information together, I was able to get this figured out.
Have fun!
Ed