The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Interactive Google Maps In Post Details »» | |||||||||||||||||||||||||||
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 Screenshots
Show Your Support
|
Благодарность от: | ||
iiioroh |
Comments |
#62
|
||||
|
||||
Ok, so everything looks good with one small exception...only about half of the map shows in about half of the frame. Any ideas?
Here's a link to one of the pages where you can see an example: http://stlryderz.com/showthread.php?...y-Thur-Dec-9th Thanks |
#63
|
||||
|
||||
That's a weird one... best guess right now is something in your style is throwing it off... Try it in the default style and see if you have the same problem.
To use the default style make a new style with no parent style: ACP==>style manager==>add new style==>just choose a name==>save |
#64
|
||||
|
||||
Quote:
Thanks again! |
#65
|
||||
|
||||
I see you have since removed the google map from that post... before it was gone I was able to see that whatever is causing it seems to be part of your css.php file... when I removed the css link to this file the map was normal sized, though of course everything else was bad without the css.
I'm not really sure what this means, possibly a mis configured stylevar... I can't really troubleshoot anymore from here. One more thing to try, in the replacement code for the BB Code get rid of the table tag, the only code you really need is: 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> |
#66
|
|||
|
|||
Quote:
Installed and used this as the final code. Working on 4.1 PL2 |
#67
|
|||
|
|||
My apologies for this noob question. This is only the 2nd thing I've added and it works great. I just don't know how to add the map icon. It says to input the URL. NOOB question...how do I do that? Sorry again...
|
#68
|
||||
|
||||
You need to upload the icon to your site, usually in your /images/editor/ folder...
Then in the box that asks for path to the image put in the file path, usually something like: /images/editor/map.gif (or whatever the file name is) |
#69
|
|||
|
|||
Thanks BOP. I had put public_html in the path. I called hostgator just after posting and they told me what to do. Thanks for the Hack and I will love it! Is there a way to change "Wrap [map] tags around selected text" to something like "place street address between [map] and [/map]"?
|
#70
|
||||
|
||||
Glad you're up and running... this isn't my mod, it is by benstillman, I just answer questions since he marked it "unsupported."
As for changing the text of the box- unfortunately no, if you changed it, it would change for all BB Codes and it wouldn't make any sense. |
#71
|
|||
|
|||
Great hack.
When user click the google map (location marker example), they are taken to google maps in the same window are leave my forum. How can I make this so that a new tab is opened if they click the map? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|