Skip to Content Skip to Menu

[#3739] images with multi checkbox

  • ciaxer
  • ciaxer
  • OFFLINE
  • Posts: 20
  • Thanks: 0
  • Karma: 0
12 years 1 month ago - 12 years 1 month ago #212712 by ciaxer
Replied by ciaxer on topic Re: images with multi checkbox
I too am having a issue with this. I have setup my coding as shown:

[cb:if cb_awardcheck includes "Blacksheep Logo"]<img alt="Blacksheep Logo" src="/images/Awards/blacksheep-patch-300x203.png" />[/cb:if]
[cb:if cb_awardcheck includes "Squad Tactics"]<img alt="Squad Tactics" src="images/Awards/blacksheep-squad-tactics-300x75.png" style="width: 300px; height: 75px;" />[/cb:if]
[cb:if cb_awardcheck includes "Mount Tactics"]<img alt="Mount Tactics" src="images/Awards/blacksheep-mout-tactics-300x75.png" style="width: 300px; height: 75px;" />[/cb:if]
[cb:if cb_awardcheck includes "Land Nav"]<img alt="Land Nav" src="images/Awards/LAND-NAV-300x75.png" style="width: 300px; height: 75px;" />[/cb:if]
[cb:if cb_awardcheck includes "Pathfinder @ Pine Plains"]<img alt="Pathfinder @ Pine Plains" src="images/Awards/blacksheep-pathfinder-300x75.png" style="width: 300px; height: 75px;" />[/cb:if]

I have also tried replacing "includes" with "contains" but no luck. It works fine if I only select one, if I select more than one, nothing shows up.

my test site is:
5mike.netreadydesign.com/
Joomla 2.5.7
CD 1.8.1

Any help is greatly appreciated
Last edit: 12 years 1 month ago by ciaxer.

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

  • ciaxer
  • ciaxer
  • OFFLINE
  • Posts: 20
  • Thanks: 0
  • Karma: 0
12 years 1 month ago #212718 by ciaxer
Replied by ciaxer on topic Re: images with multi checkbox
Ok I have tried numerous things in the last 4 hours and no luck.

I found this error in Chrome Inspector:

Uncaught TypeError: Cannot set property 'display' of undefined jquery-1.5.2.min.js:15
d.fn.extend.hide jquery-1.5.2.min.js:15
$.ajax.success my-profile:167
f.resolveWith jquery-1.5.2.min.js:15
v jquery-1.5.2.min.js:15
c jquery-1.5.2.min.js:15

If I unpublish the delimiter fields in CB or click on another tab or page this error goes away. Clueless on what it means. Hopefully someone can figure this out. I have a few tabs I am trying to setup like this:

Admin - Change checkbox status hidden to user
Checkbox loads image file and displays in tab

I want to use multiplecheckbox on one tab in the admin hidden area on users profile to load more than one image at a time. I am useing CB Privacy for this.

Thanks in advance.

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

  • ciaxer
  • ciaxer
  • OFFLINE
  • Posts: 20
  • Thanks: 0
  • Karma: 0
12 years 1 month ago #212737 by ciaxer
Replied by ciaxer on topic Re: images with multi checkbox
Anyone have any ideas? Im running out of hair to pull...lol

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
12 years 1 month ago #212753 by krileon
Replied by krileon on topic Re: images with multi checkbox
Is cb_awardcheck a multicheckbox or a multiselect dropdown? Those are basically the only 2 that includes works on. You also need to match the values letter for letter. So if it's "Bob" and you test against "bob" it probably won't work.


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.

  • ciaxer
  • ciaxer
  • OFFLINE
  • Posts: 20
  • Thanks: 0
  • Karma: 0
12 years 1 month ago #212754 by ciaxer
Replied by ciaxer on topic Re: images with multi checkbox
It is a multicheckbox, and it is letter for letter bacause I copied and pasted the names to make sure..

Like I stated it works fine if I only have one checkbox selected, and I have run down a list of 16 one at a time to make sure. But If I check 2 or more boxes nothing shows and I get the errors shown in earlier post.

Im almost willing to pay for a solution. It has been racking my brain day for days.

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

  • ciaxer
  • ciaxer
  • OFFLINE
  • Posts: 20
  • Thanks: 0
  • Karma: 0
12 years 1 month ago #212756 by ciaxer
Replied by ciaxer on topic Re: images with multi checkbox
Is there a way to simplify the names of field entry but display a title next to it?

that way its less code and less confusion?

I guess that could be another delimiter field correct?

[cb:if cb_awars="1"]Title Here[/cb:if]

Thank you for your reply Krileon, I have read your "substitution-usage" page, good stuff.

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

Moderators: beatnantkrileon
Powered by Kunena Forum