![]() |
Interactive Google Maps In Post
1 Attachment(s)
No Google Maps API key, no mod install, no template edits, etc. This is based off YBMF's mod for 4.0, but a bit easier for the end user. Instead of the user having to input the full Google Maps link, just the address, name of business, etc is acceptable.
Admin CP --> Custom BB Codes --> Add New BB Code Title: Map BB Code Tag Name: map 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?q={param}&output=embed"></iframe></td> </tr> </table> </div> Example: [map]201 S. Grant Avenue, Columbus, Ohio[/map] Description: This will insert a Google map of the location you input Use {option}: No Button Image (Optional): whatever 20x20 image you want, attached is the one we use 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 |
What about displaying a route from A-B?
|
1 Attachment(s)
Quote:
[map]Columbus, OH to New York, NY[/map] Screenshot attached of the results. |
|
1 Attachment(s)
Quote:
https://vborg.vbsupport.ru/showthread.php?t=235632 |
Nice! Works pretty good too.
|
As it happens, Google Maps is still showing old road names around here. Can this be made to work with Mapquest or Bing/explore?
|
Very nice mod! Nominated and installed.
I don't suppose there is a way to get this to show up in the "Visitors Message" reply in the User Profile area? Thanks in advance. |
thanks!
|
I like this mod, how would I put multiple locations in, for my website I would like to put in locations of Bowling Centres in the Northwest of England, is this possible ?
|
Quote:
|
Quote:
|
Thanks
|
Installed and working great in 3.8.4 PL2. I must say your implementation adds far more security then the original hack because it forces the iframe to google instead of getting it passed from the user.
|
Nice Mod..thanks!!
|
Works great on 4.03
|
u rock...
|
installed and checked and rated
|
Can I ask why you enclosed the iframe in both a <div> and table? Seems like overkill in layout.
|
aweseom thanks
|
Quote:
|
Cool works great thanks...
|
One question please:
I want to display the name of a place with a placemarker in my map. How do I do that ? - thanks, Leo |
Quote:
Quote:
|
Awesome works well and just what I have been looking for!
Installed on vBulletin v4.0.3 and works perfectly! Thank you very much! |
Seems I get an error in 4.0.4 PL 1
Quote:
|
Did you edit or change anything from double quotes " " to single quotes' ' ? Perhaps a double single quote '' ? Looking over the text there is no error on the author's part so either something got changed or your vB is malfunctioning. Perhaps try copying and pasting the replacement again?
|
I simply copy and pasted the code right from this page.
|
I believe you, it's just damned weird, obviously many people have done it without this issue... Although I've never seen this happen before when copying into a vb text box perhaps some extra formating is being copied over for you? Try copying and pasting the code below... if that doesn't work try copying it into a text editor like notepad then re-copy from the editor and paste- that will remove any extra formatting.
Code:
<div align="center" style="margin: 5px 5px 5px 5px;"> |
If those still don't work then start removing tags from the text... yes I know it won't work right but it will, hopefully, narrow down exactly what tag is causing the issue... for instance try just:
Code:
<div align="center" style="margin: 5px 5px 5px 5px;"> Code:
<div align="center" style="margin: 5px 5px 5px 5px;"> If you still get the error on even just a basic <div> </div> tag with no extras then I would look to the custom bb code immediately above this one, perhaps a quote is not closed throwing everything off... I've seen this issue cause havoc with css style sheets, never bb 's code but there's a first time for everything. |
I hear ya...its odd...worked fine with 4.0.3...just getting the error in 4.0.4 PL1 :)
|
Quote:
I would try removing it and reinstalling |
Oh it works fine...just get that error when saving the custom BB code in admincp :)
|
Quote:
|
Odd. I just tried it on 4.0.4PL1 and it works fine. Not sure what to tell you on that one.
|
I also get the same error in 4.0.4 PL1 - it is the param that is causing it
|
I see it now on my test install of vb4...
Quote:
|
I like it very much, but can you please help me to make a little change?
when I click on the "A" (destination) it will display the address but no picture. Sometimes the location has a picture, and I would like to display it. for example, if you put some address in the map.google.com, like the following Redmond City Hall 15670 Northeast 85th Street Redmond, WA 98052-3584 you will see a picture, but with your BB code, it will not show the picture :-( |
Quote:
|
1 Attachment(s)
Quote:
|
All times are GMT. The time now is 06: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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|