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)

RedGTiVR6 02-27-2008 05:09 PM

any word on if this works with 3.7?

logofreax 03-02-2008 05:15 PM

Klick "Uninstall" cause no Support from Author at the really good known Megabug "Showing no Pins or markers"

cu
logofreax

RedGTiVR6 03-02-2008 07:19 PM

strange - it works on our forum just fine on 3.6.8 pl 2

RedGTiVR6 03-03-2008 02:44 AM

I take that back!

I went to approve the long list of people (didn't realize I needed to since I wasn't the person that installed this mod originally) and now we have nothing. Of our 225+ users who have put a spot on that map, none of them are showing up now.

I take it the developer of this mod is MIA?

PoetJA-1975 03-03-2008 03:16 AM

Yep - apparently MIA...
It's unfortunate really - cause this WAS one of the better modifications offered on vB.org IMO

Jacquii.

logofreax 03-03-2008 12:31 PM

We now took vBulletin-Membermap

It works really fine. Clearer, Faster, better looking an no Problems with Pins ;)

https://vborg.vbsupport.ru/showthread.php?t=154533

cu
logofreax

ZeroHour 03-03-2008 12:50 PM

Right I have found several bugs so far.
IF YOU CANT SEE ANY MARKERS:
Check your markers.xml file. It seems to be temperamental at formatting. I know that if the XML has " in the fields or "&" the markers will fail to load. I am working on a fix right now for my site and I will post the changes.

Fixed, see post 1599

PoetJA-1975 03-03-2008 05:24 PM

Quote:

Originally Posted by logofreax (Post 1455885)
We now took vBulletin-Membermap

It works really fine. Clearer, Faster, better looking an no Problems with Pins ;)

https://vborg.vbsupport.ru/showthread.php?t=154533

cu
logofreax

Um... I'm not very partial to this one and for one reason only: When you have a forum with Members from all over the world, you want to present just one map that has the option of zooming...

Very good effort though and thanx for sharing it.

Quote:

Originally Posted by ZeroHour (Post 1455896)
Right I have found several bugs so far.
IF YOU CANT SEE ANY MARKERS:
Check your markers.xml file. It seems to be temperamental at formatting. I know that if the XML has " in the fields or "&" the markers will fail to load. I am working on a fix right now for my site and I will post the changes.

lazy/busy me hasn't even considered looking at the code.
I'll appreciate you posting a fix for the pins issue though
That would be lovely, especially considering we've got a lot of new Members who don't have the opportunity to place their pin just yet.

So - Thanx for working on it ;)

Jacquii.

ZeroHour 03-03-2008 08:51 PM

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.

WimpBastard 03-07-2008 10:45 PM

Great work ZeroHour! The markers show up now.


All times are GMT. The time now is 11:49 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.02714 seconds
  • Memory Usage 1,764KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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