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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 4 months ago #282440 by krileon
Yes, you can condition against their subscription state. Please read the CBSubs Joomla system plugin description carefully as it describes all of its possible usages. Example as follows.

[cbsubs:if plan="2" status!="A"]NOT ACTIVE[/cbsubs:if]
[cbsubs:if plan="2" status="A"]ACTIVE[/cbsubs:if]

Excluding status parameter will behave same as stats="A".


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 #282449 by pixelkraft
Hi krileon,

thank you for the kind support, your substitions works for all users that are logged in.
So a user with plan 3 would get the "NOT ACTIVE". But users that are not logged in (public users), get no message at all.

So I added a cb substitution to access public users:

[cb:if viewaccesslevel="1"]YOU CANNOT SEE THE CONTENT FOR PLAN 2![/cb:if] (because you are public)
[cbsubs:if plan="2" status!="A"]YOU CANNOT SEE THE CONTENT FOR PLAN 2.[/cbsubs:if] (because you are logged in with plan 1 or 3)
[cbsubs:if plan="2" status="A"]YOU CAN SEE THE CONTENT FOR PLAN 3[/cbsubs:if]

I could live with this, but is this how the cbsubsbot should work? I would expect that [cbsubs:if plan="2" status!="A"] should also address public users?

Cheers,
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 #282462 by krileon
You need to install latest CBSubs 4.x nightly for it to work for users not logged in. The initial release didn't have support for non-logged in users, but those that aren't logged in will now be treated as invalid so not active conditions will match them 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.
The following user(s) said Thank You: nant

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 #282490 by nant

krileon wrote: You need to install latest CBSubs 4.x nightly for it to work for users not logged in. The initial release didn't have support for non-logged in users, but those that aren't logged in will now be treated as invalid so not active conditions will match them fine.


CBSubs nightly with this fix released.

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

Moderators: beatnantkrileon
Powered by Kunena Forum