Skip to Content Skip to Menu

cbSubs substitutions question

  • liaskas
  • liaskas
  • OFFLINE
  • Posts: 391
  • Thanks: 36
  • Karma: 2
  • Add-ons
2 years 10 months ago #327940 by liaskas
cbSubs substitutions question was created by liaskas
Is it possible to have more than one PLAN_IDs in the cb subs substitution?

What we need:

[cbsubs:if plan= ( 1 or 2 or 5 ) and status="A"]CONTENT[/cbsubs:if]

Thank you in advance.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
2 years 10 months ago #327945 by krileon
Replied by krileon on topic cbSubs substitutions question
Yup, it supports the same AND/OR usage as IF substitutions shown below.

www.joomlapolis.com/documentation/279-community-builder/tutorials/18353-using-substitutions-throughout-cb

Example as follows.

[cbsubs:if plan="1" and status="A" or plan="2" and status="A" or plan="5" and status="A"]CONTENT[/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.

  • liaskas
  • liaskas
  • OFFLINE
  • Posts: 391
  • Thanks: 36
  • Karma: 2
  • Add-ons
2 years 10 months ago #327952 by liaskas
Replied by liaskas on topic cbSubs substitutions question
Thank you Krileon.

We need this substitution in activity TAB description.

Can something like this work? Bcause i am testing it and it it does not.

[cb:if reason="profile"]
[cbsubs:if plan="4" and status="A" or plan="2" and status="A" or plan="9" and status="A"]
[cb:if user_id="myid"]Text to show to profile owner[/cb:if]
[cb:if user_id!="myid"]Text to show to guest[/cb:if]
[/cbsubs:if]
[cbsubs:if plan="4" and status!="A" or plan="2" and status!="A" or plan="9" and status!="A"]
[cb:if user_id="myid"]Alternative text to show to profile owner[/cb:if]
[cb:if user_id!="myid"]Alternative text to show to guest[/cb:if]
[/cbsubs:if]
[/cb:if]

Thank you

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
2 years 10 months ago #327955 by krileon
Replied by krileon on topic cbSubs substitutions question
CBSubs substitutions are a Joomla content plugin so they'll work anywhere content plugins are supported. To display that in a tab use a Custom HTML field then under Parameters enable content 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.

  • liaskas
  • liaskas
  • OFFLINE
  • Posts: 391
  • Thanks: 36
  • Karma: 2
  • Add-ons
2 years 10 months ago #327959 by liaskas
Replied by liaskas on topic cbSubs substitutions question
Thank you Krileon.

I created a field of custom html type but i am not able to assign it to "Activity" TAB because "Activity" TAB is not an option at the Tab dropdown selector of the field.

Any ideas?

Thank you.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
2 years 10 months ago #327961 by krileon
Replied by krileon on topic cbSubs substitutions question
Plugin tabs can't have fields, but you can substitute the field into the tab description as a workaround.


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