Skip to Content Skip to Menu

🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

CB userfield in CBContent

  • chanteur94
  • chanteur94
  • OFFLINE
  • Posts: 302
  • Thanks: 13
  • Karma: 1
9 years 11 months ago #257619 by chanteur94
CB userfield in CBContent was created by chanteur94
Hi
I use the instruction :
[cb:userfield field="cb_signe" /]

Why the result ADD a space

(for example if my code is [cb:userfield field="cb_signe" /]TXT ,
i obtain SIGN TXT and not SIGNTXT

I think is a bug.

Best regards.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
9 years 10 months ago #257691 by krileon
Replied by krileon on topic CB userfield in CBContent
Your field value likely has a space then. Substitutions don't trim the value so any existing spaces in the value will output. What type of field is it? Check _comprofiler database table and review the row for your user to see if the field value has a space. Also check the layout options in the fields parameters as if you supplied a space in the layout that could also cause it.


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