Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Add icon if match specified field ?

  • pedma
  • pedma
  • OFFLINE
  • Posts: 4
  • Thanks: 0
  • Karma: 0
13 years 9 months ago #151287 by pedma
Hi,

CB is very nice. Thank you to the developers. I have a problem: Is it possible to add a new icon if the filled in text match the criteria ? Example: I add a new field "job" for registration. So, they can put something like "carpenter", "driver", "tailor" etc ... If they fill the text "driver" as answer for the "job" field, I want to show a small car icon beside the text "driver" at their contact info.
Is it possible ? If yes, is there any plugin that can do that? Or any idea which file must be changed? Any information is appreciated.

Thank you.
- pedma -

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
13 years 9 months ago #151304 by nant
Replied by nant on topic Re: Add icon if match specified field ?

pedma wrote: Hi,

CB is very nice. Thank you to the developers. I have a problem: Is it possible to add a new icon if the filled in text match the criteria ? Example: I add a new field "job" for registration. So, they can put something like "carpenter", "driver", "tailor" etc ... If they fill the text "driver" as answer for the "job" field, I want to show a small car icon beside the text "driver" at their contact info.
Is it possible ? If yes, is there any plugin that can do that? Or any idea which file must be changed? Any information is appreciated.

Thank you.
- pedma -


CB Delimiter field can do this...

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

  • pedma
  • pedma
  • OFFLINE
  • Posts: 4
  • Thanks: 0
  • Karma: 0
13 years 9 months ago - 13 years 9 months ago #151347 by pedma
Replied by pedma on topic Re: Add icon if match specified field ?
Hi Nant,

Thank you for your Information. Is there any tutorial about "CB Delimiter field" ?

Some Informations :
Title : Job
Field name : cb_job
Icon : www/images/icons/car.jpg
www/images/icons/carpenter.jpg

May be I must do something like this ?

Description :

[cb:if userfield field="cb_job" && userdata="driver" /]driver (at Contact info) &nbsp; <img src="images/icons/car.jpg">[/cb:if]
[cb:if userfield field="cb_job" && userdata="carpenter" /]carpenter &nbsp; <img src="images/icons/carpenter.jpg">[/cb:if]

Any idea ?

Thank you
- pedma -
Last edit: 13 years 9 months ago by pedma.

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

Moderators: beatnantkrileon
Powered by Kunena Forum