Thx ZerHour for the fix. Now inside the VBGooglemap page i get less errors (before i got like 29 errors, now only 2). Unfortunatelly, still no pins on the map (and i made markers.xml from zero).
The errors look like this (as you can notice there is still a "&" character which i suppose it's the culprit):
Code:
Line:921
Char:26
Code:0
Error:Object expected
URL:http://www.consolegames.ro/forum/vbgooglemapme.php?lat=44.4327992256&lng=26.0314178467&zoom=6
Code:
Line:1209
Char:3
Code:0
Error:Invalid pointer
URL:http://www.consolegames.ro/forum/vbgooglemapme.php?lat=44.4327992256&lng=26.0314178467&zoom=6
Can you please help me fix this ? Thank you in advance !
Quote:
Originally Posted by ZeroHour
Right I have my first fix. I will be editing this post with future changes so you can refer back to it and bookmark it by clicking the post number to the right.
Fix for no markers shown:
Edit:
/includes/functions_vbgooglemapme.php:
Goto line 49 which should start:
PHP Code:
$text_file .= "<marker mapid=\"
Replace that line with:
PHP Code:
$text_file .= "<marker mapid=\"". htmlspecialchars($get_xml_marker["mapid"])."\" title_map=\"".htmlspecialchars($get_xml_marker["title_map"])."\" lng=\"".htmlspecialchars($get_xml_marker["lng"])."\" lat=\"".htmlspecialchars($get_xml_marker["lat"])."\" userid=\"".htmlspecialchars($get_xml_marker["userid"])."\" username=\"".preg_replace("/\n|\r\n|\r/", "",nl2br(addslashes(htmlspecialchars(trim($get_xml_marker["username"])))))."\" text_map=\"".preg_replace("/\n|\r\n|\r/", "", nl2br(addslashes(htmlspecialchars(trim($get_xml_marker["text_map"])))))."\" type=\"".htmlspecialchars($gettype['googlemapmetype'])."\" pimage=\"".htmlspecialchars($pimage)."\" />\n";
/includes/cron/vbgooglemapme_cron.php:
Goto line 58 which should start:
PHP Code:
$text_file .= "<marker mapid=\"
Replace that line with:
PHP Code:
$text_file .= "<marker mapid=\"".htmlspecialchars($get_xml_marker["mapid"])."\" title_map=\"".htmlspecialchars($get_xml_marker["title_map"])."\" lng=\"".htmlspecialchars($get_xml_marker["lng"])."\" lat=\"".htmlspecialchars($get_xml_marker["lat"])."\" userid=\"".htmlspecialchars($get_xml_marker["userid"])."\" username=\"".preg_replace("/\n|\r\n|\r/", "",nl2br(addslashes(htmlspecialchars(trim($get_xml_marker["username"])))))."\" text_map=\"".preg_replace("/\n|\r\n|\r/", "", nl2br(addslashes(htmlspecialchars(trim($get_xml_marker["text_map"])))))."\" type=\"".htmlspecialchars($gettype['googlemapmetype'])."\" pimage=\"".htmlspecialchars($pimage)."\" />\n";
Run the scheduled task and your markers should return.
Basically I have modified the code to replace things like "&" with the xml safe "&" so no matter what anyone enters for the fields the xml should still be safe.
More tweaks to come including integration of the display groups being marker colour.
|