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 as a free trial level

s2Member Plugin. A Membership plugin for WordPress®.

Level 1 as a free trial level

Postby DigitalMcGrath » June 25th, 2011, 9:23 am

I am trying to make level 1 a 3 day free trial using:

Code: Select all
add_action("init", "register_level");
function register_level(){
    if(isset($_GET["register_level"])){
        $link = c_ws_plugin__s2member_register_access::register_link_gen ("none", "-", $_SERVER["HTTP_HOST"], "1:2D", false);
        wp_redirect($link); exit();
    }
}   


When a user registers at /?register_level=1 they are setup as a free subscriber and not level 1. Can someone tell me what I am doing wrong with this code?

Thanks!
User avatar
DigitalMcGrath
Registered User
Registered User
 
Posts: 5
Joined: June 24, 2011

Re: Level 1 as a free trial level

Postby DigitalMcGrath » June 25th, 2011, 10:25 am

After some further testing, it looks like this works once and as long as the user is in the database any other user registering at this link will not be registered at level 1, but actually level 0.

Is there a way around this?
User avatar
DigitalMcGrath
Registered User
Registered User
 
Posts: 5
Joined: June 24, 2011

Re: Level 1 as a free trial level

Postby Cristián Lávaque » June 25th, 2011, 2:29 pm

I sent Jason an email asking him about this.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron