[SOLVED] Icons tied to field values

13 years 8 months ago #140150 by spikec
[SOLVED] Icons tied to field values was created by spikec
I was wondering if it's possible to tie an image to a field value on a user's profile. I run a site for military pilots that lists aircraft flown and squadrons. I think it'd look pretty cool if instead of text values for the fields I could put little aircraft and squadron patch icons on the profile. The image below explains it better. Thanks!

Post edited by: spikec, at: 2010/08/17 22:57

Post edited by: krileon, at: 2010/08/18 20:42
Attachments:

Please Log in to join the conversation.

13 years 8 months ago #140206 by krileon
Replied by krileon on topic Re:Icons tied to field values
Yes, set your fields not to show on profile. Create a delimiter field and using substitutions you can display the fields however you see fit. Example as follows.

[code:1]
[cb:if cb_aircraft="A-10"]<img src="http:/www.example.com/images/a10.jpg" alt="A-10" title="A-10" />[/cb:if]
[/code:1]

For further information on substitution usage please review tutorials within my signature.


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.

13 years 8 months ago #140223 by spikec
Replied by spikec on topic Re:Icons tied to field values
Thanks Kyle, I'll give it a shot!

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.187 seconds

Facebook Twitter LinkedIn