MOP Variable Help
Posted: April 5th, 2011, 4:37 pm
Hi
First off, big thanks for all the work you've put into developing and support s2 member. Much appreciated.
I'm trying to do something pretty straightforward... I'd like to add a conditional statement to my Member Options page that basically says, if the user has arrived at the Member options page because they are not logged in, echo "you've come to this page because you are not logged in or need to become a member" followed by the rest of the page's content.
Another way to say that is, if the page has been denied, tell the user why, then give them the member options page beneath that explanation.
At this point, I only have one level of membership - paid. I don't have any level 0s, just level 1s.
I tried using
Do I need to declare a variable first? I'm doing all of this in my template by the way, not using shortcodes or in the HTML editor using php-exec.
You help is appreciated.
Thanks.
First off, big thanks for all the work you've put into developing and support s2 member. Much appreciated.
I'm trying to do something pretty straightforward... I'd like to add a conditional statement to my Member Options page that basically says, if the user has arrived at the Member options page because they are not logged in, echo "you've come to this page because you are not logged in or need to become a member" followed by the rest of the page's content.
Another way to say that is, if the page has been denied, tell the user why, then give them the member options page beneath that explanation.
At this point, I only have one level of membership - paid. I don't have any level 0s, just level 1s.
I tried using
- Code: Select all
<?php if($_GET["s2member_level_req"]){ ?><p>The page you were trying to view is protected. Please become a member.</p><?php } ?>
Do I need to declare a variable first? I'm doing all of this in my template by the way, not using shortcodes or in the HTML editor using php-exec.
You help is appreciated.
Thanks.