Skip to Content Skip to Menu

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

Content bot plugin not working after upgrade from 1.9 to 2.0.14

8 years 4 months ago - 8 years 4 months ago #282216 by pixelkraft
Hi!

I just updated CB from 1.9 to 2.0.14. I am also using CBSubs and used the ContentBot plugin to hide/show certain content depending on the plan of the visitor. I was doing it this way:
Code:
{cb:[cb:if cb_subscription=~"/2/"]You are logged in as Plan 2 Member!.[/cb:if]} {cb:[cb:if cb_subscription!~"/2/"]You are not logged in as Plan 2 Member![/cb:if]}

This was working fine before, but after upgrading, it does not work anymore, I get the code as plain text inside of my article :-/.
The latest cbpaidsubsbot 4.1.0 and Content Bot 3.0.3 are installed and published.

Of course I also updated CB Subs to the latest version!

Can you please help me with this issue?

Thanks,
Tim
Last edit: 8 years 4 months ago by pixelkraft.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 4 months ago - 8 years 4 months ago #282220 by krileon
You need to surround your substitution with {cb}SUBSTITUTION HERE{/cb}. Your current usage is not correctly formatted. Note next release (CB Content Bot 4.0.0) is removing the requirement to use {cb} making the usage more simple and less prone to issues like this ({cb} usage will still work so there's no issue with continuing to use it for now).

However, if you're wanting to condition based off subscription please read the below carefully.

www.joomlapolis.com/news/18550-cbsubs-gpl-41-content-control-everywhere


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 4 months ago by krileon.

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 4 months ago #282228 by nant

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

8 years 4 months ago #282233 by pixelkraft
Ok guys thanks!

I installed Content Bot 4.0 and now the filter is basically working and displaying/hiding correctly, but I see the {cb: } tags..
Code:
{cb: Content the user is allowed to see... } {cb:}

The second {cb:} is the remnant of the content that is hidden for the public user. So seems like the {cb} is not removed correctly. I can do this myself, though!

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 4 months ago #282244 by krileon
Again, you are not formatting it correctly. Please read the below carefully.

CORRECT
{cb}substitutions{/cb}

NOT CORRECT
{cb substitutions}{/cb}

However with CB Content Bot 4.0.0 you do not need to use {cb} at all.


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.

8 years 4 months ago - 8 years 4 months ago #282435 by pixelkraft
Hi Krileon,

ok I switched to the ne cbsubsbot and tried this:

[cbsubs:if plan="2"]You can see this because you are in Plan 2 !![/cbsubs:if].

That works so far, thanks for pointing me to the new plugin!
But could you tell me if there is also a way HIDE content for those who are logged in as Plan 2 users?

Because I would like to have something like "Please log in as Plan2 user to see what is here!" what of course should disappear when the user is logged in.

I tried
[cbsubs:if plan!"2"]Please log in to see what is here[/cbsubs:if].

But it does not work. How could I achieve it?
Last edit: 8 years 4 months ago by pixelkraft.

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

Moderators: beatnantkrileon
Powered by Kunena Forum