Skip to Content Skip to Menu

cbpaidsubsbot not working in subscription plan content

  • danpoole
  • danpoole
  • OFFLINE
  • Posts: 49
  • Thanks: 6
  • Karma: 0
8 years 4 months ago - 8 years 4 months ago #283294 by danpoole
Hi, when I add this below example to a site article it works fine.
Code:
[cbsubs:if plan="1" status!="A"]NOT ACTIVE[/cbsubs:if] [cbsubs:if plan="1" status="A"]ACTIVE[/cbsubs:if]

But when I add it to ADMIN > Paid Subscription > Plans > (My Plan) > Presentation > Description of plan. Then when I view it in the front end in the user profile, it doesn't work, it just shows it as normal.
Last edit: 8 years 4 months ago by danpoole.

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 #283323 by krileon
You need to turn on content prepare for the plan by setting "Prepare content using CMS Content plugins" to "Yes, prepare content with CMS content plugins" under the Presentation tab.


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.

  • danpoole
  • danpoole
  • OFFLINE
  • Posts: 49
  • Thanks: 6
  • Karma: 0
8 years 3 months ago #284277 by danpoole
OK, so yes silly me, I didn't see the aptly name field directly under the editor I was adding the text to :blush:

So now it is working because the [cbsubs:if... code is not there when I turn it on, actually nothing is there so I must have the short code wrong, can I confirm the following.

plan="1" - does the 1 represent the Plan ID number ?
status="A" - does the A represent, this user must have an active subscription?

Do you have instructions for this?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
8 years 3 months ago #284311 by krileon
You need to supply the plan id as shown under the Id column to the far right in CBSubs > Plans. The # column is just a row counter and not the plan id. The status A represents an active subscription. No this is not fully documented yet beyond the below.

www.joomlapolis.com/news/18550-cbsubs-gpl-4-1-with-timed-content-taxes-inclusive-price-display-and-plan-substitutions-usable-anywhere

You can also find usage information in the description of the CBSubs system plugin in Extensions > Plugins.


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.

  • danpoole
  • danpoole
  • OFFLINE
  • Posts: 49
  • Thanks: 6
  • Karma: 0
8 years 3 months ago #284325 by danpoole
Hi Kyle, thank you for clearing that up. I have looked through that documentation before and I am sure the code is correct (see below) and the plugin is working because when I break the code below it becomes visible, but still nothing shows up. The 'Prepare content using CMS Content plugins' field is set to yes.
Code:
[cbsubs:if plan="1" status!="X"]NOT ACTIVE[/cbsubs:if] [cbsubs:if plan="1" status="X"]ACTIVE[/cbsubs:if]

I am at a bit of a loss, do you need me to supply access so you can have a look?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
8 years 3 months ago #284360 by krileon
Your usage is not correct. The below is what you'd need for those 2 states.

[cbsubs:if plan="1" status!="A"]NOT ACTIVE[/cbsubs:if]
[cbsubs:if plan="1" status="A"]ACTIVE[/cbsubs:if]


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