Quote:
Originally Posted by MediaHound
No, thats not my problem, read the post again please. The problem I speak of involves the old version that allowed one to link to specific members on the map. I run in the postbit a link for each member that filled the map a link to his pin on the map. The earlier version of this mod that I was running allowed those links to work. The update I did no longer lets those links work. Example of a link:
http://www.forums.com/vbgooglemapme....865128&zoom=10
That type of link would zoom in to said location. Now its just as if I were to pull up vbgooglemapme.php without passing the variables. The variables in the URL don't have any effect anymore. I wish they would. Have you got an idea to fix this please? Thanks in advance!
|
Ok, got it fixed!
in vbgooglemapme.php find:
Code:
if ( isset($HTTP_GET_VARS["lng"]) && !empty($HTTP_GET_VARS["lng"]) && isset($HTTP_GET_VARS["lat"]) && !empty($HTTP_GET_VARS["lat"]) )
{
$dlng = $HTTP_GET_VARS["lng"];
$dlat = $HTTP_GET_VARS["lat"];
}
if (isset($HTTP_GET_VARS["zoom"]) && !empty($HTTP_GET_VARS["zoom"])) {
$zoomlevel = $HTTP_GET_VARS["zoom"];
}
and change it to:
Code:
if ( isset($_GET["lng"]) && !empty($_GET["lng"]) && isset($_GET["lat"]) && !empty($_GET["lat"]) )
{
$dlng = $_GET["lng"];
$dlat = $_GET["lat"];
}
if (isset($_GET["zoom"]) && !empty($_GET["zoom"])) {
$zoomlevel = $_GET["zoom"];
}
Hope this helps!