Skip to Content Skip to Menu

Restrict Joomla content for CB Plans

  • fdinkler
  • fdinkler
  • ONLINE
  • Posts: 238
  • Thanks: 29
  • Karma: 0
4 days 4 hours ago #343635 by fdinkler
Restrict Joomla content for CB Plans was created by fdinkler
Can't get this shortcode to work
{cbsubs:subscribed to="PLAN_ID"}
What plugins are missing?

We have CBSubs Content installed but can't find the CBSubs Bot Joomla plugin which is also required? 

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 50308
  • Thanks: 8614
  • Karma: 1471
4 days 4 hours ago #343636 by krileon
Replied by krileon on topic Restrict Joomla content for CB Plans
You're using the wrong brackets. Within System > Manage > Plugins edit "cbpaidsubsbot" then under the "Description" tab you'll find the full syntax documentation with several examples for all the content plugin substitutions CBSubs provides.


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.

  • fdinkler
  • fdinkler
  • ONLINE
  • Posts: 238
  • Thanks: 29
  • Karma: 0
19 hours 44 minutes ago - 19 hours 43 minutes ago #343643 by fdinkler
Replied by fdinkler on topic Restrict Joomla content for CB Plans
Thanks Kyle - 
Am I limited to the syntax documented in the plugin? 
or is the entire [cb:if... syntax available?  e.g. !=, !_, [/cb:elseif][/cb:if]

and if not, are the cbsubs fields available to native [cb:if...?
Thanks...
Last edit: 19 hours 43 minutes ago by fdinkler. Reason: expand

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 50308
  • Thanks: 8614
  • Karma: 1471
5 hours 39 minutes ago #343650 by krileon
Replied by krileon on topic Restrict Joomla content for CB Plans
cb:elseif and cb:else are both supported, but they need to be supplied as cbsubs:elseif and cbsubs:else. They again only work for CBSubs conditions and not regular field conditions.

As for the operators available yes, but depends on what you're applying them to. Plan is just like Field like in cb:if so it of course only accepts a static plan id. Status and Since both support operators though. "or" and "and" are also both supported so you can have more than 1 plan status since check on a cbsubs:if.

You can combine cbsubs:if and cb:if to a degree. You should be able to wrap your cbsubs:if conditions with a cb:if and that should work fine. This would result in your fields checked first followed by whatever cbsubs conditions you have.


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.

  • fdinkler
  • fdinkler
  • ONLINE
  • Posts: 238
  • Thanks: 29
  • Karma: 0
5 hours 15 minutes ago - 5 hours 5 minutes ago #343651 by fdinkler
Replied by fdinkler on topic Restrict Joomla content for CB Plans
thanks, Kyle...

I'm constructing a condition "if subscription not 71, not 72 or not 73"   e.g.
[cbsubs:if plan!="71" or plan!="72" or plan!="73"]
and it doesn't appear to work.
Fred
Last edit: 5 hours 5 minutes ago by fdinkler.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 50308
  • Thanks: 8614
  • Karma: 1471
4 hours 19 minutes ago #343657 by krileon
Replied by krileon on topic Restrict Joomla content for CB Plans
You can't use operators on plan. That's determining what plan to check against for Status and Since conditioning. Changing it to something like the below should work.

[cbsubs:if plan="71" status!="A" or plan="72" status!="A" or plan="73" status!="A"]

This would translate to checking if plans 71, 72, or 73 are not active. The default "status" is "A" so that's why it's allowed to be omitted.


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