Page 2 of 2

Re: level 1 access via email activation link

PostPosted: September 21st, 2011, 8:24 pm
by Bruce C
I edited the post I did above with the link to allow HTML.

Re: level 1 access via email activation link

PostPosted: September 21st, 2011, 11:59 pm
by antseo
Hi Ace. I got the html to appears in the email which is great. However, when I hover over the link, the path is wrong. It points to nowhere, meaning it's empty.

Also, is it possible to still use Cristian's hack to automatically log the user in when they click on that link you created, then navigating to a page to activate them using your code. The code for the hack I was using was in this file (s2hacks.php in mu_plugins):

<?php
add_action('ws_plugin__s2member_during_configure_user_registration_front_side', 's2_auto_login_after_registration');
function s2_auto_login_after_registration($vars = array()) {
wp_set_auth_cookie($vars['user_id'], false, is_ssl());
wp_redirect('http://www.domain.com/welcome' . '?first');
exit;
}
?>

OR, is there a trigger in s2member for logging in the first time (only)?