Hiding info based on membership

More
3 years 4 months ago - 3 years 4 months ago #139591 by Roell
Hiding info based on membership was created by Roell
is there also a possibility to hide info based on the membership. Example; I would like to show google adds if visitors are not yet a member but if they are they will not see the adds anymore.

Documentation says:

Use this syntax {mprestriction ids="!1"}The text you want to hide must be inserted between here{/mprestriction} to restrict access to the article to subscribers of the plan you want. Below is the explanation of the syntax:
ids="!1" mean users will see the text if he has not subscribed for the plan with ID = 1.
ids="!1,2,3" mean users will see the text if has has not subscribed for any of these plans (ID = 1 or = 2 or =3)
ids="!*" mean users will see the text if they has not subscribed for any plans in your system

However I would like to hide the info of one is member of a specific plan. Otherwise the above option makes no sense.

What should I do to hide info for members of a specific plan?
Last edit: 3 years 4 months ago by Roell. Reason: more info

Please Log in or Create an account to join the conversation.

More
3 years 4 months ago #139597 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Hiding info based on membership
Hello Roell

You can use the syntax below:

{mprestriction ids="!1"}Your google adds code goes here{/mprestriction}

With that syntax:

- If user subscribed for the plan with id = 1, he won't see the google adds
- If user has not subscribed for the plan with id = 1, he will see that google ads

Please try to setup and let me know if you have any other questions

Tuan
The following user(s) said Thank You: StreetSportService

Please Log in or Create an account to join the conversation.

More
3 years 3 months ago #140075 by Roell
Replied by Roell on topic Hiding info based on membership
It works, thanks!

Please Log in or Create an account to join the conversation.

More
3 years 3 months ago #140098 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Hiding info based on membership
Great. Thanks for confirming

Tuan

Please Log in or Create an account to join the conversation.