Page 1 of 1

Level 1 as a free trial level

PostPosted: June 25th, 2011, 9:23 am
by DigitalMcGrath
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!

Re: Level 1 as a free trial level

PostPosted: June 25th, 2011, 10:25 am
by DigitalMcGrath
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?

Re: Level 1 as a free trial level

PostPosted: June 25th, 2011, 2:29 pm
by Cristián Lávaque
I sent Jason an email asking him about this.