| 
Welcome, Guest

TOPIC: [#3739] images with multi checkbox

[#3739] images with multi checkbox 10 months 6 days ago #205087

  • deluxe_
  • deluxe_
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 4
  • Karma: -
i try to get images with multicheckboxes,
new field - check box (multiple)
as value:
<img src="images/abcimage.jpg"

as user you can see the img with checkbox only in the profile edit,
check and save,
but it will not schow on the profile?

please help
sorry my english is very bad.
Last Edit: 7 months 23 hours ago by krileon.
The administrator has disabled public write access.

Re: images with multi checkbox 10 months 6 days ago #205090

  • krileon
  • krileon
  • ONLINE
  • Moderator
    Moderator
  • Posts: 31423
  • Karma: 897
You can't have HTML values for select fields. You'll need to use a delimiter field to render your fields values. Example as follows.

[cb:if cb_dropdown includes "Value 1"]<img src="/images/myimage.png" />[/cb:if]
Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Tutorials + Search the forums
CB links: Documentation - Tutorials - Templates - CBSubs - Hosting - Forge - Incubator - GroupJive
--
If you are a Advanced, Professional, Developer, or CBSubs 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 Advanced, 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 EST to 4:00 PM EST. 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.
--
If you use Community Builder, please post a rating and a review at the Joomla! Extensions Directory.
The administrator has disabled public write access.

Re: images with multi checkbox 10 months 6 days ago #205105

  • deluxe_
  • deluxe_
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 4
  • Karma: -
thanks a lot i hope i understand it, like this

[cb:if cb_ multicheckbox includes "Value 1"]<img src="images/myimage.jpg"/>[/cb:if]
[cb:if cb_ multicheckbox includes "Value 2"]<img src="images/myimage2.jpg"/>[/cb:if]
[cb:if cb_ multicheckbox includes "Value 3"]<img src="images/myimage3.jpg"/>[/cb:if]

what i write in the value in multicheckbox? or iam completly wrong
The administrator has disabled public write access.

Re: images with multi checkbox 10 months 6 days ago #205130

  • deluxe_
  • deluxe_
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 4
  • Karma: -
[cb:if checkbox includes "abc"]<img src="images/.......jpg" />[/cb:if]
[cb:if cb_checkbox includes "abc"]<img src="images/.......jpg" />[/cb:if]
[cb:if cb_(fieldname) includes "abc"]<img src="images/.......jpg" />[/cb:if]

is this correct?
how can i show this value´s?
please, i tried over houres now, every kombination, but it will not work
witch syntax for output?
The administrator has disabled public write access.

Re: images with multi checkbox 10 months 5 days ago #205135

  • deluxe_
  • deluxe_
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 4
  • Karma: -
[cb:if cb_6 includes "abc"]img[/cb:if]

now i understand and it works, but only with 1 selct.
is it not possible, on any way choose multi selcet?

i need lot of seal´s and brandings (around 100), that the user can choose in a list, (or picture list direkt, will be the best).
and every choosen need to show in the profile

do i really need to build with every pic, a own dropdown field with one entrie??
(and for every picture a delimiter)
The administrator has disabled public write access.

Re: images with multi checkbox 10 months 4 days ago #205204

  • krileon
  • krileon
  • ONLINE
  • Moderator
    Moderator
  • Posts: 31423
  • Karma: 897
You should just be able to add more includes. You add an IF substitution for every value you want to render as an image or however you want to render them. Example as follows.

[cb:if cb_6 includes "abc"]img[/cb:if]
[cb:if cb_6 includes "123"]img[/cb:if]
[cb:if cb_6 includes "456"]img[/cb:if]
[cb:if cb_6 includes "xyz"]img[/cb:if]
Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Tutorials + Search the forums
CB links: Documentation - Tutorials - Templates - CBSubs - Hosting - Forge - Incubator - GroupJive
--
If you are a Advanced, Professional, Developer, or CBSubs 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 Advanced, 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 EST to 4:00 PM EST. 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.
--
If you use Community Builder, please post a rating and a review at the Joomla! Extensions Directory.
The administrator has disabled public write access.
Time to create page: 0.204 seconds