Great question. s2Member redirects all non-Members, who attempt to access a protected area of your site, to a special Page that you configure. This is called your Membership Options Page. You can configure this inside your WP Dashboard, under:
s2Member -> General Options -> Login Welcome PageSo what you'll do is customize that Page, to give information about joining your site. Most visitors will get the picture. However, if you need to get more creative with it; you can use the variables that s2Member passes to your Membership Options Page.
Whenever s2Member redirects a non-Member to your Membership Options Page, it will also pass a query string variable to your Membership Options Page, indicating which Membership Access Level is required to view the content they're trying to access; based on your s2Member configuration.
The variable is:
?
s2member_level_req = 0, 1, 2, 3, 4 ( where 0 = Free Subscriber )
So, inside your Membership Options Page, you could do something like this, using a PHP code snippet:
- Code: Select all
<?php if($_GET["s2member_level_req"]){ ?>
"Seeing this page over and over? You need to be a member to see the rest" or something like that?
<?php } ?>
In order to use PHP code snippets inside a Post/Page, you will need this plugin:
http://wordpress.org/extend/plugins/exec-php/