modify the delimiter for multiple selects fields

13 years 1 month ago #157552 by vmwebsites
Hi guys,
I've posted this in the "free" members area, but hope someone here can help me:

When using multiple select fjields in the profile, they are stored in db and displayed on the profile delimited by |*|
Which file do I need to edit to change this delimiter?
I want the values to be stored/displayed like this for example:
value1 - value2 - value3 or just with a comma: value1, value2, value3
instead of
value1|*|value2|*|value3

It would be great to be able to select this in the admin area of CB! Maybe even using a small image as separator?

Victor

Please Log in to join the conversation.

13 years 1 month ago #157557 by krileon
Delimiter is hardcoded, you can't remove it without breaking all of or most of CB. It is the universal delimiter we use through CB and many of its integrations. Values should never be stored to database how they're intended to be displayed, that's not safe. Formatting is done through PHP after retrieved from database. You can display the field formatted with substitutions in a delimiter field using the below tutorial, using just [cb_MYFIELD] will show RAW format.

www.allmysocials.com/tutorials/item/233-substitution-usage


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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.984 seconds

Facebook Twitter LinkedIn