Howdy,
At one time I had a custom BB Code I got from somewhere that would display Google map links. Then Google went and changed something. It no longer works.
Can someone show me the Replacement Code needed to make it work with the current Google link? I am NOT a coder, so I need the explicit code, not just a general suggestion ;-)
It worked like this, [gmap]iframe code[/gmap]
Here is the replacement code that I currently have,
That works with this old link
[gmap]<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?client=safari&oe=UTF-8&ie=UTF8&gl=us&daddr=Dallas,+TX&saddr=Houston,+TX&panel=1&f=d& ;fb=1&dirflg=d&geocode=FcEaxgEdUsdQ-ikBhY1ItLhAhjE7BWXz3gINyg%3BFWwv9AEdPfE6-ilLl0V79xlMhjGPZ0f2pJvsuQ&t=m&vpsrc=0&ll=31.271861,-96.082783&spn=3.022868,1.435487&output=embed"></iframe><br /><small><a href="https://maps.google.com/maps?client=safari&oe=UTF-8&ie=UTF8&gl=us&daddr=Dallas,+TX&saddr=Houston,+TX&panel=1&f=d& ;fb=1&dirflg=d&geocode=FcEaxgEdUsdQ-ikBhY1ItLhAhjE7BWXz3gINyg%3BFWwv9AEdPfE6-ilLl0V79xlMhjGPZ0f2pJvsuQ&t=m&vpsrc=0&ll=31.271861,-96.082783&spn=3.022868,1.435487&source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small>[/gmap]
Any help would be very much appreciated!
At one time I had a custom BB Code I got from somewhere that would display Google map links. Then Google went and changed something. It no longer works.
Can someone show me the Replacement Code needed to make it work with the current Google link? I am NOT a coder, so I need the explicit code, not just a general suggestion ;-)
It worked like this, [gmap]iframe code[/gmap]
Here is the replacement code that I currently have,
Code:
<script type="text/javascript"> function checkURL() { if ((url.indexOf("https://")!=url.lastIndexOf("https://"))||url.lastIndexOf("https://")!=0){return false;} if (url.indexOf('"')>=0) {return false;} if (url.indexOf("https://maps.google")!=0){return false;} return true } tot='{param}'; tot=tot.substr(tot.indexOf("src="")+10,tot.length); url=tot.substr(0,tot.indexOf(""")); urlp=url.replace(/;amp;/g,';'); url=urlp; if (checkURL()) { document.write('<center><iframe width="800" height="600" frameborder="1" scrolling="no" marginheight="50" marginwidth="50" src="'+url+'"></iframe></center>'); } else { document.write("<p><b>Wrong map URL, edit the post to change it.</b></p>Reload the page when finished to check if correct."); } </script>
[gmap]<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?client=safari&oe=UTF-8&ie=UTF8&gl=us&daddr=Dallas,+TX&saddr=Houston,+TX&panel=1&f=d& ;fb=1&dirflg=d&geocode=FcEaxgEdUsdQ-ikBhY1ItLhAhjE7BWXz3gINyg%3BFWwv9AEdPfE6-ilLl0V79xlMhjGPZ0f2pJvsuQ&t=m&vpsrc=0&ll=31.271861,-96.082783&spn=3.022868,1.435487&output=embed"></iframe><br /><small><a href="https://maps.google.com/maps?client=safari&oe=UTF-8&ie=UTF8&gl=us&daddr=Dallas,+TX&saddr=Houston,+TX&panel=1&f=d& ;fb=1&dirflg=d&geocode=FcEaxgEdUsdQ-ikBhY1ItLhAhjE7BWXz3gINyg%3BFWwv9AEdPfE6-ilLl0V79xlMhjGPZ0f2pJvsuQ&t=m&vpsrc=0&ll=31.271861,-96.082783&spn=3.022868,1.435487&source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small>[/gmap]
Any help would be very much appreciated!
Comment