To display the location image on xlResults.php:
1. Open xlResults.php and search for the following line:
foreach ($row as $k => $v)
2. Now directly below the following:
foreach ($row as $k => $v)
{
3. Add the following:
//Begin location image
if($k == "Location Image" && $v != "")
{
$v = "<img width=200 src=\"http://www.xtremelocator.com//common/file.php?id=$v\"/>";
$k = ""; // to hide a name
}
//End location image
Note: You can modify the width setting of the image as you like.
Article is in the following categories:
KB » PHP Code Customization Tips
KB » PHP Code Customization Tips
How to add Location Image to PHP results
Email This Article