The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#102
|
||||
|
||||
very good picture to google maps Enjoy
|
#103
|
|||
|
|||
Got it working, and its ACE! Thanks!
|
#104
|
|||
|
|||
Very nice, installed.
Thankyou |
#105
|
||||
|
||||
Awesome... works... thanks!
|
#106
|
||||
|
||||
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...
|
#107
|
|||
|
|||
Quote:
Code:
<script type="text/javascript"> function checkURL() { if ((url.indexOf("http://")!=url.lastIndexOf("http://"))||url.lastIndexOf("http://")!=0){return false;} if (url.indexOf('"')>=0) {return false;} if (url.indexOf("http://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('<iframe width="640" height="480" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="'+url+'"></iframe>'); } 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> 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) |
#108
|
||||
|
||||
Whereas the Code in the Firstpost worked in all browsers but IE, the code by GeoMapia does not work for me at all.
|
#109
|
|||
|
|||
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! |
#110
|
|||
|
|||
This is work for me in vBulletin v3.8.2
Code:
<script type="text/javascript"> function checkURL() { if ((url.indexOf("http://")!=url.lastIndexOf("http://"))||url.lastIndexOf("http://")!=0){return false;} if (url.indexOf('"')>=0) {return false;} if (url.indexOf("http://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('<iframe width="640" height="480" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="'+url+'"></iframe>'); } 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> |
#111
|
|||
|
|||
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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|