vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Google Maps as BBCODE? (https://vborg.vbsupport.ru/showthread.php?t=220936)

ThorstenA 08-15-2009 10:16 AM

Google Maps as BBCODE?
 
Did anyone succeed in making a bbcode out of Google Maps?
Quote:

<!-- Google Maps Element Code -->
<iframe frameborder="0" marginwidth="0" marginheight="0" border="0" style="border:0;margin:0;width:300px;height:250px; " src="http://www.google.com/uds/modules/elements/mapselement/iframe.html?maptype=roadmap&amp;latlng=37.778687%2C-122.421242&amp;mlatlng=37.778687%2C-122.421242&amp;maddress1=San%20Francisco%2C%20CA&a mp;mtitle=City%20of%20Daly%20City%20Parks%20%26%20 Recreation%3A%20Recreation%20Class%20Registration" scrolling="no" allowtransparency="true"></iframe>

Lynne 08-15-2009 02:20 PM

I've never tried to. Did you try? What did you enter and what were the results?

1Unreal 08-15-2009 07:33 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=193760" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=193760</a>

Jaxel 08-15-2009 07:49 PM

That script WAY overdoes it... you can do it much easier, and without javascript...

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="100%" height="600" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="{param}&output=embed"></iframe></td>
        </tr>
</table>
</div>

Code:

[maps]http://maps.google.com/maps?q=8+Emerson+St,+Edison,+NJ+08820[/maps]


It just uses the email/IM code from the google page.

ThorstenA 08-15-2009 08:23 PM

Quote:

Originally Posted by 1Unreal (Post 1868093)

Thanks! I installed this and then ...
Quote:

Originally Posted by Jaxel (Post 1868098)
That script WAY overdoes it... you can do it much easier, and without javascript...

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="100%" height="600" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="{param}&output=embed"></iframe></td>
        </tr>
</table>
</div>

Code:

[maps]http://maps.google.com/maps?q=8+Emerson+St,+Edison,+NJ+08820[/maps]


It just uses the email/IM code from the google page.

saw that! Wow! That's really great. I installed this! Thanks :up:

Dismounted 08-16-2009 01:16 AM

You could also add http://maps.google.com/maps before {param}. This would prevent being able to place different sites into the frame.

ThorstenA 08-16-2009 09:14 AM

Quote:

Originally Posted by Dismounted (Post 1868253)
You could also add http://maps.google.com/maps before {param}. This would prevent being able to place different sites into the frame.

Then I get a http://maps.google.comhttp//www.google.com/maps?f=q&source=s_q... error

Dismounted 08-16-2009 10:44 AM

After you do it, you only paste the last bit. ;)
Code:

[maps]?q=8+Emerson+St,+Edison,+NJ+08820[/maps]

ThorstenA 08-16-2009 11:35 AM

Thanks :D

Tommo224 09-02-2009 02:25 AM

Took me a while to work out how to install it, didn't realise I had to go through "Add Custom BB Code"

Works beautifully, thank you :)

ThorstenA 09-03-2009 10:57 AM

It's really a great bbcode.

pauldack 09-09-2009 07:07 AM

Map looks good and I can confirm works on 3.8.0. The only problem is that the location marker isn't showing up. Any ideas anyone pls?

TimberFloorAu 09-09-2009 10:18 PM

We use this code, and works beautifully. Thanks


All times are GMT. The time now is 05: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.01028 seconds
  • Memory Usage 1,738KB
  • 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
  • (5)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete