Statistics: Posted by cdavignon — April 16th, 2011, 12:45 pm
cdavignon wrote:
Yes, the level 1 , 2 , and up to 4 shows up in the URL if the user is not logged in. then no matter which sub-directory I use access-s2member-level1 , access-s2member-level2 , and so on the level in the URL is 0.
Statistics: Posted by Jason Caldwell — April 15th, 2011, 6:23 pm
Statistics: Posted by cdavignon — April 13th, 2011, 7:43 pm
.../membership-options-page/?s2member_seeking=file-example.zip&s2member_level_req=1
Statistics: Posted by Cristián Lávaque — April 13th, 2011, 4:25 pm
Statistics: Posted by cdavignon — April 13th, 2011, 7:33 am
Statistics: Posted by Cristián Lávaque — April 12th, 2011, 11:28 pm
Statistics: Posted by Jason Caldwell — April 12th, 2011, 9:41 pm
<?php
list($seeking, $file) = preg_split("/-/", $_GET["s2member_seeking"], 2);
if($seeking === "file" && $file === "example.zip"){ ?>
The file you were trying to download ( <?php echo $file; ?> ) requires access @ Level #<?php echo $_GET["s2member_level_req"]; ?>. Upgrade your account now for access.
<?php } ?>
Statistics: Posted by Jason Caldwell — April 12th, 2011, 9:38 pm
.../membership-options-page/?s2member_seeking=file-example.zip&s2member_level_req=1
Statistics: Posted by Cristián Lávaque — April 12th, 2011, 7:20 pm
<?php } else if (current_user_cannot('access_s2member_level1') && $_GET['s2member_seeking'] === 'file-access&s2member_level_req=1') { ?>
The file you where trying to download ( <?php echo $file_name; ?> ) requires access @ Level #<?php echo $level_req; ?> Upgrade your account now for access.
<?php } ?>
Statistics: Posted by cdavignon — April 12th, 2011, 2:35 am
cdavignon wrote:
What I would like to do is show a message to a user who is trying to download a file that they need to upgraed say to level 1 in order to download (name of file.) Or if they are not logged in they would need to buy a level one membership.
cdavignon wrote:
Next I would like to redirect any user who is asked to logon or upgrade back to the post / page that they where trying to access after they logon or pay for access.
Statistics: Posted by Cristián Lávaque — April 11th, 2011, 10:37 pm
Statistics: Posted by cdavignon — April 9th, 2011, 9:03 pm
Statistics: Posted by Cristián Lávaque — April 8th, 2011, 6:04 pm
Statistics: Posted by cdavignon — April 8th, 2011, 5:00 pm
<?php } else if (current_user_cannot('access_s2member_level0') && $_GET['s2member_seeking'] === 'post-986') { ?>
<p>Please become a free member to access the Member’s Area.</p>
<?php } ?>
Statistics: Posted by Cristián Lávaque — April 8th, 2011, 1:56 pm
<?php } else if(current_user_cannot("access_s2member_level0") && 's2member_seeking` = [post]-[986]{ ?>
<p>Please become a free member to access the Member’s Area.</p>';
<?php } else if(current_user_can("access_s2member_level0") && $_GET["s2member_ccap_req"] === "test"){ ?>
test message
Statistics: Posted by cdavignon — April 8th, 2011, 8:56 am