vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - YBMF-Google Maps BB Code (https://vborg.vbsupport.ru/showthread.php?t=234318)

balkanboy 02-09-2010 12:59 AM

thanks working like a dream atm :)

benstillman 02-11-2010 06:45 PM

Quote:

Originally Posted by voglermc (Post 1968482)
I love it too but I have one small issue. We use a lot of self made routes in our MINI Club to post on the forum. I just tried one as an example and the route does not show, only the map itself. Here is a google map link that we just used on a recent excursion. If you can get this to work this will be my vote for MOD of the year!

Do you have the original points you used to make that map? Probably GPS coordinates. If so, you can just go to http://maps.google.com, and search for "point A to point B to point C to point D, etc...". Then use that link.

EDIT: I just rewrote it for you: https://vborg.vbsupport.ru/showthread.php?t=235632

Alibass 02-12-2010 01:36 AM

I just got an auto update message this mod has been updated, where? :confused:

TimberFloorAu 02-12-2010 01:44 AM

Read First Post ;)

ALternative version now available by Ben Stillman Ohio Riders: [ click here ]

ascott 02-12-2010 02:26 PM

Installed, this will come in handy for my photography forum. Thanks!

Ricsca 04-01-2010 11:12 AM

Thank you for your work,
but on my forum don't work

On my forum i see the google maps, but don't the track
https://vborg.vbsupport.ru/external/2010/04/87.jpg

and thi's see on my forum
https://vborg.vbsupport.ru/external/2010/04/88.jpg

your24hourstore 04-04-2010 05:58 PM

when i add the the example it wont take it all in the input area
PHP Code:

[maps]http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=birkdale,+qld &sll=37.0625,-95.677068&sspn=33.901528,71.894531&ie=UTF8&ll=-27.487563,153.21928&spn=0.074162,0.140419&z=13&iwl oc=A[/maps 

wont accept the last bracket ] could be my version i guess 402 patch level 4

works with shorter map address

Heldenverband 04-06-2010 07:41 AM

What is about copyright of this google data ? It is free to use ?

dolomites 04-06-2010 09:43 AM

Good morning, in my maps I see the little symbol of Street View just above the zoom button and I can not zoom; why this problem?

http://img253.imageshack.us/img253/6...streetview.jpg

hiker 04-06-2010 08:31 PM

1 Attachment(s)
Quote:

Originally Posted by dolomites (Post 2016718)
Good morning, in my maps I see the little symbol of Street View just above the zoom button and I can not zoom; why this problem?

I just noticed this today as well. I'm using IE8, I haven't confirmed if it's in other browsers. But the Street View icon is preventing the Zoom function from working.

EDIT: On further investigation, if you USE the street view and then exit out of it, you get a better user interface, as shown in my additional attachments. You can then utilize the zoom. But it's that first initial step that's causing the problem.

dolomites 04-07-2010 05:06 AM

Is it possible to show the round controller (or the big controller) by default? Perhaps it has no problem..

7thSENSE 04-19-2010 12:11 PM

It works perfect in Internet Explorer 7 & 8. But it doesn't in Firefox 3.6.3.

The marker within the map stays at its point when moving the map by clicking on it. But the marker should move with the map.

Can you confirm this problem?

BirdOPrey5 05-16-2010 05:48 PM

I was also having the problem with the same map displaying no matter where I moved to in Google maps, but the security issue pointed out trumps all- I don't think people realize the damage that can be done with this- it basically opens an iframe to any website on the internet. A nefarious person can put in any type of html, flash, java, or any other web based exploit to download viruses or other damaging software to any computer who views the post with this in it. It completely over-rides the safety of not being able to use HTML on a forum page. Luckily the alternative viewer linked in the top post doesn't seem to have this flaw. I think it's great the author came up with the idea for this but he or she should really insist people uninstall this in favor of the alternate code, or update this code to remove the exploit if possible.

hiker 05-17-2010 12:49 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2038048)
I was also having the problem with the same map displaying no matter where I moved to in Google maps, but the security issue pointed out trumps all- I don't think people realize the damage that can be done with this- it basically opens an iframe to any website on the internet. A nefarious person can put in any type of html, flash, java, or any other web based exploit to download viruses or other damaging software to any computer who views the post with this in it. It completely over-rides the safety of not being able to use HTML on a forum page. Luckily the alternative viewer linked in the top post doesn't seem to have this flaw. I think it's great the author came up with the idea for this but he or she should really insist people uninstall this in favor of the alternate code, or update this code to remove the exploit if possible.

I'm sorry, but I'm not seeing how this is done. I'm trying to plug in various web urls and they're only bringing back a google map. Can you give me an example url that would embed in an iframe? I'd like to confirm if this can happen on my site.

BirdOPrey5 05-17-2010 05:02 PM

Quote:

Originally Posted by bogley (Post 2038492)
I'm sorry, but I'm not seeing how this is done. I'm trying to plug in various web urls and they're only bringing back a google map. Can you give me an example url that would embed in an iframe? I'd like to confirm if this can happen on my site.

Honestly I don't remember exactly what URL I used but what showed up in the window was my forum's custom 404 message- which means I could have programmed anything I want into that page/ If you want to try this is a link to a non-existent page on my website: http://www.juot.net/jjjj/joe.html just put that inside the [maps] tag and see what happens, if you get a red 404 error page then I could run any code I've chosen on your site... I just tested this again and got the 404 error page, which could contain any code I want it to- though trust me it's safe for the purpose of this experiment.

If you look at the code given:
Code:

<iframe width="100%" height="600" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="{param}&output=embed"></iframe>
The 'src' of the iframe is completely dependent on the parameter passed to it, it could be any website on any domain- if it's programmed to accept the '&output=embed' reference you can make it show anything.

edit- if you're saying you tried non google URL's and still got back google maps then you probably have the same error other people mentioned- the map isn't updating with new data in the URL- I don't know why that is happening it's not the code. Someone else going to your page would see the 'new' link.

Mikelito 05-18-2010 07:33 AM

Thanks :)

hiker 05-18-2010 03:56 PM

I sort of wish this would work with other sites because I'm trying to find a way to embed a flickr set slideshow, but I can't get that to work either.

BirdOPrey5 05-18-2010 04:29 PM

Well if you don't care about security issues just use a plain iframe bb code, there is one on here that gives you forward and back buttons via javascript: https://vborg.vbsupport.ru/showthread.php?t=170132
I have it installed but limited its use to admins & supermods... or you could edit this code and simply remove the "&output=embed" following the {param}, that will let you open any website in the frame.

dieselpowered 05-26-2010 01:31 AM

This is great, however, for some reason when vBulletin parses the URL it adds the url bb code, thus giving a page not found error in the iframe.

BirdOPrey5 05-26-2010 01:54 AM

Quote:

Originally Posted by dieselpowered (Post 2043448)
This is great, however, for some reason when vBulletin parses the URL it adds the url bb code, thus giving a page not found error in the iframe.

Try disabling bb code within this bb code on the bb code settings screen.

dieselpowered 05-26-2010 02:11 AM

OK well that worked...however, if I change the link to a different map, it does not update and still shows the old map??

Thanks for the help!

BirdOPrey5 05-26-2010 12:21 PM

Quote:

Originally Posted by dieselpowered (Post 2043465)
OK well that worked...however, if I change the link to a different map, it does not update and still shows the old map??

Thanks for the help!

That's a common issue- don't know why that happens, but if you install the 'alternative' that the author links to, https://vborg.vbsupport.ru/showthread.php?t=235625 that works correctly and gives even more options, and is more secure, so there is no reason not to use it. In the alternative you can paste the full url like here, or just put in [maps]Sedona, AZ[/maps] or [maps]123 Fake St., Springfield, MA to Austin, TX[/maps] for routes. Even GPS coordinates.

dieselpowered 05-26-2010 12:39 PM

Thanks my friend, I will give that one a try :)

CybaGirl 06-25-2010 02:06 PM

Installed and working perfectly with v4.0.3 once you follow BirdOPrey5 suggestion of disabling bb code within this bb code on the bb code settings screen.

tadukuttan 09-08-2010 11:52 AM

There seems to be problem with this mod/bbcode after upgrading to 4.0.6, map embed simply shows default view/page, looks like VB is introducing space in 'src'

E.g: Adding below BBCODE

[MAPS]http://maps.google.com/maps?f=d&source=s_d&saddr=delhi&daddr=agra+to:Beaw ar,+Rajasthan,+India+to:Bijainagar,+Rajasthan,+Ind ia+to:Ahmedabad,+Gujarat,+India+to:belgaum+to:Goa, +India+to:Hubli,+Karnataka,+India+to:Bangalore,+Ka rnataka,+India&hl=en&geocode=FazwtAEdAFyaBCkttn40W _0MOTHOTSBOSbfCUg%3BFfDingEdkFamBCnZQS98hQ10OTFCO1 KpOO9KeA%3BFSBBjgEdgAhuBCmDEvTos3BpOTGnX5RJ9xV5lQ% 3BFXSfiwEdiwFzBCn3FICNBT9pOTHG5KjXdqy3Jg%3BFVCOXwE d9ERTBClJ1Fu6ioReOTEWZU9hEd3OTw%3BFXjb8QAd3dlwBCkv NpVQn2a_OzFf-97cHrM0fg%3BFWNf6wAdG-RoBClBtzZjELq_OzGSQPNi_4f46g%3BFZIj6gAdLXl6BCldDej uZ9e4OzGXMxEH4gPoCg%3BFU_uxQAdw_-fBCltTrTJcBauOzHgT35R6MPf-A&mra=ls&sll=20.8047,75.28158&sspn=30.373571,57.08 4961&ie=UTF8&z=5[/MAPS]

produces below code in view src

Code:

<tr>
                <td class="thead" style="text-align:center"><iframe width="100%" height="600" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=d&amp;source=s_d&amp;saddr=delhi&amp;daddr=agra+to:Beaw  ar,+Rajasthan,+India+to:Bijainagar,+Rajasthan,+Ind  ia+to:Ahmedabad,+Gujarat,+India+to:belgaum+to:Goa,  +India+to:Hubli,+Karnataka,+India+to:Bangalore,+Ka  rnataka,+India&amp;hl=en&amp;geocode=FazwtAEdAFyaBCkttn40W  _0MOTHOTSBOSbfCUg%3BFfDingEdkFamBCnZQS98hQ10OTFCO1  KpOO9KeA%3BFSBBjgEdgAhuBCmDEvTos3BpOTGnX5RJ9xV5lQ%  3BFXSfiwEdiwFzBCn3FICNBT9pOTHG5KjXdqy3Jg%3BFVCOXwE  d9ERTBClJ1Fu6ioReOTEWZU9hEd3OTw%3BFXjb8QAd3dlwBCkv  NpVQn2a_OzFf-97cHrM0fg%3BFWNf6wAdG-RoBClBtzZjELq_OzGSQPNi_4f46g%3BFZIj6gAdLXl6BCldDej  uZ9e4OzGXMxEH4gPoCg%3BFU_uxQAdw_-fBCltTrTJcBauOzHgT35R6MPf-A&amp;mra=ls&amp;sll=20.8047,75.28158&amp;sspn=30.373571,57.08  4961&amp;ie=UTF8&amp;z=5&amp;output=embed"></iframe></td>
        </tr>

As you can see spaces introduced in 'src' (e.g "to:Beaw ar" should be "to:Beawar"), any suggestions to fix the issue?

BirdOPrey5 09-08-2010 01:36 PM

It looks like your 'disable word wrapping' might not be set right... word wrapping must be disabled in the bb code options.

tadukuttan 09-09-2010 03:36 AM

"Disable Word Wrapping Within This BB Code" is marked 'Yes'

jacobsen1 09-20-2010 12:44 PM

I just upgraded to 4.0.7 and I'm having issues with it as well... it worked fine on 4.0.1 and I LOVE it... Old posts (posted on 4.0.1) still work, but new uses don't work... VB seems to be wrapping the link with [url] tags which break it? Even if I go in and edit them out of the post they come back.

Any ideas?

BirdOPrey5 09-20-2010 01:47 PM

Quote:

Originally Posted by jacobsen1 (Post 2100930)
I just upgraded to 4.0.7 and I'm having issues with it as well... it worked fine on 4.0.1 and I LOVE it... Old posts (posted on 4.0.1) still work, but new uses don't work... VB seems to be wrapping the link with [url] tags which break it? Even if I go in and edit them out of the post they come back.

Any ideas?

Disable Automatic Link Parsing Within This BB Code must be set to "Yes."

hiker 09-21-2010 02:40 AM

This has broken for me in the past couple of days too, maybe today. I have NOT updated recently. "Disable Word Wrapping Within This BB Code" is and has been set to Yes.

I've noticed that my Picasaweb slideshow embed has broken at the exact same time. Google must have changed their code:
https://vborg.vbsupport.ru/showthread.php?t=243366

Any ideas?

BirdOPrey5 09-21-2010 01:50 PM

This code takes the whole URL from the LINK code given by Google so even if the exact code changed this should still work, at least for new entries... But best I can tell everything is still working... But I use the "alternate code" mentioned in the top post mostly and can confirm that is still working.

jacobsen1 09-21-2010 04:23 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2100966)
Disable Automatic Link Parsing Within This BB Code must be set to "Yes."

thank you, that was it. It was working before the upgrade, and old posts don't have the link parsed, so I think the upgrade itself somehow switched that setting.

BirdOPrey5 09-21-2010 04:54 PM

In older versions of vbulletin "Disable Automatic Link Parsing.." wasn't even an available option, you should probably check all your other bb codes and set as appropriate.

jacobsen1 09-21-2010 06:57 PM

well I came from 4.0.1, it was an option there right?

BirdOPrey5 09-21-2010 07:37 PM

I don't know, it may not have been... it wasn't an option in 3.8.5, it was new in 3.8.6 so I don't know if 4.0.1 was before or after 3.8.5. I first saw 4.0.4 and it was there.

orca 09-22-2010 05:03 PM

Hi,

how would it be possible to include the following link provided by google maps when clicking on link:

http://goo.gl/maps/RAWi

Using this gives the error that IFRAMES are not supported.

Bergler 10-21-2010 06:47 PM

Doesnt work at all? Is there a fix for this 4.0.8

Bergler 11-05-2010 06:51 AM

Any update for this yet?

cmmguy 05-17-2011 05:20 PM

This doesnt work in IE9

But I did find that if you slightly resize the IE window, the map appears. Maybe it is a default setting in IE that is making this not work the first time a map is shown.

SuperTaz 05-18-2011 04:11 AM

N/M. I got it to work.

Remember, the replacement code uses HTML. Anytime you use "div" tags in the replacement area, you might have to enable HTML in the forums that you want to post this BB Code for it to work. Unless it is recoded, I do not see any other way around this issue.

Use the Allow HTML option at your own risk.

Go to your Forums & Moderators drop-down menu > Click on Forum Manager > Click on "Edit" of the forum(s) that you want to post the BB Code in and scroll down and enable "Allow HTML = YES!". Make sure you do this for the category as well as the forum and it should work. I also altered the code to allow for 1024x768 maps.

New replacement code:

Code:

<div align="center"  style="margin: 5px 5px 5px 5px;">
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%">
        <tr>
                <td class="thead" style="text-align:center"><iframe width="1024" height="768" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="{param}&output=embed"></iframe></td>
        </tr>
</table>
</div>

It should work now.

Works great for me.


All times are GMT. The time now is 12:53 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.01393 seconds
  • Memory Usage 1,843KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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