Page 1 of 1

Cannot Create a Free Membership Option

PostPosted: May 10th, 2010, 11:34 am
by warzan
I have s2member installed

I would like s2member level 1 to be the default subscription level.

When i go into wordpress settings it will not allow me to change the default "New User Default Role" and gives me the following message:

* Note: The s2Member plugin has control over two options on this page. Anyone Can Register = 1, and Default Role = subscriber.

How can i set the default for "New User Default Role" to be s2member level 1.

Thanks

Warren

Re: Cannot Create a Free Membership Option

PostPosted: May 12th, 2010, 3:23 am
by warzan
Hi Guys

Anyone have any ideas on this?

Cheers

Warren

Re: Cannot Create a Free Membership Option

PostPosted: May 12th, 2010, 5:46 pm
by s2fan
Hi warren,
Take a look at the general options under s2member where it says 'Login Welcome Page'. Here is what it says there:
"
Allow Free Subscribers Access To This Page?

If you set this to Yes, it means that you're giving Free Subscribers the ability to access this special Page that is normally intended only for Members. If you set this to Yes, you're also turning on the `Anyone Can Register` option that is built into WordPress®. So what this means, is that you're allowing people to signup for free, as a Free Subscriber, who will then have access to the Login Welcome Page, even though they're NOT a paid Member. This is only useful if you plan to let Users signup for free ( http://YOURURL/wp-login.php?action=register ). See s2Member -> API Scripting -> Advanced Conditionals, for details on how to customize your Login Welcome Page with Conditionals; based on Membership Level.
"

To me, it sounds like you need to work with the conditionals. I don't know if this would work, but you might also try setting the price for option 1 to $0.00.

Re: Cannot Create a Free Membership Option

PostPosted: May 13th, 2010, 12:14 am
by Jason Caldwell
s2Member forces the Default Role to "Free Subscriber". So if you're planning to allow "Anyone To Register", you'll want to configure: s2Member -> Login Welcome Page -> Allow Free Subscribers. Set that to "yes".

Then you can allow Users to register on your site for free. They come in as Free Subscribers. The s2Member Levels are reserved for paid Membership access. That being said, if you would like to extend additional capabilities to Free Subscribers, you'll need to design your Login Welcome Page with Advanced Conditionals. See: s2Member -> API Scripting -> Advanced Conditionals.

In rare cases, when you "really" need to have the Default Role set to something other than Free Subscriber, you can add this to the functions.php file in your theme for WordPress.

Code: Select all
add_filter("s2member_force_default_role", "force_s2member_level1");
function force_s2member_level1($role)
{ return "s2member_level1"; }

That will force that Default Role to "s2Member Level 1", instead of Free Subscriber.

Re: Cannot Create a Free Membership Option

PostPosted: May 13th, 2010, 5:31 am
by warzan
Thank you i had almost given up on this! :D

Re: Cannot Create a Free Membership Option

PostPosted: May 26th, 2010, 2:49 pm
by weblev
I am trying to figure out how to allow free subscribers to be allowed access to certain pages that non subscribed are not allowed access to. I believe I need use scripting as explained in the advanced conditions section. I need to know where and how to acutually place this code. Can someone help me with this? Thanks, RJ

Re: Cannot Create a Free Membership Option

PostPosted: June 3rd, 2010, 9:22 am
by warzan
Hi Jason

The above code no longer works mate.

It was working fine (im not sure which upgrade has upset it)

Has this code been depricated, or could another plugin be interfereing with it?

Cheers

Warren

Re: Cannot Create a Free Membership Option

PostPosted: June 3rd, 2010, 9:44 am
by warzan
I should RTFM :o)

IMPORTANT: ( Attention Developers ) All of s2Member's internal Hooks/Filters have been prefixed with ws_plugin__ starting with v3.0.4. Given the number of Hooks/Filters spread throughout the s2Member framework ( now over 200 ); it was important to establish a standard for prefixing all Hooks/Filters. This will prevent future namespace clashes. If you've hooked into s2Member using your own custom programming routines, please update all of your Hooks/Filters by prefixing them with ws_plugin__.

Thanks mate sorry for the post but the answers here if anyone else is struggeling

Re: Cannot Create a Free Membership Option

PostPosted: June 23rd, 2010, 7:06 pm
by Jason Caldwell
Hey guys. Please note, s2Member v3.0.6+ now provides configuration options for Level#0, making it much easier to configure access for Free Subscribers. ~Thanks for all of your input and contributions.