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)
-   -   BB Code Enhancements - Embed Interactive SAVED Google Maps (https://vborg.vbsupport.ru/showthread.php?t=235632)

benstillman 02-10-2010 10:00 PM

Embed Interactive SAVED Google Maps
 
1 Attachment(s)
Per request: This embeds an interactive Google Map which you have previously created and saved to your "My Maps".

Admin CP --> Custom BB Codes --> Add New BB Code

Title: Saved Map

BB Code Tag Name: savedmap

Replacement: <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="http://maps.google.com/maps/ms?{param}&amp;output=embed"></iframe>
</td>
</tr>
</table>
</div>
</div>

Example: [savedmap]source=ig&hl=en&ie=UTF8&hq=&hnear=Browns+Summit,+N C&gl=us&ei=5Pw5S5CTGI3ilAfR 8_GgBw&ved=0CAsQ8gEwAA&msa=0&msid=1082868885536792 96824.00047bd3022f955f5a820&ll =36.75539,-81.285095&spn=0.792197,1.149445&z=10[/savedmap]

Description: This will insert a saved Google map

Use {option}: No

Button Image (Optional): whatever 20x20 image you want, or none

Remove Tag If Empty: Yes

Disable BB Code Within This BB Code:
Yes

Disable Smilies Within This BB Code: Yes

Disable Word Wrapping Within This BB Code: Yes

Edited per trumpetrhapsody's recommendation.

voglermc 02-11-2010 08:30 PM

Thank you!

voglermc 02-11-2010 09:25 PM

works perfectly!

benstillman 02-11-2010 09:39 PM

Glad to hear.

MooseMoney 02-13-2010 10:15 AM

Installed!
Thank you very much! :D

xtreme4x4sa 02-22-2010 01:41 PM

Hi.

For me it did not work at first. In the cms it messed around with the background. On carefull inspection I found a </Div> at the end to much. I am no expert but it fixed the problem.

Thanks for this, and yes Marked as installed.

KW802 02-22-2010 02:42 PM

Wouldn't this allow any URL to be used?

Trumpetrhapsody 02-22-2010 03:14 PM

I changed the code to this just in case:

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="http://maps.google.com/maps/ms?{param}&amp;output=embed"></iframe>
</td>
</tr>
</table>
</div>

Code:

[savedmap]source=ig&hl=en&ie=UTF8&hq=&hnear=Browns+Summit,+NC&gl=us&ei=5Pw5S5CTGI3ilAfR 8_GgBw&ved=0CAsQ8gEwAA&msa=0&msid=108286888553679296824.00047bd3022f955f5a820&ll =36.75539,-81.285095&spn=0.792197,1.149445&z=10[/savedmap]


Using the "Test Your BB code" at the bottom of the manager it shows up properly, but in the actual replacement example box it doesn't show up. Just a FYI.

hiker 03-25-2010 03:00 PM

Is there any way to merge this code with this mod's code? https://vborg.vbsupport.ru/showthread.php?t=234318

benstillman 06-14-2010 02:49 PM

Quote:

Originally Posted by Trumpetrhapsody (Post 1988826)
I changed the code to this just in case:

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="http://maps.google.com/maps/ms?{param}&amp;output=embed"></iframe>
</td>
</tr>
</table>
</div>

Code:

[savedmap]source=ig&hl=en&ie=UTF8&hq=&hnear=Browns+Summit,+NC&gl=us&ei=5Pw5S5CTGI3ilAfR 8_GgBw&ved=0CAsQ8gEwAA&msa=0&msid=108286888553679296824.00047bd3022f955f5a820&ll =36.75539,-81.285095&spn=0.792197,1.149445&z=10[/savedmap]


Using the "Test Your BB code" at the bottom of the manager it shows up properly, but in the actual replacement example box it doesn't show up. Just a FYI.

I edited the original per your suggestion. Thanks.


All times are GMT. The time now is 09:56 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.01066 seconds
  • Memory Usage 1,740KB
  • 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_code_printable
  • (1)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
  • (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