i have a client who needs something identical to bit.ly/XvIrpR this. basically he wants a google store locator for his site. click on logos of the sites for example, it should work exactly like it. you will see it finds the business on the map, and puts its info and logo above everything needs to be exactly the same as on site. nothing else, also it needs to be coded in html ( you can use php database as well if you think that will work) check it , and please message me with at least a functional demo of the site ( google maps) budget of 50$ i want it get it done today itself.
Hi ...just embed google map inside the post {gmap|address|width|height} <?php /** if($_GET['address']!=''){ echo showMap($_GET[address], $_GET[width], $_GET[height]); die(); } function googleMap($content){ preg_match_all("/\{gmap\|([^\}]+)\}/", $content, $matches); for($i=0;$i<count($matches[1]);$i++){ $d = explode("|", $matches[1][$i]); $matches[1][$i] = showMap($d[0],$d[1], $d[2]); // '<iframe width="'.$d[1].'" height="'.$d[2].'" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q='.$d[0].'&ie=UTF8&hq=&hnear='.$d[0].'&z=11&output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&source=embed&hl=en&geocode=&q='.$d[0].'&ie=UTF8&hq=&hnear='.$d[0].'&z=11" style="color:#0000FF;text-align:left">View Larger Map</a></small>'; } $content = str_replace($matches[0],$matches[1], $content); $matches = array(); preg_match_all("/\{gmap_link\|([^\}]+)\}/", $content, $matches); if(count($_GET)>0) $url = $_SERVER['REQUEST_URI'].'&'; else $url = $_SERVER['REQUEST_URI'].'?'; for($i=0;$i<count($matches[1]);$i++){ $d = explode("|", $matches[1][$i]); $matches[1][$i] = "javascript:window.open('".$url."address=".$d[0]."&width=".$d[1]."&height=".$d[2]."','Google Map for $d[0]','menubar=no,width=".($d[1]+20).",height=".($d[2]+30).",toolbar=no');void(0);"; } $content = str_replace($matches[0],$matches[1], $content); return $content; } function showMap($address, $w, $h){ return '<iframe width="'.$w.'" height="'.$h.'" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q='.$address.'&ie=UTF8&hq=&hnear='.$address.'&z=11&output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&source=embed&hl=en&geocode=&q='.$address.'&ie=UTF8&hq=&hnear='.$address.'&z=11" style="color:#0000FF;text-align:left">View Larger Map</a></small>'; } add_filter("the_content","googleMap"); PHP: