Skip to Content Skip to Menu

[SOLVED] hiding menus based on cb subs plan

  • startup
  • startup
  • OFFLINE
  • Posts: 113
  • Thanks: 7
  • Karma: 1
  • Add-ons
9 years 9 months ago - 9 years 9 months ago #257650 by startup
Hello,

I'm using CB Subs GPL 4.0.0-rc.1 with CB on Joomla 3.3.6.

I have two plans (standard and pro) which I'd like to use to show one of two different menu items to users having either one of these (mutually exclusive) plans.

I know in CB Subs -> Plans -> 'Standard plan' (name of the plan) -> Integrations -> Content -> By menu I can select a menu item to which I'd like to regulate the access based on this 'Standard Plan'.

When a user (without this 'Standard plan') clicks on the menu item from the front-end, s/he gets the message:

"Warning - Access to this menu item not allowed...".


What I'd like to do though, is for the menu item that is protected by this Standard plan to not even show to this user to begin with, unless he has that plan. Basically, the same behaviour as for modules when protecting these in CB Subs -> Plans -> 'Standard plan' (name of the plan) -> Extensions -> By Module.


The other way around, I'd like for users with a 'Professional Plan' to see the other menu item that users with Standard Plan can't see.

Right now, users of both plans see both items, but only one is accessible.

Is it possible with CB Subs to protect Menu items such that they don't even show to users not having the plan that is protecting them? If so how?

Thank you very much!
Last edit: 9 years 9 months ago by nant.

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
9 years 9 months ago #257661 by nant
Replied by nant on topic hiding menus based on cb subs plan

startup wrote: Hello,

I'm using CB Subs GPL 4.0.0-rc.1 with CB on Joomla 3.3.6.

I have two plans (standard and pro) which I'd like to use to show one of two different menu items to users having either one of these (mutually exclusive) plans.

I know in CB Subs -> Plans -> 'Standard plan' (name of the plan) -> Integrations -> Content -> By menu I can select a menu item to which I'd like to regulate the access based on this 'Standard Plan'.

When a user (without this 'Standard plan') clicks on the menu item from the front-end, s/he gets the message:

"Warning - Access to this menu item not allowed...".


What I'd like to do though, is for the menu item that is protected by this Standard plan to not even show to this user to begin with, unless he has that plan. Basically, the same behaviour as for modules when protecting these in CB Subs -> Plans -> 'Standard plan' (name of the plan) -> Extensions -> By Module.


The other way around, I'd like for users with a 'Professional Plan' to see the other menu item that users with Standard Plan can't see.

Right now, users of both plans see both items, but only one is accessible.

Is it possible with CB Subs to protect Menu items such that they don't even show to users not having the plan that is protecting them? If so how?

Thank you very much!


As you surmised the built-in protection in CBSubs GPL does not hide menus it just blocks access to them.

If you want to hide a menu item using the current functionality you need to create a Joomla ACL view and group and use CBSubs to add subscribers to this group and then configure the menu item you want to only show for the specific ACL view.

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

  • startup
  • startup
  • OFFLINE
  • Posts: 113
  • Thanks: 7
  • Karma: 1
  • Add-ons
9 years 9 months ago #257789 by startup
Replied by startup on topic hiding menus based on cb subs plan
Ok. Thank you, Nant!
The following user(s) said Thank You: nant

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

Moderators: beatnantkrileon
Powered by Kunena Forum