![]() |
Quote:
Quote:
|
Hallo please Help me i habe problem the google map
Error Message: Wrong map URL, edit the post to change it. Reload the page when finished to check if correct. |
I have found another quirk that your users need to be aware of....
If they are using the enhanced WYSIWYG post editor this will automatically parse the links in the Google iframe code to include [noparse][URL][/URL][noparse] tags, this breaks the bbcode. They need to change to the standard editor |
Unfortunately I do not understand exactly what you mean because I can not so good English would be better for me, you can deuzsch Maybe it somewhat easier to explain.
Would be great thank you |
[QUOTE=MrEyes;1650263]I have found another quirk that your users need to be aware of....
If they are using the enhanced WYSIWYG post editor this will automatically parse the links in the Google iframe code to include [noparse][URL][/URL][noparse] tags, this breaks the bbcode. They need to change to the standard editor[/QUOTE] This is exactly what I tried to describe. The point is using the standar editor really sucks and switching from standard do enhanced WYSIWYG also. The only "solution" I've found at this moment is never use quick reply editor, always Go Advanced, past Google link, select it all, click on Remove Links and after that use Google Maps BBcode. If we had a string before this BBcode to remove the links from it would solve this issue at all. |
Quote:
|
Quote:
I've been playing here with intructions like stripe_tags and urlrx but I'm not a coder but I'm sure it can be possible. I'm sure someone here will come up with something for this. |
None has a solution for the problem?
Because one knows another similar addon BBCode? About an answer I would be very happy! Thank you in advance for the sometimes painful. |
I'm going to test it when I have a time slot...
I'll try to fix it, it seems possible... Thanks all for testing |
Quote:
|
I'm not been able to reproduce the link stuff you mentioned, but This version could solve this stuff and the related with the &
Please, try it and let me know... Code:
<script type="text/javascript"> Thanks |
Hi oasi,
Nothing changed so far, let's see. This is the link I'm using for tests already with gmap tags [gmap]<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&hl=pt-BR&q=Liberdade,+S%C3%A3o+Paulo+-+SP,+Brasil&ie=UTF8&cd=1&geocode=FdJhm P4de304_Q&ll=-23.558323,-46.62529&spn=0.036583,0.054932&z=14&iw loc=addr&output=embed&s=AARTsJrSb_gFa1Ssu_ 1wwOFTDbl5gJKezg"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&hl=pt-BR&q=Liberdade,+S%C3%A3o+Paulo+-+SP,+Brasil&ie=UTF8&cd=1&geocode=FdJhm P4de304_Q&ll=-23.558323,-46.62529&spn=0.036583,0.054932&z=14&iw loc=addr&source=embed" style="color:#0000FF;text-align:left">Exibir mapa ampliado</a></small>[/gmap] And this is the source code of my page after I post it. Code:
<!-- message --> |
Subscribing to thread, this is a wonderful hack, hope the "Wrong map URL, edit the post to change it." errors get fixed as that's a problem for me as well.
|
First of all a big thank you to Oasi for studing on this very useful mod. I'm search for it for a long time!
I've tried to embed several Google maps without any problem but now I want to embed this kind of map , but I've had negative result. This is the web page from where I have take the iframe link: Code:
http://maps.google.com/maps?f=d&saddr=Bagolino+BS&daddr=darfo+boario+to:endine+to:Frazione+Rigosa%2FSP28+to:san+pellegrino+terme+to:sant%27omobono+imagna+to:valcava+to:Como+CO&hl=it&geocode=%3B%3B%3BFR7ougId7q6UAA%3B%3B%3B%3B&mra=ls&via=3&sll=45.702343,9.813538&sspn=0.895773,1.757813&ie=UTF8&ll=45.844108,9.775085&spn=0.893499,1.757813&t=p&z=9 Could you solve also this issue, please? Thank you Regards Tintin |
Ok, now I see the error :D
Please, test this code (this is going to fix the tintin74 problem too) and tell if it works to upgrade the "release" The damn code BBCode don't seems to work... :mad: <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) { tot=tot_no_quo.substr(tot_no_quo.indexOf('[url="')+6,tot_no_quo.length);} 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>Wrong map URL, edit the post to change it.</b></p>Reload the page when finished to check if correct."); } </script> |
Yeeeeessss! Thank you very much , Oasi!
|
Quote:
|
Please, could you paste the generated code for your page, as LeoBrazil did, or paste an example URL?
If I can see the value for the tot_ini variable I would be able to figure what's wrong... |
With the new code I've got double error messages.
Here is what I've got from the source code. I'm still using the same link from Google maps for tests. [CODE] <!-- message --> <div id="post_message_27"><font face="Arial"><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="<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src=""; tot_no_quo=tot_ini.replace(/"/g,'"'); if(tot_no_quo.indexOf("http://maps.google.com/maps?f=q&amp;hl=pt-BR&amp;q=Liberdade,+S%C3%A3o+Paulo+-+SP,+Brasil&amp;ie=UTF8&amp;cd=1&amp;g eocode=FdJhmP4de304_Q&amp; ll=-23.558323,-46.62529&amp;spn=0.036583,0.054932&amp;z=1 4&amp;iwloc=addr&amp;o utput=embed&amp;s=AARTsJrSb_gFa1Ssu_1wwOFTDbl5 gJKezg"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&amp;hl=pt-BR&amp;q=Liberdade,+S%C3%A3o+Paulo+-+SP,+Brasil&amp;ie=UTF8&amp;cd=1&amp;g eocode=FdJhmP4de304_Q&amp; ll=-23.558323,-46.62529&amp;spn=0.036583,0.054932&amp;z=1 4&amp;iwloc=addr&amp;s ource=embed" style="color:#0000FF;text-align:left">Exibir mapa ampliado</a></small>"; tot_no_quo=tot_ini.replace(/"/g,'"'); if(tot_no_quo.indexOf("[url=")>0) { tot=tot_no_quo.substr(tot_no_quo.indexOf('[url="')+6,tot_no_quo.length);} 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>Endereço errado do Mapa, edite seu post para alterá-lo.</b></p>Recarregue a página quando verificar que está correto."); } </script></div> <!-- / message -->[/CODE] |
Leo
You have to set the option "Disable BB Code Within This BB Code" to yes when you add the gmap code... I think the problem is that gmap takes as parameter {param} all the content you put between [gmap] and [/gmap], but if the url BBcode is also between [gmap] and [/gmap] other different {param} value is appeared and the gmap addon can't catch the value for the iframe, and the content appears 2 times, but without a valid value. There is no workaround with this I fear ... Despite of this, in my forums I use the WYSIWYG editor and I'm not having all these weird problems, I don't figure how this is happening if you verified those values Use {option}: -> No 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 |
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 ? |
And these BBcode tags are added automatically??
HTML Code:
src="[/gmap][gmap] |
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. |
Ok,
I think this has to work... Code:
<script type="text/javascript"> |
Now I don't see the "wrong URL" error but see nothing displays. Nothing, no map nor error message.
|
Please, paste your tot_ini value here (view source for the page)...
|
Certainly!
Here is the code I used with [GMAP] tag: PHP Code:
PHP Code:
|
Thank you for this BB code. Works great
|
how do I use this? is there installation instructions somewhere?
|
Quote:
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. |
Quote:
Quote:
|
Ooooohhh!!
Finally I've been able to reproduce this!! I'm using the advanced Browser Firefox, so despite of using the WYSIWYG editor I wasn't having this problem... Now I've been testing and I'm have a solution, I have to do some more testing, but tomorrow I'll post the new version. Thanks all for your patience :D |
That's correct oasi, my bad in not informing you about it. But it only happens if you're using IE.
Not at all, thank you for your patience and support. |
@oasi : take your time, we can wait! :)
Thanks so much! |
i seee........ok oasi hope you can fix it:) waiting for your updated xml file:)
|
Ok, I upgraded the code (first post on each page).
Please, test it and tell me if it works now... I've tested on Explorer and Firefox and seems to run for me... Please, mark as installed if you use it... |
It still does not work with my board :(
The maps link: PHP Code:
PHP Code:
Thankssss! |
I don't know why your gmap pasted code isn't chaged to html chars...
" should be " < should ve < An easy "fix" would be to change this line in the code: t_i="{param}"; to t_i='{param}'; But if could fail if there is some ' char into the code of the map... Try it... |
Quote:
So at least it works for my system. But as your concern, it might not be stable. Please help me to find what could be the reason that let my system not identical with yours. Thanks so much! |
It' works great for me now !!
Thank you oasi, MOTM for sure. |
All times are GMT. The time now is 07:30 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:
|