Strange behaviour - Contents/Url/SP Pagebuilder Restrictions

  • Timmy Ambali
  • Topic Author
  • Offline
  • New Member
  • New Member
More
1 day 14 hours ago #173254 by Timmy Ambali
Hi Admin!
So I found this weird behaviour of the Membership Pro contents/Url/SP Pagebuilder and Article restriction settings very confusing and weird.

Firstly, I have 3 subscription plans, and I want to ensure that ONLY the subscribers to any of these 3 plans can access certain information on my website.

So I tried to create a new tab using the "My Profile" menu component, and then used the plug-in code {mprestriction ids="*"}{loadmoduleid 125}{/mprestriction}, which is expected to display a module if and only if the user has subscribed to any of the 3 plans, or I also used  {mprestriction ids="1,2,3"}{loadmoduleid 125}{/mprestriction}. However, it doesn't work the way I expected; rather, it denies the user who has any of the 3 subscription plans access to the contents. Same thing for the Article, Url and the SP Pagebuilder restriction setting. Except I'm doing something wrong, but here are my screenshot attachments.
I've set up the plugin, I also set up the tab contents with the content restriction syntax (I ONLY want an ACTIVE SUBSCRIBER to any plan to be able to see the hidden content(s)) but instead, the ACTIVE subscriber is the one that can't access the content. The only way the content shows is by {mprestriction ids="!1,!2,!3"}{loadmoduleid 125}{/mprestriction} or {mprestriction ids="*!"}{loadmoduleid 125}{/mprestriction}.
I expected that the restriction plugins would    rather DENY INACTIVE SUBSCRIBERS and ALLOW ACTIVE SUBSCRIBERS.
Attachments:

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

More
1 day 14 hours ago #173256 by Tuan Pham Ngoc
Instead of using the restriction syntax, I think you can use a better solution:

- Assign subscribers of the plans to user group you want use Joomla groups integration. See docs.joomdonation.com/membershippro/joomla-groups-integration

- Create a new access level, choose the user groups above for the access level

- Set access of the module to that new access level

- Load the module using load module syntax in the tab

That should be easier to setup

Regards,

Tuan

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

More
1 day 14 hours ago #173257 by Tuan Pham Ngoc
Basically, you can use Joomla ACL method to restrict access to the module docs.joomdonation.com/membershippro/reso...ction/use-joomla-acl , then load the module normally in the tab in user profile

Regards,

Tuan

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

  • Timmy Ambali
  • Topic Author
  • Offline
  • New Member
  • New Member
More
1 day 5 hours ago #173270 by Timmy Ambali
Thank you so much Tuan!

But if I make use of the Joomla ACL as you recommended, will the Subscribers who are yet to make payments (offline payments) be able to access the module even though they are already a registered user? My goal is simply to make the module appear ONLY to ACTIVE/PAID Subscribers not just to Registered Subscribers whose payment is yet to be confirmed.

Thank you once again, I appreciate your kind support/feedback

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

More
1 day 4 hours ago #173271 by Tuan Pham Ngoc
Only paid subscribers will be assigned to user groups, so offline payment subscribers will only be assigned to user groups (thus be able to access to the module) after they completed payment and admin change status of subscription record to Paid

Regards,

Tuan

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

  • Timmy Ambali
  • Topic Author
  • Offline
  • New Member
  • New Member
More
1 day 3 hours ago #173272 by Timmy Ambali
It worked like Magic!

Thank you Tuan Pham.

I am grateful for this support!

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

More
1 day 3 hours ago #173273 by Tuan Pham Ngoc
You're welcome

Tuan

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