The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#62
|
||||
|
||||
![]() Quote:
Quote:
HTML Code:
[gmap]<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="[/gmap][gmap][url="http://maps.google.com/maps?f=q&hl=pt-BR&q=Liberdade,+S%C3%A3o+Paulo+-+SP,+Brasil&ie=UTF8&cd=1&geocode=FdJhmP4de304_Q&ll=-23.558323,-46.62529&spn=0.036583,0.054932&z=14&iwloc=addr&output=embed&s=AARTsJrSb_gFa1Ssu_1wwOFTDbl5gJKezg"></iframe><br"][font=Arial][color=#0000ff]http://maps.google.com/maps?f=q&hl=pt-BR&q=Liberdade,+S%C3%A3o+Paulo+-+SP,+Brasil&ie=UTF8&cd=1&geocode=FdJhmP4de304_Q&ll=-23.558323,-46.62529&spn=0.036583,0.054932&z=14&iwloc=addr&output=embed&s=AARTsJrSb_gFa1Ssu_1wwOFTDbl5gJKezg"></iframe><br[/color][/font][/url][font=Arial] /><small><a href="[/font][url="http://maps.google.com/maps?f=q&hl=pt-BR&q=Liberdade,+S%C3%A3o+Paulo+-+SP,+Brasil&ie=UTF8&cd=1&geocode=FdJhmP4de304_Q&ll=-23.558323,-46.62529&spn=0.036583,0.054932&z=14&iwloc=addr&source=embed"][font=Arial][color=#0000ff]http://maps.google.com/maps?f=q&hl=pt-BR&q=Liberdade,+S%C3%A3o+Paulo+-+SP,+Brasil&ie=UTF8&cd=1&geocode=FdJhmP4de304_Q&ll=-23.558323,-46.62529&spn=0.036583,0.054932&z=14&iwloc=addr&source=embed[/color][/font][/url][font=Arial]" style="color:#0000FF;text-align:left">Exibir mapa ampliado</a></small>[/font][/gmap] Quote:
I tought with Disable BB Code Within This BB Code -> Yes - I would never had what I'm getting on the example I gave above. You can still see com BB Codes on it. Weird huh ? |
#63
|
|||
|
|||
![]()
And these BBcode tags are added automatically??
HTML Code:
src="[/gmap][gmap] |
#64
|
||||
|
||||
![]()
Yes, did you notice those in the middle, right ?
They were placed there buy the editor automaticaly, just after I clicked preveiw post. Weird ? Yes, but I found why. The link I'm using as an example I placed on Microsoft Word File because I use to keep a file on WORD of all mods I like and use just to make my life easier to organize and for upgrades, check diferences. Same as I did with yours, visually nothing chances but I think WORD uses weird HTML or something the scroll this up. I did that as I was using exactly the same link for several tests it's faster than going to Google and check for the same link all the time, you know. But now I just copy/paste directly from Google and this was what I've got: HTML Code:
[gmap]<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="[url]http://maps.google.com/maps?f=q&hl=pt-BR&q=Liberdade,+S%C3%A3o+Paulo+-+SP,+Brasil&sll=37.0625,-95.677068&sspn=32.38984,56.25&ie=UTF8&cd=1&geocode=FdJhmP4de304_Q&ll=-23.558323,-46.62529&spn=0.036583,0.054932&z=14&g=Liberdade,+S%C3%A3o+Paulo+-+SP,+Brasil&iwloc=addr&output=embed&s=AARTsJpM49-sTq_lIb07cjYCRnPUSvYXwA"></iframe><br[/url] /><small><a href="[url]http://maps.google.com/maps?f=q&hl=pt-BR&q=Liberdade,+S%C3%A3o+Paulo+-+SP,+Brasil&sll=37.0625,-95.677068&sspn=32.38984,56.25&ie=UTF8&cd=1&geocode=FdJhmP4de304_Q&ll=-23.558323,-46.62529&spn=0.036583,0.054932&z=14&g=Liberdade,+S%C3%A3o+Paulo+-+SP,+Brasil&iwloc=addr&source=embed[/url]" style="color:#0000FF;text-align:left">Exibir mapa ampliado</a></small>[/gmap] Sorry bugging you around with all those long posts I'm just trying to be usefull. |
#65
|
|||
|
|||
![]()
Ok,
I think this has to work... 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=''; tot_ini="{param}"; tot_no_quo=tot_ini.replace(/"/g,'"'); if(tot_no_quo.indexOf("[url")>0) { //The URL affaire... if(tot_no_quo.indexOf('[url="')>0) {tot=tot_no_quo.substr(tot_no_quo.indexOf('[url="')+6,tot_no_quo.length);tot_no_quo='';} if(tot_no_quo.indexOf('[url=')>0) {tot=tot_no_quo.substr(tot_no_quo.indexOf('[url=')+5,tot_no_quo.length);tot_no_quo='';a=tot.replace(/\]/g,'"');tot=a;} if(tot_no_quo.indexOf('[url]')>0) {tot=tot_no_quo.substr(tot_no_quo.indexOf('[url]')+5,tot_no_quo.length);a=tot.replace(/\[/g,'"');tot=a;} } else { tot=tot_no_quo.substr(tot_no_quo.indexOf('src="')+5,tot_no_quo.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>La URL que has passat per al mapa contenia errors, edita el post per arreglar-ho</b></p>Recorda que cal enganxar el contingut del camp que indica que es per enganxar en una web.<br />Un cop arreglat el post, has de recarregar la plana per poder veure si ha funcionat."); } </script> |
#66
|
|||
|
|||
![]()
Now I don't see the "wrong URL" error but see nothing displays. Nothing, no map nor error message.
|
#67
|
|||
|
|||
![]()
Please, paste your tot_ini value here (view source for the page)...
|
#68
|
|||
|
|||
![]()
Certainly!
Here is the code I used with [GMAP] tag: PHP Code:
PHP Code:
|
#69
|
|||
|
|||
![]()
Thank you for this BB code. Works great
|
#70
|
|||
|
|||
![]()
how do I use this? is there installation instructions somewhere?
|
#71
|
||||
|
||||
![]()
Sorry but don't. I'm still getting the wrong URL and also all my previous posts that were working got the same wrong messages.
But worry, I wrote a very detailed instructions to my members and the first code published here is working fine with them. Just a pain to switch editor mode to do it but it's fine. Tks. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|