Remplace text with image

Hi

I would like to remplace texte with image in search result.

I addded this code for field "Relation". I can see the image only if 1 checkbox is checked.

If several checkboxes are checked, the is no image but only text (LKey)


$Relation =  _t("Relation").": ".process_line_output($p_arr['Relation']).'&nbsp;<img src="'. ($site['flags'].strtolower($p_arr['Relation'])) .'.gif" alt="flag" />';


Thanks

Quote · 30 Jun 2009

Your not leaving anything in your code for multiple criteria in the search, thus it's defaulting to the text when more than 1 box is checked.  Not sure of the exact code here but it should have an "and" included within the code to allow for image & text or someway of fully denying the text altogether & always produce just an image result.  Currently your code does not limit to an image only result.

Quote · 30 Jun 2009

Thank you

What can i add to my code to see all images if several checkboxes are checked ,?

Thank

Quote · 30 Jun 2009

 

Thank you

 

What can i add to my code to see all images if several checkboxes are checked ,?

 

Thank

 

I haven't specifically tried to do it with multiple boxes and images, but if you go to w3schools.com (it's free) and nose around you'll find the answer.  Sorry, I'd look it up myself, but I'm a little busy at the moment and you'll probably find it quicker.

Quote · 1 Jul 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.