- Posts: 18
- Thank you received: 1
Hiding info based on membership
- Roell
- Topic Author
- Offline
- New Member
-
Less
More
4 years 9 months ago - 4 years 9 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
)
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?
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

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: 4 years 9 months ago by Roell. Reason: more info
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
4 years 9 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
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.
- Roell
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 1
4 years 8 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.
- Tuan Pham Ngoc
- Offline
- Administrator
-
4 years 8 months ago #140098
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Hiding info based on membership
Great. Thanks for confirming
Tuan
Tuan
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.