vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   VBGooglemap Member Edition (https://vborg.vbsupport.ru/showthread.php?t=99920)

Sworm 04-26-2008 06:49 PM

Quote:

Originally Posted by ZeroHour (Post 1456241)
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 "&amp;" 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.


With this edit,
this map work ok, in IE 7 and in Firefox too with diffetent color marker

http://www.bbd3-it.com/forums/vbgooglemapme.php

Thank you very much Mr ZeroHour :up::up::up::up::up: , i'm creazy before that i look your edit :)

Datenpapst 04-28-2008 02:21 PM

hi,
somehow the markers aren't shown in the main map and also if you click on list users, there are no markers shown on the map for the specific user.

http://forum.c-arena.com/vbgooglemapme.php?do=showmain

Sworm 04-28-2008 05:21 PM

Quote:

Originally Posted by Datenpapst (Post 1501522)
hi,
somehow the markers aren't shown in the main map and also if you click on list users, there are no markers shown on the map for the specific user.

http://forum.c-arena.com/vbgooglemapme.php?do=showmain


have you add the edit in the previous post?

The Mine work great on vBulletin 3.7 RC4

PoetJA-1975 04-29-2008 12:11 AM

VBGooglemap Member Edition has been broken for quite some time.
And apparently the modification author (stonyarc) has died :(


Jacquii.

Datenpapst 05-02-2008 10:58 AM

still using 3.6.6 buying my new licence next week.

the2cv 05-12-2008 11:59 AM

If you look, it say's stoneyarc last logged in on 10 May 2008.

PoetJA-1975 05-12-2008 01:03 PM

Who cares - he's not supporting a mod that he clearly marked as supported - so obviously he must be dead.

Jacquii.

TimberFloorAu 05-14-2008 06:40 AM

Shame, it works to a fashion.

Just only 50% !

Bugger

ZeroHour 05-14-2008 07:07 AM

Hi
Cheers for the thanks Swarm :D

Timber can you check to see if you have implemented my fix at:
https://vborg.vbsupport.ru/showpost....postcount=1599

TimberFloorAu 05-14-2008 07:07 AM

Quote:

Originally Posted by Sworm (Post 1500022)
With this edit,
this map work ok, in IE 7 and in Firefox too with diffetent color marker

http://www.bbd3-it.com/forums/vbgooglemapme.php

Thank you very much Mr ZeroHour :up::up::up::up::up: , i'm creazy before that i look your edit :)

Good Onya mate. Works SWEET !!

Anyone following this upgrade, make sure you replace the ENTIRE line that this poster is referring to, not just the text they have indicated.

Do that and it works a treat !!

Now just need to sort out things like

wendy\'s

Darn oblique inbetween '

:) good work dude.


All times are GMT. The time now is 06:37 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
  • Page Generation 0.02607 seconds
  • Memory Usage 1,763KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete