![]() |
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 |
installed thanks
|
installed thanks
|
thx UUUUUU!
|
thank you alot for this information
|
did not show all the time.. removed. sorry
|
its nice bbcode for forums using maps n stuff more... thanx by the way
|
Quote:
|
Quote:
|
Doesnt work, where the map should be displays internet explorer cannot display page
|
It's the same as this one: https://vborg.vbsupport.ru/showthread.php?t=235625
And nobody seems to be having issues with that one. Weird. I can't replicate any issues. It works every time for me. Can someone having errors post up screenshots? |
Quote:
|
Quote:
|
I have never had any issue with this mod... if google maps isn't showing for you then google maps itself must be having connectivity issues because all it does is display google maps on an iframe (a page inside a page) there's nothing that can be 'broken' in the code.
|
Sooooooo simple this!
Been looking for something like this for a while now and being utterly a non-coder, it's been hellofa frustrating to say the least! MEGA thanks, benstillman!!! *installed* |
Installed and works great!
|
yes - disable everything
|
I install it in our forums and for the moment our moderating team is trying it..
We have the following odd case.. When I post a map.. some members of the team see it and some others see the map of America !!! If they go in with edit and then press cancel they see the map !!!! At the other hand I can see all the maps that the rest members of the team have posted.. (so far I have 3 on 3). Can you think of anything?? browser?? cookies?? Thanks, John B. |
On rare occasion I've looked at maps I know have worked for me before and instead of the map of the area I want I just see a zoom out of the whole united states. When I check the map later it is back to normal. I chalk it up to an error on google's part because my code hasn't changed.
|
Quote:
|
For some reason, at least on this particular post, the map pin is not centering...in fact you have to click out or scroll over for it to come into view on the page? Any thoughts?
I tried formatting the address a couple different ways and get the same thing. When I enter it in the brower directly using the googlemaps call, it appears centered as it should be. It may also be an issue with IE6...just checked it on firefox on my mac and it looks centered. Not sure if there is a way to make the iframe play better with older browsers. Hopefully I am the only one using anything that old though. :) |
It's centered for me using Chrome.
|
Quote:
|
PHP Code:
|
What specific version of VB are you using? I can't say I've ever clicked that link before but I just tried it on 3.8.6 Pl1 and 4.0.8 on threads with maps and didn't get the error in either. It may be a conflict with another BB Code mod.
|
3.8.4
|
Weird one... What are you using for your "example" in the BB Code manager?'
Try putting something else in as the example like: example I know it won't show the map. this is just to troubleshoot the cause. |
Hey guys for some reason my map (when displayed) is tall but short width wise. It seems about half as wide as it should be. Is there any way to adjust width here?
|
Quote:
Use just this as the replacement code: Code:
<iframe width="100%" height="600" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?q={param}&output=embed"></iframe> |
Thanks a ton BirdOPrey5. I had to delete the BB code & make a new one but it works great now. :) Thanks again.
|
|
Thanks for this :)
|
Installed. Handy addon.
|
Great! Work fine but cannot see way-points (From Here - To here). Anybody know WTF? :)
10x |
Excellent ... installed this on my forums, we were looking for this feature from a long time to help students in finding the location of the institutes... thanks ... god bless
http://mba.ind.in/ http://management.ind.in/ |
nice work
|
Thanks, works like a charm :)
|
Just added this and it works without any problems. I know this is an old post, but thanks.
|
Surprisingly, the map shows on (preview post) but didn't when I click (submit reply)! ... Just getting this photo:
https://vborg.vbsupport.ru/external/2017/04/20.png Any suggestions? |
uppppppp!
|
All times are GMT. The time now is 10:50 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:
|