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)

TimberFloorAu 01-26-2010 10:00 PM

YBMF-Google Maps BB Code
 
1 Attachment(s)
Please see the readme for full information.

Please mark INSTALLED if you use it. Do not Hotlink our images.

What does this do:

This adds the BBCODE for GoogleMaps to your Postbit. Streetview can also be utilised.

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

TimberFloorAu 01-27-2010 08:19 PM

*reserved*

Edrondol 01-27-2010 08:25 PM

Sweet! The last one of these I saw didn't work well at all. This one is flawless.

TimberFloorAu 01-27-2010 08:27 PM

You are very welcome :)

Many thanks for clicking Installed. Always amazes me, especially with MAJOR modifications that coders release, the time the effort and resources they expend, and members on here have only to click the "install" link, to show gratitude. Much appreciated.

Thanks

Ste

gyaronn 01-27-2010 08:32 PM

DUDE you rock thanks man :-) LOVE IT

willy888 01-27-2010 08:33 PM

works great thanks

abqtj 01-27-2010 08:48 PM

Nice...going to load this up when I get home tonight

TimberFloorAu 01-27-2010 08:54 PM

Very Welcome. I have tons of bbcode enhancements, I may add more later this week/next week when I get the opportunity. Mind you a lot of our stuff is Australia based :)

voglermc 01-27-2010 11:50 PM

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!

ComoEstaEso-com 01-28-2010 12:11 AM

Marked as Installed and Rated 5 Stars :)

Thank you!
It rocks!!

You know what would be superb?
If the Map window in the post would enable a user to navigate (up/down/zoom).
When the user is at a new location, to have the Link button easily accesible.

So they could copy/paste that link there, and make a new [maps] tag for their new post without going to maps.google.com

THANKS for this!! :D

TimberFloorAu 01-28-2010 12:23 AM

G'day Mark,

Yeah I have tried fiddling with the code, even iframing it. Its not an easy solution that. I will give it some thought, because we also do "rallys" for outback camping up and down east coast of Australia, so would be useful to us too.

Regards Ste

TimberFloorAu 01-28-2010 12:27 AM

Hola Como,

You should be able to zoom in and out scroll etc.

Not sure about the link.

But the code could be adapted to echo the original link to the map ( i am sure ) if thats what you mean.

voglermc 01-28-2010 12:33 AM

Thanks!

wacnstac 01-28-2010 12:41 AM

Would this work with 3.8.X If not what would it take?

TimberFloorAu 01-28-2010 01:02 AM

It works with all versions ;)

dmknights 01-28-2010 01:09 AM

Installed

This is a great mod that my customers will love seeing information

Thank you

ComoEstaEso-com 01-28-2010 01:16 AM

Quote:

Originally Posted by TimberFloorAu (Post 1968506)
Hola Como,


You should be able to zoom in and out scroll etc.

Not sure about the link.

But the code could be adapted to echo the original link to the map ( i am sure ) if thats what you mean.

Hello!
To clarify my thought:
Let's say on your example pages, you have Bondi Bay centered.

Say I scroll to the south-west and stop at Tamarama Bay.
I want to make a new post, commenting on Tamarama Bay and what I'm seeing.
The Link in this case would be different.

Could there be a way then to acquire the Link, for this new post discussing Tamarama?

Thanks... as it is, it ROCKS! :D

wacnstac 01-28-2010 01:19 AM

I had to reduce it to this in order to get a map to show at all:

PHP Code:

<center><iframe width="100%" height="600" frameborder="0" scrolling="yes" marginheight="0" marginwidth="0" src="{param}&output=embed"></iframe></center

and then it still doesn't show the correct map.

TimberFloorAu 01-28-2010 01:25 AM

Quote:

Originally Posted by ComoEstaEso-com (Post 1968528)
Hello!
To clarify my thought:
Let's say on your example pages, you have Bondi Bay centered.

Say I scroll to the south-west and stop at Tamarama Bay.
I want to make a new post, commenting on Tamarama Bay and what I'm seeing.
The Link in this case would be different.

Could there be a way then to acquire the Link, for this new post discussing Tamarama?

Thanks... as it is, it ROCKS! :D

LOL yeah that would be bloody sweet. I will look at the Google API

Quote:

Originally Posted by wacnstac (Post 1968529)
I had to reduce it to this in order to get a map to show at all:

PHP Code:

<center><iframe width="100%" height="600" frameborder="0" scrolling="yes" marginheight="0" marginwidth="0" src="{param}&output=embed"></iframe></center

and then it still doesn't show the correct map.

Hmm...

Code:

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

Try that

wacnstac 01-28-2010 01:46 AM

That worked and it gets me a map, but it's always pointing to Coffeyville Kansas no matter what I specify between the [maps] codes.

TimberFloorAu 01-28-2010 01:52 AM

Quote:

Originally Posted by wacnstac (Post 1968548)
That worked and it gets me a map, but it's always pointing to Coffeyville Kansas no matter what I specify between the [maps] codes.

Do you have a demo user account you can PM me please. :)

abqtj 01-28-2010 02:00 AM

Quote:

Originally Posted by wacnstac (Post 1968548)
That worked and it gets me a map, but it's always pointing to Coffeyville Kansas no matter what I specify between the [maps] codes.

same just happened to me using the original code.

Worked ok once when I tested it, then the next posting showed me coffeyville, ks as well

abqtj 01-28-2010 02:08 AM

btw, the difference that I can see in whether it worked for me or not was in the test spot (mod forum) I have HTML ON, in the regular forum, HTML is OFF, and it showed me that coffeyville map there.

TimberFloorAu 01-28-2010 02:08 AM

Quote:

Originally Posted by abqtj (Post 1968557)
same just happened to me using the original code.

Worked ok once when I tested it, then the next posting showed me coffeyville, ks as well


Do you have this installed on working board and demo account ?

abqtj 01-28-2010 02:13 AM

Quote:

Originally Posted by TimberFloorAu (Post 1968564)
Do you have this installed on working board and demo account ?

PM coming

TimberFloorAu 01-28-2010 02:15 AM

thanks

TimberFloorAu 01-28-2010 02:21 AM

Logged in, and posted on your Map thread. Works fine.

abqtj 01-28-2010 02:24 AM

Saw that...sent you another link to try, if you don't mind.

TimberFloorAu 01-28-2010 02:33 AM

The link you sent me was Googles actual Link.

I think you should study the images in the first post, I have just posted a new map for 5th Avenue on your website. Works A 1

fayax 01-28-2010 02:36 AM

Very nice!

War.Frog 01-28-2010 02:46 AM

This is great! I find however if I use the Streetview link code, it will not translate into the streetview as it would if I pasted the URL code into a browser window...it goes straight to map.

It's weird, because all you're really doing is using an iFrame but it must be something on Google's end?

TimberFloorAu 01-28-2010 02:49 AM

The BBCODE parses the google linking.

Iframe is different.

The code for iframe is similar: I use this...

Use this code in your text replacement.
Code:

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%"  height="600" style="margin:10px 0">
<thead>
        <tr>
                <td class="tcat" colspan="2" style="text-align:center">
                        <a href="{param}" title="Go to site directly" target="_new">Go to the site directly</a>
                </td>
        </tr>
</thead>
<tr>
<td>
<iFrame src="{param}" width="100%" height="600"marginheight="0" scrolling="no" frameborder="0"></iframe>
</td>
</tr>
</table>

Then [iframe]link goes here[/iframe]

Ste

wacnstac 01-28-2010 12:47 PM

I am putting the following between the [maps] tags:
PHP Code:

http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=houghton+lake+mi&sll=37.0625,-95.677068&sspn=49.71116,95.888672&ie=UTF8&hq=&hnear=Houghton+Lake,+Roscommon,+Michigan&t=h&z=13 

But keep getting a map of the Coffeyville Country club :)

voglermc 01-28-2010 02:31 PM

Quote:

Originally Posted by wacnstac (Post 1968906)
I am putting the following between the [maps] tags:
PHP Code:

http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=houghton+lake+mi&sll=37.0625,-95.677068&sspn=49.71116,95.888672&ie=UTF8&hq=&hnear=Houghton+Lake,+Roscommon,+Michigan&t=h&z=13 


I get the middle of a lake

wacnstac 01-28-2010 02:42 PM

Thats what it should be, but when I do it on my site I get Coffeyville. Don't understand it. I have the BBCode implemented just as you suggested with the fix you put on this thread last night.

wacnstac 01-28-2010 02:48 PM

<a href="http://www.michigan-sportsman.com/forum/showthread.php?p=3058169#post3058169" target="_blank">http://www.michigan-sportsman.com/fo...69#post3058169</a>

TimberFloorAu 01-28-2010 07:15 PM

Just posted on your site, Stone Mountain. Atlanta Georgia.

Works A1.

http://www.michigan-sportsman.com/fo...6&postcount=13


What browser are you using.?
Are you copying the full URL from the link dropdown above the map, on the right, not the embed url.?

Ste

wacnstac 01-28-2010 07:44 PM

I am copying from a drop down at the upper RH corner of the map. I tried each of these but both give me the "default location"
PHP Code:

http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=houghton+lake+mi&sll=37.0625,-95.677068&sspn=49.71116,95.888672&ie=UTF8&hq=&hnear=Houghton+Lake,+Roscommon,+Michigan&t=h&z=13


http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=pictured+rocks+michigan&sll=37.0625,-95.677068&sspn=49.71116,95.888672&ie=UTF8&hq=pictured+rocks+michigan&hnear=Pictured+Rocks+National+Lakeshore,+Grand+Marais,+MI+49839&t=h&z=11 

We must be doing something different.

wacnstac 01-28-2010 07:56 PM

I figured it out. Seems that if you search for a location on GM and immediately find it, and copy and paste that URL, it won't work. You have to move the map around and maybe zoom in or out and copy that URL and it will work.

TimberFloorAu 01-28-2010 07:57 PM

I am still at a loss, what are you typing into the search box at www.maps.google.com ?


All times are GMT. The time now is 07:13 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.01907 seconds
  • Memory Usage 1,827KB
  • 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
  • (2)bbcode_code_printable
  • (5)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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