Skip to Content Skip to Menu

Restrict CB menu tab links by plan

  • stuntlist
  • stuntlist
  • OFFLINE
  • Posts: 93
  • Thanks: 4
  • Karma: 0
8 years 4 months ago #283292 by stuntlist
Replied by stuntlist on topic Restrict CB menu tab links by plan
Hi Kyle,

We got a new server that has PHP 5.6 on it, which got rid of the Fatal error.

So, now I am testing what you suggested that we do for menu items. I went to my menu item for "Manage my Resumes" and changed it from an "External URL" to "CB -> User Profile (Mandatory!) and put Resumes in the Tab field (note that this type of menu item has a note that you should only have 1 of these in the system, but now I have 3, one for View your profile, one for Videos tab and one for Resumes tab) . In the CB Plan I have added under Integrations > Extensions > By URL parts: option=com_comprofiler&view=userprofile?tab=Resumes and option=com_comprofiler&view=userprofile?tab=Videos. Which didn't work, so changed to: option=com_comprofiler&task=userProfile&tab=Videos and option=com_comprofiler&task=userProfile&tab=Resumes

If the person has a valid subscription they are taken to their Resumes tab in their CB Profile but if they don't have a valid subscription they are taken to:

www.staging.stuntlist.com/my-resumes/pluginclass?plugin=cbpaidsubscriptions&do=accessdenied&accesstype=menus&accessvalue=72&accessurl=cGx1Z2luPWNicGFpZHN1YnNjcmlwdGlvbnMmZG89YWNjZXNzZGVuaWVkJmFjY2Vzc3R5cGU9bWVudXMmYWNjZXNzdmFsdWU9NzImb3B0aW9uPWNvbV9jb21wcm9maWxlciZ2aWV3PXVzZXJwcm9maWxlJnRhYj1SZXN1bWVzJmFjY2Vzc3VybD1jR3gxWjJsdVBXTmljR0ZwWkhOMVluTmpjbWx3ZEdsdmJuTW1aRzg5WVdOalpYTnpaR1Z1YVdWa0ptRmpZMlZ6YzNSNWNHVTliV1Z1ZFhNbVlXTmpaWE56ZG1Gc2RXVTlOekltYjNCMGFXOXVQV052YlY5amIyMXdjbTltYVd4bGNpWjJhV1YzUFhWelpYSndjbTltYVd4bEpuUmhZajFTWlhOMWJXVnpKbUZqWTJWemMzVnliRDFqUjNneFdqSnNkVkJYVG1salIwWndXa2hPTVZsdVRtcGpiV3gzWkVkc2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VXVG1oV2EydzJXVlZvUzFsV1dYcFJhMlJoVmxad2VsUnRlRTlqTVhCSVpVWmtUbEpHV2t4V2JGSktUVlpzVjJKR2FGUmlSMmh6VlRCb1ExZFdiSEpXVkVab1VteEtWMVl5TlU5WFJrcHlUbFphV21FeGNHaFpWbHBoWXpKS05sTnNhR2hOV0VKNFYyeFdhMU14VGtkVmJrWlhZa2RvYjFSVVFrdGxWbHBZWTBWa1dsWlVSa2haYTFwcldWWktjbU5HUmxkaVJrcFhWRmQ0Vm1WR1VuTlhiWGhwVWxoQ1JsWnFTakJrTWtWNFUxaG9XR0ZyU21GV2JURlRWVEZSZUZaVVJrOWlSVFZWVm14b2QxVXhSWGhqUlhSaFVsZFNXRnBGWkVkWFJsWlZZa1U1YkdFeWRITlVWRUpTWWxaT1dWVnRlR2xXTW5oeVZVWlNhbVZUV2twa1IxWjBZVmRST1U1NlNTVXpSQ1pKZEdWdGFXUTlOekklM0QmSXRlbWlkPTcy

which gives a 500 Internal Server Error. Both forms of the URL using task or view gives the 500 error.

Any idea why this doesn't work like other plan denied access, where you just get a message that a plan is needed to access the requested content?

Thank you.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
8 years 4 months ago #283322 by krileon
Replied by krileon on topic Restrict CB menu tab links by plan
The URL to protect is as follows.

option=com_comprofiler&view=userprofile&tab=Resumes

That's what you should see in the URL when editing your menu item.

I'm not sure how CB will behave doing this though as it might cause an infinite protection loop in CBSubs. It's really not common to do this. It's best to flat out protect the tab it self using CBSubs Fields Tabs Protection instead of the URL.


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.

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

Moderators: beatnantkrileon
Powered by Kunena Forum