![]() |
Quote:
|
1 Attachment(s)
I think that I didnt give a good example. I apologize because even you enter the direct address in the maps.google.com, it will not display the picture, so it has nothing to do with your code. (although, I want to know why the name will display picture, but the address would not on the google map..odd)
take this example. that is an address of the sushi restaurant. I tried that in the maps.google first so I will not waste your time. do you see the nice picture? 11818 Northeast 8th Street, Bellevue, WA but, when I enter the same address in your map bbcode, I will not see it! |
Quote:
|
A bad example brought a good explanation!
I got it now! thanks! what a pity. I really like that street view image :-( |
Quote:
|
This code is awesome :) Thanks a lot!
I just need one more thing. how can i set the zoom and the default mode ( map satelite... ) Thanks :) |
How can I modify this to insert any page url into an iframe within any post?
Chris |
Quote:
Quote:
Code:
src="http://maps.google.com/maps?q={param}&output=embed" Code:
src="{param}" |
I figured it out and posted it up for folks. Thanks for the help,
Chris |
Quote:
|
I'm using this on my 4.0.8 test board just fine using the original instructions and "Disable Automatic Link Parsing" to YES.
|
Tried to set up and save this BBCode for 4.04 but get this error when attempting to save ... :confused:
Can someone fix this code? Quote:
Regards, Badger |
You can safely hit "Continue" and ignore that error... it's a bug- the code it correct and safe.
|
Quote:
Appreciate the feedback ... :up: Regards, Badger |
I love this mod and my members do, however it won't work on my frontpage (vbadvanced 4.1) I get a blank square and my left-hand column doesn't show.
(VBulletin 4.8.0) |
How would I use this to embed the satellite view version instead of road maps.
tia |
Try adding &t=h to the embed URL, so the replacement would be:
Code:
<div align="center" style="margin: 5px 5px 5px 5px;"> |
Quote:
Out of curiosity, how many other url configurations are there? Like if for example, I wanted the satellite view without the streets and labeles. |
Go to google maps, make the map how you want it, click on the "link" option to generate the link and look at the long URL it generates. Look at whatever is after "&t=" h=hybrid probably... maybe 's' is satellite only? Make the link and check.
|
Thanks again...
note, found out that "k" is for sat only. |
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 |
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 |
Quote:
Thanks again! :) |
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> |
Quote:
Installed and used this as the final code. Working on 4.1 PL2 |
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...
|
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) |
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]"?
|
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. |
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? |
FWIW, I finally got around to using Bing maps by changing the src line (the Google road names are still incorrect in my area). But I can't figure out how to automatically close the task area on the left. Oh well, this should hold me until Google gets around to correcting their map.
Quote:
|
Just an fyi the "&output=embed" is just being ignored by Bing Maps, they don't have that option best I can tell. You are embedding the real Bing Maps page, the same one if you just went to the link.
The way to make Bing maps embedded is here: http://www.microsoft.com/maps/isdk/ajax/ But its complicated Javascript and only works based on latitude/longitude... there is no way to put a street address ans get and embedded map. |
Is there a way to stop the map from showing in the resent forums post widget?
|
Odd, my Recent Posts widget doesn't show the contents of the post, only the thread name and some other info. I think I'm using the built in one. Is this some modified widget? Do you have a link?
|
I just avoid using this mod in the forum, I wanted to use it in the articles mostly anyway. I will just have to remove it if I can't find a way to block it out of the widget or a way to set permissions on it.
|
If you completely ignore questions then nobody can be of any help.
|
Quote:
This is a brand new install of vb 4.1.1 and this mod is basically the only mod that is installed. The real question is, is there a way to set permissions on this or some how prevent the maps from showing in the resent posts widget? Maybe there is some way to stop it from being used in the forums? or prevent registered users from using it? |
Quote:
https://vborg.vbsupport.ru/showthread.php?t=122942 |
But if you disable everyone's permission to see the map bbcode, then what would be the point of using it?
I'm still not understanding why your Recent Posts widget shows entire posts and not just summaries like mine does. It seems to me that with the limited space in a sidebar you'll quickly fill the widget with a single post, making it useless. Also, articles shouldn't be showing up in Recent Posts anyway, but that's a different subject entirely. |
Is there a way I can create a widget for this for the CMS? See... I'd like to be able to add pinpoints and stuff to a google map. For example... I have a New York page. Within the NY page, I have say 6 restaurants and 2 pizza places. I'd like to have all of these displayed within a widget.
Thanks |
All times are GMT. The time now is 01:04 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:
|