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

  • activha
  • activha
  • ONLINE
  • Posts: 2327
  • Thanks: 117
  • Karma: 13
8 years 5 months ago #281564 by activha
Replied by activha on topic CB Content Bot 3.0.2 not working
thanks a lot, working fine :-)

I need a hint on something.
I use {cb}[cb:userdata field="cb_company" /]{/cb} in an article accessed by a link which is link?user_id=1000&tmpl=component&pdf=true for instance.
For now it displays my own data and not userid 1000 data

I have tried with {cb}[cb:userdata field="cb_company" user="#displayed" /]{/cb} but it does not work.
Also tried by setting CB content bot to author or viewer but as none are author, this does not work neither.

Do you have an idea ?
Can I get the profile viewed userid be passed by CB content bot to the article so that {cb}[cb:userdata field="cb_company" user="#displayed" /]{/cb} would display correctly ?

thanks in advance

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 5 months ago #281600 by krileon
Replied by krileon on topic CB Content Bot 3.0.2 not working
#displayed only works directly on CB profiles. It will not function anywhere else. So you need to use #me for the viewing user or supply the user id manually. If "User" within "Content - Community Builder" is set to "Author" then all substitutions without user specified should come from the author. Are you saying that isn't the case? Are the substitutions always of the viewing user?


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.

  • activha
  • activha
  • ONLINE
  • Posts: 2327
  • Thanks: 117
  • Karma: 13
8 years 5 months ago #281653 by activha
Replied by activha on topic CB Content Bot 3.0.2 not working
No it is working as intended with viewer or author.
If we pass the userid by url what do you suggest to retrieve it so that CB content bot would do the correct substitution in the article?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 5 months ago #281661 by krileon
Replied by krileon on topic CB Content Bot 3.0.2 not working
Works perfectly fine in all my tests. With User set to Author the [username] substitution correctly outputs that users username. With User set to Viewer it properly outputs my username. Using user="#me" will ensure the substitution is always my username with [cb:userfield field="username" user="#me" /] usage. This strictly only applies to Joomla content articles. Everywhere else will always substitution from the viewer.


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.

  • activha
  • activha
  • ONLINE
  • Posts: 2327
  • Thanks: 117
  • Karma: 13
8 years 5 months ago #281663 by activha
Replied by activha on topic CB Content Bot 3.0.2 not working
Yep that's what I wrote :-)
But if I want CB bot to output another user profile from the url &userid=xx what would you suggest?

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

  • ricco1
  • ricco1
  • OFFLINE
  • Posts: 310
  • Thanks: 8
  • Karma: -7
8 years 5 months ago #281664 by ricco1
Replied by ricco1 on topic CB Content Bot 3.0.2 not working
I don't understand why you make 2 things when it can be done with one.

Just make a CB Content Module and insert it where it's needed.

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

Moderators: beatnantkrileon
Powered by Kunena Forum