Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

ContentBot Plugin not working

11 years 1 month ago - 11 years 1 month ago #233703 by pixelkraft
ContentBot Plugin not working was created by pixelkraft
Hi!

I am trying to hide content depending on the SB Subs Plan subscriptions. I have done this fine on a Joomla 1.5 in the past.

Now I am using Joomla 3.1.

I use this syntax in the content:
Code:
{cb:[cb:if cb_subscription=~"/2/"]Logged in with plan 2.[/cb:if]}

But it does not work. The frontend shows the plain code, so it seems the plugin is not working. Is this syntax still right or did it change since Joomla 1.5?

In the plugin management of community builder I get the following description with the content bot plugin:

CBSubs Content integration CB plugin: Provides paid access integration between CBSubs plugin and CMS content. WARNING: you also need to install and publish the CBSubs Bot CMS mambot/plugin.


Is this warning just a general notice or does it mean there's something wrong on my site?
I navigated to the joomla plugins andd found that the cbpaidsubsbot plugin is installed and enabled.

What am I doing wrong?

EDIT: Just confused the Content Bot with the CBSubs Content Plugin.
Now it works. I just needed both plugins:

cbplug_int_cbsubscontent.zip
bot_cbcontent_j25-220.zip
Last edit: 11 years 1 month ago by pixelkraft. Reason: SOLVED!

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

11 years 1 month ago - 11 years 1 month ago #233705 by pixelkraft
Replied by pixelkraft on topic ContentBot Plugin not working
Ok, next problem.

On Joomla 1.5 I used this query to get the subscription:
Code:
SELECT GROUP_CONCAT( `plan_id` SEPARATOR '|*|' ) AS ids FROM `#__cbsubs_subscriptions` WHERE `user_id` = USER_ID GROUP BY `user_id`

Does this not work anymore in Joomla 3?

Edit: Sorry for trolling! :unsure:
I just discovered that USER_ID has to be changed into '[user_id]'.

Now it works!
Last edit: 11 years 1 month ago by pixelkraft. Reason: solved

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago #233714 by krileon
Replied by krileon on topic ContentBot Plugin not working
I assume you're using CB Query Field so USER_ID shouldn't never worked. It uses substitutions so you'd need to supply '[user_id]', but aside from that it should work fine.


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