Search Results for 'activation email'
-
AuthorSearch Results
-
January 2, 2010 at 8:57 pm #59917
In reply to: Modified mail message registration
peterverkooijen
ParticipantI’ve tried this regular WordPress plugin for New User Email Setup, but it didn’t do anything at all for Buddypress activation.
This BuddyPress Registration Options has some very useful features that I probably need anyway, but it still doesn’t allow you to change the From and Subject lines. [username] seems to be the only available tag, not [fullname]. You can’t make any changes unless you check Moderate New Members.
Why is more control over the registration process not built into the Buddypress core? It’s essential to a social network imho.
January 2, 2010 at 8:12 pm #59915In reply to: Modified mail message registration
peterverkooijen
ParticipantHas editing the activation/welcome email become any easier in versions 1.1.3/1.2?
What changes have been made?
Is the pastebin code now obsolete? I’ve noticed in 1.1.3 the default setting (?) is that new members enter their own password on the sign-up form, so I guess the “you will receive *another email* with your login” no longer applies?
January 1, 2010 at 7:42 pm #59885In reply to: Soon to release bp group control plugin
Anonymous User 96400
Inactivesetting up different group types is fairly easy. You just have to attach some groupmeta to the group, that basically let you add as many types as you’d like. Then you just check the metadata to figure out what type of group you’re in. Using the groups API you can then add different functionality for different groups.
I’ve written a types-plugin for one of my sites. It doesn’t have an interface, though. The 3 types I needed are hardcoded into it, so it’s really not suited for a release at the moment. There’s also a lot of more stuff, like a shopping cart, part of that plugin. So, I’ve stripped the functions needed for group types out (hopefully al of them).
First we need to add the addtional fields to our registration form:
function sv_add_registration_group_types()
{
?>
<div id="account-type" class="register-section">
<h3 class="transform"><?php _e( 'Choose your account type (required)', 'group-types' ) ?></h3>
<script type="text/javascript" defer="defer">
jQuery(document).ready(function(){
jQuery("#account-type-normal_user").attr("checked", true);
jQuery("#group-details").hide();
jQuery("#account-type-type_one,#account-type-type_two,#account-type-type_three").click(function(){
if (jQuery(this).is(":checked")) {
jQuery("#group-details").slideDown("slow");
} else {
jQuery("#group-details").slideUp("slow");
}
});
jQuery("#account-type-normal_user").click(function(){
if (jQuery(this).is(":checked")) {
jQuery("#group-details").slideUp("slow");
} else {
jQuery("#group-details").slideDown("slow");
}
});
});
</script>
<?php do_action( 'bp_account_type_errors' ) ?>
<label><input type="radio" name="account_type" id="account-type-normal_user" value="normal_user" checked="checked" /><?php _e( 'User', 'group-types' ) ?></label>
<label><input type="radio" name="account_type" id="account-type-type_one" value="type_one" /><?php _e( 'Type 1', 'group-types' ) ?></label>
<label><input type="radio" name="account_type" id="account-type-type_two" value="type_two" /><?php _e( 'Type 2', 'group-types' ) ?></label>
<label><input type="radio" name="account_type" id="account-type-type_three" value="type_three" /><?php _e( 'Type 3', 'group-types' ) ?></label>
<div id="group-details">
<p><?php _e( 'We will automatically create a group for your business or organization. This group will be tailored to your needs! You can change the description and the news later in the admin section of your group.', 'group-types' ); ?></p>
<?php do_action( 'bp_group_name_errors' ) ?>
<label for="group_name"><?php _e( 'Group Name', 'scuba' ) ?> <?php _e( '(required)', 'buddypress' ) ?></label>
<input type="text" name="group_name" id="group_name" value="" />
<br /><small><?php _e( 'We suggest you use the name of your business or organization', 'group-types' ) ?></small>
<label for="group_desc"><?php _e( 'Group Description', 'scuba' ) ?></label>
<textarea rows="5" cols="40" name="group_desc" id="group_desc"></textarea>
<br /><small><?php _e( 'This description will be visible on your group profile, so it could be used to present your mission statement for example.', 'group-types' ) ?></small>
<label for="group_news"><?php _e( 'Group News', 'scuba' ) ?></label>
<textarea rows="5" cols="40" name="group_news" id="group_news"></textarea>
<br /><small><?php _e( 'Enter any news that you want potential members to see.', 'group-types' ) ?></small>
</div>
</div>
<?php
}
add_action( 'bp_before_registration_submit_buttons', 'sv_add_registration_group_types' );Then we have to validate things and add some usermeta when a regitration happens:
/**
* Add custom userdata from register.php
* @since 1.0
*/
function sv_add_to_signup( $usermeta )
{
$usermeta['account_type'] = $_POST['account_type'];
if( isset( $_POST['group_name'] ) )
$usermeta['group_name'] = $_POST['group_name'];
if( isset( $_POST['group_desc'] ) )
$usermeta['group_desc'] = $_POST['group_desc'];
if( isset( $_POST['group_news'] ) )
$usermeta['group_news'] = $_POST['group_news'];
return $usermeta;
}
add_filter( 'bp_signup_usermeta', 'sv_add_to_signup' );
/**
* Update usermeta with custom registration data
* @since 1.0
*/
function sv_user_activate_fields( $user )
{
update_usermeta( $user['user_id'], 'account_type', $user['meta']['account_type'] );
if( isset( $user['meta']['group_name'] ) )
update_usermeta( $user['user_id'], 'group_name', $user['meta']['group_name'] );
if( isset( $user['meta']['group_desc'] ) )
update_usermeta( $user['user_id'], 'group_desc', $user['meta']['group_desc'] );
if( isset( $user['meta']['group_news'] ) )
update_usermeta( $user['user_id'], 'group_news', $user['meta']['group_news'] );
return $user;
}
add_filter( 'bp_core_activate_account', 'sv_user_activate_fields' );
/**
* Perform checks for custom registration data
* @since 1.0
*/
function sv_check_additional_signup()
{
global $bp;
if( empty( $_POST['account_type'] ) )
$bp->signup->errors['account_type'] = __( 'You need to choose your account type', 'group-types' );
if( empty( $_POST['group_name'] ) && $_POST['account_type'] != 'normal_user' )
$bp->signup->errors['group_name'] = __( 'You need to pick a group name', 'group-types' );
if( ! empty( $_POST['group_name'] ) && $_POST['account_type'] != 'normal_user' )
{
$slug = sanitize_title_with_dashes( $_POST['group_name'] );
$exist = groups_check_group_exists( $slug );
if( $exist )
$bp->signup->errors['group_name'] = __( 'This name is not available. If you feel this is a mistake, please <a href="/contact">contact us</a>.', 'group-types' );
}
}
add_action( 'bp_signup_validate', 'sv_check_additional_signup' );And then we set up the group for the user (there are some constants in this function, so you’ll need to change that):
/**
* Create custom groups for skools, biz and org accounts
* @since 1.0
*/
function sv_init_special_groups( $user )
{
global $bp;
// get account type
$type = get_usermeta( $user['user_id'], 'account_type' );
if( $type == 'normal_user' )
{
// Do nothing
}
elseif( $type == 'type_one' || $type == 'type_two' || $type == 'type_three' )
{
// get some more data from sign up
$group_name = get_usermeta( $user['user_id'], 'group_name' );
$group_desc = get_usermeta( $user['user_id'], 'group_desc' );
$group_news = get_usermeta( $user['user_id'], 'group_news' );
$slug = sanitize_title_with_dashes( $group_name );
// create dive skool group
$group_id = groups_create_group( array(
'creator_id' => $user['user_id'],
'name' => $group_name,
'slug' => $slug,
'description' => $group_desc,
'news' => $group_news,
'status' => 'public',
'enable_wire' => true,
'enable_forum' => true,
'date_created' => gmdate('Y-m-d H:i:s')
)
);
// add the type to our group
groups_update_groupmeta( $group_id, 'group_type', $type );
// delete now useless data
delete_usermeta( $user['user_id'], 'group_name' );
delete_usermeta( $user['user_id'], 'group_desc' );
delete_usermeta( $user['user_id'], 'group_news' );
// include PHPMailer
require_once( SV_MAILER . 'class.phpmailer.php' );
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Host = SV_SMTP;
$auth = get_userdata( $user['user_id'] );
$profile_link = $bp->root_domain . '/' . $bp->groups->slug . '/' . $slug . '/admin';
$message = sprintf( __( 'Hello %s,
we have created a group for your business or organization. To get more out of your presence on Yoursitenamehere please take some time to set it up properly.
Please follow this link to fill in the rest of your profile: %s
We wish you all the best. Should you have any questions regarding your new group, please contact us at support@yoursitenamehere.com.
Your Yoursitenamehere Team', 'group-types' ), $auth->display_name, $profile_link );
$mail->SetFrom("support@yoursitenamehere.com","Yoursitenamehere");
$mail->AddAddress( $auth->user_email );
$mail->Subject = __( 'Your new group pages on Yoursitenamehere', 'group-types' );
$mail->Body = $message;
$mail->WordWrap = 75;
$mail->Send();
}
}
add_action( 'bp_core_account_activated', 'sv_init_special_groups' );When you write a group extension we’ll have to swap the activation call with a function like the one below to be able to check for group types.
/**
* Replacement activation function for group extension classes
*/
function activate_type_one()
{
global $bp;
$type = groups_get_groupmeta( $bp->groups->current_group->id, 'group_type' );
if( $type == 'type_one' )
{
$extension = new Group_Type_One;
add_action( "wp", array( &$extension, "_register" ), 2 );
}
}
add_action( 'plugins_loaded', 'activate_type_one' );The last thing we need to do is add our group type names to group and directory pages:
/**
* Modify the group type status
*/
function sv_get_group_type( $type, $group = false )
{
global $groups_template;
if( ! $group )
$group =& $groups_template->group;
$gtype = groups_get_groupmeta( $group->id, 'group_type' );
if( $gtype == 'type_one' )
$name = __( 'Type 1', 'group-types' );
elseif( $gtype == 'type_two' )
$name = __( 'Type 2', 'group-types' );
elseif( $gtype == 'type_three' )
$name = __( 'Type 3', 'group-types' );
else
$name = __( 'User Group', 'group-types' );
if( 'public' == $group->status )
{
$type = sprintf( __( "%s (public)", "group-types" ), $name );
}
elseif( 'hidden' == $group->status )
{
$type = sprintf( __( "%s (hidden)", "group-types" ), $name );
}
elseif( 'private' == $group->status )
{
$type = sprintf( __( "%s (private)", "group-types" ), $name );
}
else
{
$type = ucwords( $group->status ) . ' ' . __( 'Group', 'buddypress' );
}
return $type;
}
add_filter( 'bp_get_group_type', 'sv_get_group_type' );
/**
* Modify the group type status on directory pages
*/
function sv_get_the_site_group_type()
{
global $site_groups_template;
return sv_get_group_type( '', $site_groups_template->group );
}
add_filter( 'bp_get_the_site_group_type', 'sv_get_the_site_group_type' );It’s quite a bit of code, but it should get you started. This hasn’t been tested with 1.2 btw.
December 26, 2009 at 4:05 am #59504In reply to: generation of new user activation email
5647428
InactiveActually a fresh install , no plugins installed …
December 23, 2009 at 8:31 pm #59445In reply to: generation of new user activation email
zeitweise
ParticipantSame problem here. No notifications are being sent, no new users are being listed in the backend. In the database table “wp_signups” I can see the registrations, in wp_users I can not.
The only plugin installed is bp-events at the moment.
(BP 1.1.3, WordPress mu 2.8.6)
December 23, 2009 at 7:56 pm #59442In reply to: generation of new user activation email
Tore
ParticipantAny plugins?
December 14, 2009 at 3:55 am #58664In reply to: Activation email missing data
Mike Pratt
Participant@Jeff – that involves either a core hack or writing a plugin to extract the action just to solve the problem of improperly set & passed variables
December 12, 2009 at 4:46 pm #58543In reply to: Activation email missing data
Jeff Sayre
ParticipantSince this is a cosmetic issue, as you indicate above, why not simply change the subject message. It may also help make registration emails from your site look even less suspicious than they do when they contain a link.
So, hardcode the subject message to say something like this:
Your New Bugle Notes Account is Ready to be ActivatedDecember 12, 2009 at 4:04 pm #58541In reply to: Activation email missing data
Mike Pratt
Participant@djpaul sorry I left some things off. wpmu 2.8.5, directory install, no custom functions that go anywhere near register.php (a few widgets that’s all), screenshot provided, no register redirects, bbPress 1.0 (no relevant), no server error logs, host is Liquidweb.
December 11, 2009 at 6:20 pm #58499In reply to: Activation email missing data
Paul Wong-Gibbs
KeymasterDecember 11, 2009 at 3:56 pm #58485In reply to: Activation email missing data
Mike Pratt
ParticipantNo. The problem I describe takes place right in the middle of register.php. Additionally, I have not made a single change to those files. it’s just not populating a couple of the fields (mentioned above)
December 11, 2009 at 2:18 pm #58478In reply to: Activation email missing data
Xevo
ParticipantA you redirecting to the buddypress pages? You shouldn’t use the standard wpmu register and activation. I remember Andy saying that he fixed this, but I guess it isn’t working like it should yet.
Try this.
December 11, 2009 at 2:09 pm #58476In reply to: Activation email missing data
Mike Pratt
ParticipantI have never experienced an invalid key, so for me it’s just a cosmetic thing (and a small usability thing as the activation email looks garbled and therefore suspicious)
December 10, 2009 at 10:33 pm #58442In reply to: BP Achievements on an already running community
D Cartwright
ParticipantI think I ended up commenting out the email notification before first activation on a live site. I then added it back. If I remember correctly you also have your activity stream somewhat spammed so that might be another thing to look at
December 9, 2009 at 9:32 pm #58373In reply to: Activation email missing data
mattredman
MemberI’m having the same problem. Sometimes the activation key is also not valid.
December 8, 2009 at 7:45 pm #58272In reply to: New BuddyPress 1.2 default theme
Jean-Pierre Michaud
Participantright now, i just registered, had an activation email,
(btw, the email title is: [BuddyPress Testdrive] Activate http:// )
activated, but then my password is not working… requested new password to access.
in the wp-admin, the recent Comments block, each comment url point to the wp-admin/index.php file… no real usage… rofl
the adminbar in the wp-admin is hovering the original from wpmu… and i’m dyslexic… rofl
November 23, 2009 at 12:28 pm #57266In reply to: Problem with activation
Paul Wong-Gibbs
KeymasterYou are using outdated versions of both WPMU and BuddyPress. I urge you to upgrade.
There was a bug in some previous version of BuddyPress to do with the wrong link being put on to the activation emails, but without knowing exactly why people can’t activate their accounts (i.e. do they get the emails? Does the link work? What happens?) it is tough to provide specific advice.
November 16, 2009 at 5:30 pm #56798In reply to: Activation emails not arriving
Jeff Sayre
ParticipantYes, that is the next step I’d suggest.
November 16, 2009 at 5:22 pm #56797In reply to: Activation emails not arriving
Squashroby
Participant@Jeff Sayre
I’ve a new install hosted on H-Sphere. The site isn’t live yet but I have tried to install buddypress links but the problem persists after deactivating this. You’ve got me thinking though as I read something on a post about WPMU plugins with ‘-‘ in the name causing issues, maybe the .htaccess was modified. Can I copy and rename htaccess.dist?
Cheers
November 16, 2009 at 4:14 pm #56793In reply to: Activation emails not arriving
Jeff Sayre
ParticipantIs this a localhost development install or a remote, hosted install? If hosted, is it a live site that used to work but is now experiencing this issue?
Have you modified the standard .htaccess file that WPMU automatically creates on new installs? This could be done manually or via some plugin that you’ve recently installed and activated.
November 16, 2009 at 2:35 pm #56783In reply to: New Plugin – BuddyPress Links – Beta Support
Squashroby
ParticipantUnable to receive activation or lost password emails.
Although WPMU now tells me everything is installed and working I’m not able to register using the buddypress frontend. I found a reference in a forum suggesting that any plugins with ‘-‘ in their name can cause the error I’m seeing.
From my log:
Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary.
I’m still getting this after deactivating buddypress-links though so may be more of a buddypress general support quesiton. Any ideas?
October 29, 2009 at 12:34 am #55380In reply to: Remove email confirmation
Brajesh Singh
Participantyou are most welcome

Well,just go to your current theme and edit registration/register.php,remove the line saying “You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address”.
you will see it somewhere written under
‘<?php if ( ‘completed-confirmation’ == bp_get_current_signup_step() ) : ?>’
Remove that.
Better I just suggest to remove the avatar uploading step,as the account gets already activated and the uploaded avatar(the second screen of registration)(which earlier were used at the time of activation will not work)
so,If you are using un modified default theme,you can remove the code from line 215(where the if starts) to 276,where the if ends safely.
Please note,The avatar uploading step at registration will not work,so just remove that step.that’s it.
Thanks
Brajesh
October 22, 2009 at 4:48 pm #55007In reply to: Welcome Pack Email Problem
D’Arcy Norman
ParticipantI’m seeing this, too. I just tried a fresh install of WPMU (2.8.4a) and tested Dashboard > Users > Add User (worked fine, email arrived intact).
After installing and enabling BuddyPress 1.1.1, doing the same thing to Add User results in a borked email:
Hi,
You've been invited to join 'WPMU Test Blogs' at
http://myserver.ca/wpmu as a subscriber.
If you do not want to join this blog please ignore
this email. This invitation will expire in a few days.
Please click the folowing link to activate your user account:
%sThe last %s isn’t being substituted by the activation link.
October 22, 2009 at 4:33 pm #55005In reply to: "Auto Group Join" plugin added
westpointer
ParticipantHey Guys – the hook that used to work at activation was no longer doing the job. I have a new file available. Please send me a message with your email addy and I’ll send it for testing.
Thanks!
October 15, 2009 at 10:23 pm #54611In reply to: How to turn Confirm Email Off?
Paul Wong-Gibbs
KeymasterPrevious to BP 1.1, all user registration was dealt with by WordPress, so it’s technically correct to point people towards existing WordPress/MU resources and forums for help.
Since BP 1.1, however, BP changes the new account confirmation/activation email – because on the standard BP 1.1 signup page, the user can pick their own password. And of course, it’s a security issue if we were to somehow send their (encrypted) password back to them. So BP 1.1 overrides the standard WordPress MU email so it doesn’t include the password text.
But, the activation link is part of WordPress. Yes, the BuddyPress default theme uses this behaviour too – but it calls the WordPress code.
-
AuthorSearch Results