![]() |
@Ipetrich
No i didn“t , but i will...THX for answere... |
Quote:
|
Quote:
Quote:
Anyone have any insight on this issue? |
Quote:
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"]) ) Code:
if ( isset($_GET["lng"]) && !empty($_GET["lng"]) && isset($_GET["lat"]) && !empty($_GET["lat"]) ) |
Falcon Capt, thanx for that patch. But the original code works fine in my installation. However, I haven't had such trouble with my site's installation of vbGoogleMap -- the location syntax works fine with it:
<forum root>/vbgooglemapme.php?lat=<latitude>&lng=<longitude>&z oom=<zoom value> Try composing a URL with some latitude, longitude, and zoom values and see what happens. In reference to crkgb's troubles, I added some Cyrillic text to the description text by copying and pasting some Cyrillic text from a text field elsewhere (Dashboard auto-translator widget). I used this Russian phrase: Где я? (Gde ya? -- Where am I?) It showed up without any trouble -- I tested it on the most recent OSX Firefox, Opera, and Safari, and also the most recent Windows Internet Explorer. It may be that crkgb's installation of vBulletin had been set to use a different character encoding; mine (talkrational.org) uses vBulletin's default, as far as I can tell. It's possible to HTMLize the text that one inputs in the editor page; that involves changing this code in in vbgooglemap.php: $title_map = $db->escape_string(trim($vbulletin->GPC['title_map'])); $text_map = $db->escape_string(trim($vbulletin->GPC['text_map'])); to: $title_map = $db->escape_string(htmlspecialchars(trim($vbulletin->GPC['title_map']),ENT_QUOTES)); $text_map = $db->escape_string(htmlspecialchars(trim($vbulletin->GPC['text_map']),ENT_QUOTES)); I tried that, and it turns the Cyrillic characters into HTML-entity text, which is displayed in that fashion: #1043;#1076;#1077; #1103;? (initial &'s removed) So using this fix would require reverting ZeroHour's fixes back to the original, and then editing all the users' map info -- one can do that if one had set one's privileges appropriately in the usergroups editor. ZeroHour's fixes are for composing markers.xml from the database info; users' web browsers then read markers.xml to find out which markers to display. I found htmlspecialchars in this PHP string-function reference, along with other PHP text-conversion functions. |
Quote:
|
Quote:
Good work once again Falcon Capt, bravo! |
Quote:
I have the same issue on another board I just did a version upgrade. I upgraded the version from 2.5.x to the latest version and went to run the scheduled task when it choked on this error: Code:
Database error in vBulletin 3.6.8: :o |
... all fixed.
To fix this SET NAMES error, open /includes/cron/vbgooglemapme_cron.php find line 29: Code:
$vbulletin->db->query_first("SET NAMES 'utf8'"); Code:
//$vbulletin->db->query_first("SET NAMES 'utf8'"); |
Fix: added the ability to choose "Terrain" as a default map type:
In vbgooglemapme_admin.php After line 39: '3' => 'Satellite', add '4' => 'Terrain', In vbgooglemapme.php After line 73, change if ($maptype == 1) { $map_type = "{mapTypes:[G_NORMAL_MAP,G_SATELLITE_MAP,G_HYBRID_MAP]}"; } ... } to switch ($maptype) { case 1: $map_type = "G_NORMAL_MAP"; break; case 2: $map_type = "G_HYBRID_MAP"; break; case 3: $map_type = "G_SATELLITE_MAP"; break; case 4: $map_type = "G_PHYSICAL_MAP"; break; } In product-vbgooglemapme.xml change map = new GMap2(document.getElementById("mapme"),$map_type); to map = new GMap2(document.getElementById("mapme")); and likewise for "memap" instead of "mapme". After map.addMapType(G_PHYSICAL_MAP); add map.setMapType($map_type); I'd earlier described my terrain fix, which involves adding the line map.addMapType(G_PHYSICAL_MAP); after each instance of map = new GMap2(...); |
All times are GMT. The time now is 12:48 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|