MemberMouse's default content protection scheme is to hard-block pages that are protected. This means that if a non-member tries to view a protected page, they'll be redirected to an error page. [MM_Access_Decision] smarttags provide you with an opportunity to expose portions of protected content based on the visitor's access rights. Within a single page, you could have teaser content for non-members and protected content for paying members. By using the [MM_Access_Decision] tag with different access types you can custom tailor each visitor's experience on the page or post.


IMPORTANT NOTE: As soon as you use [MM_Access_Decision] smarttag on a page/post, you're instructing MemberMouse to bypass the standard hard-block protection mechanism. This means that as soon as you use one of these tags, any content outside of a [MM_Access_Decision access=''] tag, will be visible to anyone who accesses the page/post.


For example, when you use the [MM_Access_Decision access='false'] tag on a page, you're instructing MemberMouse to allow everyone to access that page and that you'll control what they can see by placing content within the appropriate [MM_Access_Decision] tag. Placing content outside of the [MM_Access_Decision access=''] tag gives you an opportunity to insert content that everyone should see while only entering it once, but just be aware that it will not be protected and everyone can see it.


Access Types and Attributes


ValueDescription
trueIf the current member has access to the page/post then the contents of this tag will be displayed
falseIf the current member/non-member does not have access to the page/post then the contents of this tag will be displayed.
futureIf the current member does not current have access to the page/post but will in the future then the contents of this tag will be displayed


Usage


Teaser Content for Both Members and Non-Members

[MM_Access_Decision access='false']

Teaser Content Here.
For more, click here to purchase access: <a href="[MM_Purchase_Link productId='1']">Get Access</a>

[/MM_Access_Decision]


In this example, we're creating an access decision for the current post/page. By setting access to false we're indicating that this content should be seen by a visitor, or member if they currently do not have access to the current post/page. For example, if they do not currently have access they'll see the text:

Teaser Content Here. For more, click here to purchase access: Get Access


Teaser Content for Members Only 

[MM_Access_Decision access='future']

You don't have access to [MM_Content_Data id='22' name='title'] yet. You will get access on [MM_Content_Data id='22' name='dateAvailable'].

[/MM_Access_Decision]


In this example, we're creating an access decision for the post/page with ID 22. By setting access to future we're indicating that this content should only be seen by a member if they will have access to the post/page with ID 22 sometime in the future. For example, if they don't currently have access but will sometime in the future, they'll see the text:

You don't have access to My Protected Page yet. You will get access on March 20, 2020.