![]() |
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:
|
All times are GMT. The time now is 06:33 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:
|