PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

level 1 access via email activation link

s2Member Plugin. A Membership plugin for WordPress®.

Re: level 1 access via email activation link

Postby Bruce C » September 21st, 2011, 8:24 pm

I edited the post I did above with the link to allow HTML.
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: level 1 access via email activation link

Postby antseo » September 21st, 2011, 11:59 pm

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)?
User avatar
antseo
Experienced User
Experienced User
 
Posts: 127
Joined: September 2, 2011

Previous

Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 1 guest

cron