<form method=”post” action=”<?php echo ‘http://’ . $current_site->domain . $current_site->path ?>wp-activate.php”>
doesn’t work.. have you called the global $current_site first?
J, thanks for the suggestion, but unfortunately that just takes you back to the registration page.
I’m thinking along the lines of using the predefined ‘user_name’ which identifies the user, then the activation key is ‘activation_key’ in the MySQL DB. I need to use the ‘user_name’ to call the equivalent activation key and I think ‘&_GET’ to the activation page by having the activation key placed into a url.
Anyone have any idea how to do this or have any suggestions?
Cheers all
Can any one tell me what function I might place into the ‘action’ field for the form that finds the key and takes you to the activation page?
<form method=”post” action=”<?php echo ‘http://’ . $current_site->domain . $current_site->path ?>wp-activate.php”>
<input type=”submit” name=”activation” value=”Activate now” />
</form>
This is completely wrong I know as it takes me to http://wp-activate.php!
Thanks again
I have reCAPTCHA installed and TOS with tick box, I also have the password plugin installed which seems to be working nicely so that the user can create their own password.
Thanks for confirming, I shall give this a go and see what happens!
Cheers J
Well, if I understand correctly it certainly seems possible, considering its pretty much the way that WordPress installation goes.
You install WordPress and are provided a login (“admin”) and a randomized password.
If you’re looking for code to try to tap into, or an example of how to go about it, that would be where I would look first?
The next step in your theory would be to consider how to handle spam registrations in the event that user never sees the pw and never logs in to your website. Maybe take a look at the Register Plus plugin for WordPress.org to get some ideas also?
Hi
Not tried it yet, but wanted to get an opinion and see if anyone else has tried it, but I want to skip the activation email and have the user get their username and password on screen after signing up.
So heres my theory:
Change the page that currently contains the ‘check your email’ page to include an ‘activate account now’ button (Not sure how going to tackle the sending of the email yet).
Once pressed this activates a script that retrieves the key from the DB and puts it into the correct URL which then takes the user to the page that shows them their login details.
Any thoughts?
Thanks very much
DW
After upgrade to RC1, and try to sign up as a test user, the signup process went well, and then test user got the username and password to show up at the confirmation link when you clicked on the confirmation email’s link. Here is when thing went wrong. When a test user clicked on the login link on the confirmation link that showed the user’s password and username, after login, the user got redirect to a page that had url like this yourwebsite.domain/buddypress/yourwebsitename.domain/. Shouldn’t user get redirect to yourwebsite.domain/wp-admin/? Because the page it’s redirecting to only show an empty default blog page with no content or what-so-ever.
I looked into bp-core-activation.php and saw this http://pastie.org/398570 . Should the code be like $current_site->wp-admin/?
@ Burt,
Not trying to derail this thread, but didn’t know how else to get your attention. I signed up for your site and haven’t received an activation email. Just wanted to give you a heads up in case something was awry…
hi Arturo: activity feed ok, registration and activation email ok, widget ok.
i’m using an old italian translation, maybe i will update the localization soon.
The only thing you can’t change safely is some of the subject lines of the emails. If that’s not 100% essential to the launch of your site, I would suggest waiting for the next release of WPMU – or just running a copy from trunk.
However if you follow the link above you should be able to find out what file you need to change.
I saw on my last post about the error I was getting on the signup process with the PHP script I was running on the header. You said use the trunk version and I would be good. I did as you said and the error during the actual signup is gone, but the “Full Name” field is still missing on the signup page, and once you get the activation email and click the activation link….you get THIS error:
An error occurred during the activation
Invalid activation key.
Here is the link to the original (closed) topic: http://buddypress.org/forums/topic.php?id=1140
Thank you DJPaul;
Then at this point what steps should we take to change the message? I assume we don’t need a plugin, but just changing the text somewhere in MU files, right? But where?
I would appreciate your response.
Thanks so much;
vida
FYI https://trac.mu.wordpress.org/ticket/894#comment:3 has added a hook so we can customise the subject line of the email sent to new users (accounts) after activation.
KevinRyman: please email me. I’m only asking because I haven’t got anywhere ready to upload a file yet. Thanks.
DJPaul sign me up for testing too!
I couldn’t find any existing plugin…obviously;)
DJPaul, is it cool if I test your plugin?
DJPaul, I just saw your comments about this on mu trac. Nice find!
Vida
Email me at djpaul at gmail dot com. I’ve spent sometime shoehorning this into a “proper” plugin – it’s not complete but would appreciate it if you could test with what I’ve got so far.
Hi DJPaul:
So, I created the little plugin and placed it in wp-content/mu-plugin folder.
I then went back to the “welcome” box to make the changes to the outgoing text. No changes were made. Sorry for being slow here. But these are the questions I have right now!
1) I have no idea what to do with this step you mentioned above:
“Sorry, forgot to add. Use these tokens in your update_welcome_user_email function to tell WordPress where to insert the relevant values: USERNAME PASSWORD LOGINLINK SITE_NAME”
2) After I create the file and place it in the Mu plugin, where should I go to customize my final message going to the user.
I really appreciate the help.
Thanks so much;
Vida
life2000: Make a new file in your wp-content/mu-plugins/ folder. Call it what you want but make the extension .php.
Put this tag at the top of the file: <?php
Copy and paste the code from above underneath it
And at the bottom of the file, put this: ?>
Save it and it should work immediately. Make a new test user to see if the message changes.
There has to be an MU plugin already put together for this somewhere no? I am looking now…
Hi DJPaul:
Thank you for your reply.
How do I get to “update_welcome_user_email” at the outset? Or better said, where do I begin to start these changes and filters. BP Core files? WPMU files?
Sorry, still trying to get the hang of it all:)
Thanks so much;
vida
Sorry, forgot to add. Use these tokens in your update_welcome_user_email function to tell WordPress where to insert the relevant values: USERNAME PASSWORD LOGINLINK SITE_NAME
Hi life2000
You need to write a filter to hook into the update_welcome_user_email action, like so:
add_filter('update_welcome_user_email', 'filter_newuseremail_dm', 1, 4);
function filter_newuseremail_dm($welcome_email, $user_id, $password, $meta) {
return "body text of your email";
}
If you want to send an email formatted with HTML, you also need to do this:
add_filter('wp_mail_content_type', 'newuseremail_content_type_dm', 1);
function newuseremail_content_type_dm() {
return 'text/html';
}