Skip to Content Skip to Menu

Possible a bug with CB Content bot substitutions and other shortcode

7 years 8 months ago #286181 by crealiagroup
I'm trying to ise CB Content Bot plugin to show different content into an article according to usergroups. The CB substitutions work fine until I put inside the substitution the shortcode from the Joomla Quiz plugin to load a quiz from that component:

[cb:if usergroup includes "2"]{quiz 6}[/cb:if]

In this case I got a 503 error.

I've tested another solution using the plugin "Content Filter" ( www.function90.com/docs/content-filter.html ) and in this case I got NO errors, so I thought it could be something related (maybe a bug?) with CB Content Bot plugin.

What could be wrong?
Thanks in advance.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 68617
  • Thanks: 9109
  • Karma: 1434
7 years 8 months ago #286184 by krileon
If they're both content plugins then order CB Content Bot first so it can determine if that text needs to be removed entirely or not. My guess is {quiz 6} is returning a string too large for preg_replace (there is a length limit and there's nothing we can do about it), but if CB conditions it before it's parsed then it's just show/hiding literal {quiz 6} which then gets parsed afterwards by its content plugin.


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

Facebook Twitter LinkedIn