The company I work for uses this software for a contractor locator. So in addition to the contractor's name & info, we also wanted to add a photo of their work.

As of this verion, there is not a specific way to do this, so after some monkeying around I came up with this:

First I designated my User field 4 for my images. I enter the url to the image in that field.
Like so:
http:www.domainname.com/image/picture.jpg

Then in results_details.php

I modify the code for "user4"

CODE
    
         if(mysql_result($data1,11,"h1")==0)
        {
        $str=str_replace("{user2label}",$users2,$str);
        $str=str_replace("{user2}",mysql_result($data,0,'user2'),$str);
        }
        else
        {
        $str=str_replace("{user2label}","",$str);
        $str=str_replace("{user2}","",$str);
        }
        
        if(mysql_result($data,0,"user2")!="")
        {
        $str=str_replace("{pic1}","<a href=\"",$str);
        }
        else
        {
        $str=str_replace("{pic1}","",$str);
        }
        
        if(mysql_result($data,0,"user2")!="")
        {
        $str=str_replace("{pic2}","\" target=\"$target\">
        <img src=\"".mysql_result($data,0,'user2')."\" align=\"right\" height=\"80\" border=\"0\" /></a><br />",$str);
        }
        else
        {
        $str=str_replace("{pic2}","",$str);
        }


I know it's not pretty, but I'm still new to this. What I've basically done here is create two addition tokens and broken up your average <a href> up. A piece before the {user4} token and a piece after to close it.

So in your template result_details_format.htm

Sandwich it up like so:
{pic1}{user4}{pic2}

The results create an entire <a href> on the template page, including a pop up window for a full-size version of the photo.

Hopefully this is save someone sometime! Please let me know if you have a better shortcut for it! tongue.gif