Membership Options Page Variables
Posted: April 8th, 2011, 8:56 am
Hi,
On my website I would like it if a user is NOT logged in and they try to access the Membership area of my site they would get a notice saying "To access the membership area ; Please logon or requester for a free account" but, here is where I am getting lost - I can setit up so the messages will show to a NOT logged in user but, when i want the message to only show based on the PAGE name or its ID i can not get any messages on the page to show. Here is the PHP that i am trying to play with.
If I use
Then the "test message" is show to every one who can access level 0 and who also do not have the ccap of test. But, how do i get it so the message is show based on the page that is trying to be accessed.
thank you for any help
On my website I would like it if a user is NOT logged in and they try to access the Membership area of my site they would get a notice saying "To access the membership area ; Please logon or requester for a free account" but, here is where I am getting lost - I can setit up so the messages will show to a NOT logged in user but, when i want the message to only show based on the PAGE name or its ID i can not get any messages on the page to show. Here is the PHP that i am trying to play with.
- Code: Select all
<?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>';
If I use
- Code: Select all
<?php } else if(current_user_can("access_s2member_level0") && $_GET["s2member_ccap_req"] === "test"){ ?>
test message
Then the "test message" is show to every one who can access level 0 and who also do not have the ccap of test. But, how do i get it so the message is show based on the page that is trying to be accessed.
thank you for any help