I have 2 plans STANDARD and PRO. Users who are in STANDARD are always belong to usergroup Registered and access level Registered Standard. Users who are in PRO are always belong to usergroup Pro and access level Pro. Users will never be in more than one Usergroup or Access level.
I setup many field, tabs and other stuff restriction based of those Plan/group and all work fine. Now when a user was in PRO plan and his subscription is expired, he is auto-downgraded to STANDARD. But due to the fact he remain in the usergroup Pro (because I need to show to him some stuff where Registered don't have access even if his PRO plan is expired) I would like hide a specific Tab normally allowed only to STANDARD.
I don't know how handle this special case without setup a "middle" plan between STANDARD and PRO where I can place expired PRO user. I would like of course avoid to make a middle plan just for that...
I tried to play using CB Conditional for hide my specific Tab if user is belong Pro usergroup (I setup a Query field for get usergroup ID for apply my condition) but this don't work.
Have you a suggestion ?? Is probably possible to do something but after hours of reflection and test my brain start to crash... :pinch: :pinch:
For resume my goal is to hide my specific Tab to user who are in Usergroup Pro..no matter about their plan.
I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins
If that tab is only supposed to be visible to Pro and no one else then simply edit the tab and set its view access level to a view access level that only has Pro in it. For CB Query Field usage in CB Conditional you need to use the below usage.
Display: Field conditional self
Field: Custom > Value
Value: [cb:userfield field="cb_myqueryfield" /]
Translate Value: Disable
You should be able to match against it just fine from then onward. Note this won't work for jQuery usages of course so is only going to work with page loads, but that should be fine.
Another option is use CBSubs Fields in your Pro plan to set a field to a value. For example have a "Pro Status" checkbox field and set it to "1" when they subscribe, but don't reset its value (0) when the deactivate. You can then use this with CB Conditionals to condition tabs/fields as needed independently of current subscription status.
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.