![]() |
Oasi, after giving you some headaches to fix it and now that's is working great....
....I was thinking to my self yeasterday....How about to improve this BBCode or even a new one ? I mean, how about to include Google Earth on it ? Just an idea...lol... |
Quote:
matt |
Hi,
I head the following Problem . If I test this BBCode in my "Admin Only" Part of the Forum everything was OK. If I copied the Post to the Forum where I make Announcements it stops working. Long time ago I set up this Forum with the Possibility of the use of HTML this is not working together with this BBCode. Just to let you know, maybe helps somebody if this is not running. Best regards Christian |
How does it confirm that it is a valid google maps code? Looking at the code, one of the checks seems to be that the URL starts with http://maps.google, and it also confirms that there isn't any other http:// within the code. But if someone posted something like http://maps.google.evildomain.com, would that fail this check or would it be approved?
|
->Christian,
Could you copy the generated code to see what's wrong? ->aciurczak The check would fail with the URL you posted, I know that this is not perfect :P If you try to get a better security check for this please post it here to share it with us. Thanks! |
Quote:
I changed that check to: PHP Code:
|
I hope all your users come from the US or UK ;-)
What about http://maps.google.it/ http://maps.google.es/ http://maps.google.de/ If all of your users use the .com domain to insert the maps, it's a very valid solution... Other option would be to check that after the http://maps.google. there are as maximum 4/5 characters, so only a domain could be included, or set an array of valid domains to check that the rest of the URL is one of the domains allowed. |
Quote:
Also, even if the map or route is not in the US or UK, you can still use maps.google.com to map it or route it. Here's an example route from Berlin to Paris using maps.google.com. Yes, it's in English, but it still works fine. |
Great little code... two questions.
1> Is there a way of adding the directions to the map or a automatic link? 2> Why when i zoom into a map to the highest point can I not use the embed code? Thanks marked as installed. |
Quote:
It's not possible to add the link, but you only have to add an html link below... Quote:
|
Quote:
Any help would be appreciated. |
Moltes gràcies oasi funciona perfectament.
fins una altra. |
Very nice addon.
I'll donate 10$ for a yahoo maps bb code. |
thanks perfect
|
I tried on my vb 3.6.8 and it doesn't work - need to pay for a vb update to get this to work I suppose? :(
|
Can someone make an XML and separate files for this? I don't want to make code changes unless necessary. I'd like to be able to uninstall it cleanly.
|
Quote:
|
Quote:
Ok... Thanks. |
Thank You For Sharing this BB Code. :up:
There is a Problem when the Map is Searched via "Search in Map", the Embed HTML includes the Search Result Code and when Included in the GMAP BBCode then it Browse the Original Result and Not the Zoomed and Moved Map that supposes to be the one to be seen on the Embed HTML Code. At first it seems to Displays the Zoomed Map but a Few Seconds Later when the Page is Loaded it Zoomes Back to the Original Result of the Search in Map. Code:
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&source=s_q&hl=es&geocode=&q=burj+al+arab&sll=37.0625,-95.677068&sspn=25.20756,56.601563&ie=UTF8&ll=25.141149,55.185614&spn=0.006295,0.006295&t=h&output=embed&s=AARTsJrQ_VeJ0vHH1hWqkq_CSvs8lI6h2A"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&source=embed&hl=es&geocode=&q=burj+al+arab&sll=37.0625,-95.677068&sspn=25.20756,56.601563&ie=UTF8&ll=25.141149,55.185614&spn=0.006295,0.006295&t=h" style="color:#0000FF;text-align:left">Ver mapa m?s grande</a></small> How can I Correct that and Tell Google Maps to Ignore the Search Code (You can see it on the Code as "q=burj+al+arab&" and some other Codes that are Different than the ones obtained by Browsing the Google Map and Not Searching it, and by Browsing it the Code is Correct and Displays the Zoomed Map as it should be)? :confused::confused::confused: I obtained this by searching burj al arab on Google Maps and choosing/clicking on the first result. My Best Regards. :) |
Tx.. lovely mod.. Installed and voted.. yeah. ;)
|
very good picture to google maps Enjoy
|
Got it working, and its ACE! Thanks!
|
Very nice, installed.
Thankyou :) |
Awesome... works... thanks!
|
Works for me in all browsers (Firefox, Safari, Chrome, Opera) but in IE. In IE 7 and 8 I only get blank, white page inside the iframe. If I look at the source code of the iframe page, it seems to be there alright, but it displays as just plain white...
|
Quote:
Code:
<script type="text/javascript"> Title: Code:
Google Map Code:
GMAP Code:
[gmap]iframe code[/gmap] Code:
Embeds Google maps into posts. To use this find the map you want on Google Maps, click the link icon and select all text that is in the "Paste HTML to embed in website" section. Then paste into the post surround by [gmap]iframe code[/gmap] 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 and use this button on the message editor toolbar (16x16 Pixels | PNG transparent) |
Whereas the Code in the Firstpost worked in all browsers but IE, the code by GeoMapia does not work for me at all.
|
Are there any more revisions to this code?
I'm trying to get it to work on vB3.8, with little success. I've tried each of the code examples and fixes posted here, and the best I get is for it to work in the BBCode test screen, but not in an actual post. I noted that when I go back in to BBCode Manager to edit it, the "Example" code is cropped short of the full code originally pasted in that field, hence I never have a working example. Any thoughts would be greatly appreciated. THANK! |
This is work for me in vBulletin v3.8.2
Code:
<script type="text/javascript"> |
Thanks Sunka, that seems to initially work in the Test your BBCode area, but in an actual post I get the "Wrong map URL, edit the post to change it. Reload the page when finished to check if correct." error message.
On return to the BBCode Manager, and trying the Test your BBCode again, I also get the error there as well. This is the sample map code used in all instances; Code:
[gmap]<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/?ie=UTF8&ll=2..."></iframe><br /><small><a href="http://maps.google.com/?ie=UTF8&ll=2...p;source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small>[/gmap] Code:
[gmap]<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="[URL]http://maps.google.com/?ie=UTF8&ll=26.468114,-80.065699&spn=0.024625,0.028195&a |
Hmmm.
On Google Maps, you choose LINK and then copy Paste HTML to embed in website This is code for Zagreb on Google maps: Code:
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/?ie=UTF8&ll=45.786679,15.930176&spn=0.387841,0.839081&t=h&z=10&output=embed"></iframe><br /><small><a href="http://maps.google.com/?ie=UTF8&ll=45.786679,15.930176&spn=0.387841,0.839081&t=h&z=10&source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small> If this code I use on my forum with [ gmap ] [ /gmap ] all is OK |
I found the IE issue is related to this
{ document.write('<iframe width="640" height="480" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="'+u+'"></iframe>');} with this you can see the map but it messes with the php { document.write('<iframe width="640" height="480" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="'+u+'"</iframe>');} So it is a formatting in the above line in BOLD that is causing the IE issues. Not yet worked out what is the actual issue. |
Thanks a lot!!!!
|
Some more information
Internet Explored adds [URL] tags to the Google code and this causes the map not to show. You see "Wrong map URL, edit the post to change it. Reload the page when finished to check if correct." You need to edit the [URL] tags out. Firefox and Chrome do not add these tags when posting the Google code. |
And more..................
If you can see WHITE where the map should be in IE, then Refreshing the page with the <REFRESH> button will not cause the map to show. HOWEVER right clicking on where the map should be and selecting REFRESH will cause the map to show. I noticed that IE will show the map only the first time the page with the map is accessed. After that it will not load the map the next time the page is loaded ( unless you use the above mentioned refresh ). |
I wonder is someone with code experience could modify the script to detect if IE is the
browser and if so detected, refresh the frame twice and also remove any URL /URL tags from betten the GAMP /GMAP tags. |
Quote:
IE it did not work. |
thanks for great Mod..
It been working fine for a few weeks and today we have hit a glitch, I think its always been there but only showed up today until now all [gmap] code has been in threads started by one of 2 Admins, members have replied with maps and they have showed up with no problems. Today a supermod posted a map in his own thread and it errored and didnt show up, Even if an Admin post a [gmap] in that thread it wouldnt show up. Cut and paste the same code into a Admin started thread, it works fine doing the research on my forum, Admins have HTML turned on, no one else does, I dont want to turn it on if I can help it. will turning HTML on for everyone but turn HTML code of be safe? I will do some more testing, but I wont be near a puter for the next 24hr any thoughts or ideas? ta Marty |
Quote:
my forum and I do not have HTML turned on and my users can post maps. You should post up the error message. |
there is no error message, just nothing..blank
|
All times are GMT. The time now is 04:18 AM. |
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:
|