Google Maps BBCode 1.0.5

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.

  • Version 1.0.5

    Update to improve regex for URL compatibility.

  • Version 1.0.4

    Update to fix regex within UI.

  • Version 1.0.3

    Updated code to remove unnecessary HTML escaping and to allow URL encoded Google Maps URLs.

  • Hello, is this plugin compatible with WSC 3.0?

  • 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. :)

  • Hello DynamoGook,

    thanks for the plugin!

    I had problems with the copied&pasted Url…1sde!2sde!4v1478458687726

    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?

    Best regards,


    • 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:…!3d49.6341372!4d8.3507182

    It is constructed differently from the example…1sfr!2sbe!4v1458314310287

    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


      Like 1
    • Thanks, it works :)

      Like 1
  • 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, I have no way to verify that the regex isn't valid.

    • 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). :)

      Like 2
  • 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=!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]…1sde!2sde!4v1485647715853[/googlemaps]