Skip to Content Skip to Menu

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

CB Content Bot 3.0.2 not working

  • ricco1
  • ricco1
  • OFFLINE
  • Posts: 310
  • Thanks: 8
  • Karma: -7
8 years 6 months ago #280988 by ricco1
CB Content Bot 3.0.2 not working was created by ricco1
Hi,

I've got problems after upgrading from cbcontentbot_3.0.1 to cbcontentbot_3.0.2.

Here is an example of the code which used to work but not with the new version:

{cb}
[cb:if user_id>"0"]
[cb:userfield field="cb_comp" reason="list" /] [cb:userfield field="cb_planimage" /]
[/cb:if]
{/cb}

Please advise.
Thank you

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 6 months ago - 8 years 6 months ago #281007 by krileon
Replied by krileon on topic CB Content Bot 3.0.2 not working
Works perfectly fine in all my tests. What about it is not working? Is the above literally being displayed? The proper check to see if viewing user is logged in is as follows.

Logged Out:
[cb:if user="#me" user_id="0"]You are not logged in.[/cb:if]
OR
[cb:if user="#me" user_id<="0"]I am A GUEST.[/cb:if]

Logged In:
[cb:if user="#me" user_id!="0"]You are logged in as [username].[/cb:if]
OR
[cb:if user="#me" user_id>"0"]I am NOT A GUEST.[/cb:if]

By default CB Content Bot substitutions are based off the owner of the article if an owner is available so it's important to specify user.

With 3.0.2 CB Content Bot is correctly a content.prepare plugin allowing it to function for all content.prepare locations as well.

Please be sure you're adding the substitutions with raw editor display (toggle the editor off) as the filtering and formatting functionality of the editor can sometimes break the substitutions.


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.
Last edit: 8 years 6 months ago by krileon.
The following user(s) said Thank You: nant

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

  • ricco1
  • ricco1
  • OFFLINE
  • Posts: 310
  • Thanks: 8
  • Karma: -7
8 years 6 months ago #281037 by ricco1
Replied by ricco1 on topic CB Content Bot 3.0.2 not working
Hi Kyle,

Thank you for answering.

Yes, the above is just a small portion of the whole and yes it's being literally displayed.

I will try your suggestions on a test site although the above code is working perfectly with cbcontentbot_3.0.1.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 6 months ago #281062 by krileon
Replied by krileon on topic CB Content Bot 3.0.2 not working
Copy paste of the above works perfectly fine in my tests. Are you using this in a Joomla article? If it's literally being output it means it was malformed (probably by the editor) or is never loaded to be able to parse the content.


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.
The following user(s) said Thank You: ricco1

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

  • ricco1
  • ricco1
  • OFFLINE
  • Posts: 310
  • Thanks: 8
  • Karma: -7
8 years 6 months ago - 8 years 6 months ago #281065 by ricco1
Replied by ricco1 on topic CB Content Bot 3.0.2 not working
Its a module which is set to be shown only for VIP(paid) members in a joomla article created with the cck Seblod.

I'll check the formation and the parsing, thank you.
Last edit: 8 years 6 months ago by ricco1.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 6 months ago #281094 by krileon
Replied by krileon on topic CB Content Bot 3.0.2 not working
You need to enable content prepare in your module if possible. It was never designed previously to work in a module so you were using functionality never intended. It only worked unintentionally as the content display trigger was fired after content prepare allowing the modules content to be parsed. As it's now a proper content prepare plugin it can function anywhere that content prepare can be used. The alternative is to use a CB Content Module.


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.
The following user(s) said Thank You: ricco1

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

Moderators: beatnantkrileon
Powered by Kunena Forum