Don’t have an account yet? Register yourself now and be a part of our community!
This plugin allows users to embed Google Maps into their posts
This plugin allows users to embed Google Maps into a post using a BBCode.
Update to improve regex for URL compatibility.
Update to fix regex within UI.
Updated code to remove unnecessary HTML escaping and to allow URL encoded Google Maps URLs.
Hello, is this plugin compatible with WSC 3.0?
The code is fine, but WSC3.0 is excluded in the package.xml file. I've submitted an update to the Woltlab store to fix this. If you'd like to use it now, you can add my package server to your ACP (http://wcfpackages.dynamogeek.com).
I'm having problems with this url: https://www.google.com/maps/em…-419!2sus!4v1486839469652
It's the same as this one (the first one is only visible via iframe): https://www.google.com/maps/pl…9!4d-74.8005429?hl=es-419
The URL can't contain the actual words, so (in this case) it'd be: [googlemaps]https://www.google.com/maps/em…-419!2sus!4v1486839469652[/googlemaps]
do you plan to make a update for the new version of woltlab
I definitely will at some point, but I'm nose deep in some projects for a forum I host right now.
thanks for the plugin!
I had problems with the copied&pasted Url
I found out, that the plus sign in ...Biker+Treff+Vogel... is the problem and solved it by changing the regex to
Do you agree?
That looks right to me.
I'll get this updated when I can. Looks like the Woltlab folks are pretty busy right now. Your comment being here will be a help to anyone else who experiences the trouble.
How do I format the url it is displayed? If I simply copy them from google maps copy does not work. example: https://www.google.de/maps/pla…!3d49.6341372!4d8.3507182
It is constructed differently from the example
What do I need to change?
On the page you gave, click "Share" and then click "Embed". The link you want is in the "src" attribute of the iframe that's shown for copying.
Let me know if that doesn't work quite right!
Is the url too long? I have done it as described ----> If I put on view he signs to it. The trial without sign doesn't work.
But it's still not displayed. Either with URL or without.
Looks like the regex wasn't quite right (still ). I've committed an update to the plugin to fix this, but it'll take a bit of time to get approved and then downstream to your installation. You can fix the problem before then by going to your ACP and putting the below regex into Content -> BBCodes -> List BBCodes -> googlemaps (click the little pencil) -> Regular Expression for Validation
Thanks, it works
This is incorrect in the plugin: ^https(:|%3A)(\/|%2F)(\/|%2F)www\.google\.com(\/|%2F)maps(\/|%2F)embed(\?|%3F)pb(=|%3D)([a-zA-Z0-9\.\!\-])+$ This is not a valid regular expression.
What's lead you to that conclusion? With the regex working both in the code, and on the regex test site https://regex101.com/, I have no way to verify that the regex isn't valid.
Button Create: http://www.schoener-reisen.at/bilder/googlebb.png
Excellent, thanks for the screen shot!
I've uploaded a simple fix that'll take care of the trouble, but it needs to be approved. In the mean time, you can put "^https(:|%3A)(/|%2F)(/|%2F)www\.google\.com(/|%2F)maps(/|%2F)embed(\?|%3F)pb(=|%3D)([a-zA-Z0-9\.\!\-])+$" (without the double quotes) in that box and all should be well (that's essentially what the fix does).
Regulärer Ausdruck zur Validierung stimmt nicht
Hey! Google Translate would suggest you found an issue with the regex used to confirm the Google Maps URL is correct. Can you provide a Google Maps URL that is invalid, or some more information?
Übersetzt von Google: Hey! Google Translate schlägt vor, dass Sie ein Problem mit dem Regex gefunden haben, mit dem bestätigt wird, dass die Google Maps-URL korrekt ist. Können Sie eine Google Maps-URL angeben, die ungültig ist, oder weitere Informationen?
was für ein Murks
Are you having some trouble?
Ok I installed the plugin, start a new thread and used the syntax [googlemaps=https://www.google.com/maps/embed?pb=!1m14!1m12!1m3!1d13371.853712549266!2d9.853364095213378!3d48.316084702742046!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!5e0!3m2!1sde!2sde!4v1485647715853[/googlemaps] But this does not work. Whats wrong?
I tried different syntax I found here. Currently used is: ^https(:|%3A)(/|%2F)(/|%2F)www\.google\.com(/|%2F)maps(/|%2F)embed(\?|%3F)pb(=|%3D)([a-zA-Z0-9\.\!\-])+$
Need to delete te cache or other actions i need to do?
Looks like I forgot to update the description page. I've updated it now with the new format of [googlemaps]https://www.google.com/maps/em…1sde!2sde!4v1485647715853[/googlemaps]