Google Maps BBCode 2.0.1

License Agreement
Creative Commons <by-nc-sa>
Supported Versions
WoltLab Suite 3.0

This plugin allows users to embed Google Maps into a post using a BBCode.

This plugin allows users to embed Google Maps into a post using a BBCode.


Code
[googlemaps]https://www.google.com/maps/embed?pb=!1m14!1m12!1m3!1d10160.731938557232!2d4.403099399999999!3d50.456317150000004!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!5e0!3m2!1sfr!2sbe!4v1458314310287[/googlemaps]
  • Version 2.0.1

    Update to not require the forum portion of Woltlab for installation.

  • Version 2.0.0

  • Me again :-)
    Update for 5.2?

    • The email notifying me of your comment got buried.

      I'll update the package to allow installing on 5.2 hopefully tomorrow. It's an easy task, I'm not in front of a computer to do it with right now. :)

      ~Justin

      Thanks 1
  • Update for Version 3.1?

    • I probably won't continue updating this BBCode, but others have enjoyed and had success with this plugin. :)

    • This plugin does not work as well as yours. How much effort is it to update your Version? Its the last plugin I need to update to 3.1 :/

    • It's a pretty easy thing to update, it's just that I've decided I don't want to continue supporting this plugin when other options (that many perceive as more appealing) exist.

      However, for yourself and anyone else who liked the simplicity and single purpose of this plugin, I've updated it to work for at least 3.1.0 and uploaded it to my package server. You can find it here.

    • Awesome! Thank you very much!

      Like 1
    • Have you removed the package from the server again? I can only find v2.1 for WCF 3.0.0

  • I've installed this plugin but don't understand how it works.

    When I copy the embed code from Google Maps all I get is the code showing and no map. However, when I copy and paste the code shown here in the overview I get a map.

    I don't see a dialogue button appear in the forum post input so could you please explain how this works?

    Many thanks

    • This particular BBCode doesn't add a button. Instead, you just take a google map embed URL and put it in a googlemaps bbcode, such as below.


      [googlemaps]https://www.google.com/maps/embed?pb=!1m14!1m12!1m3!1d10160.731938557232!2d4.403099399999999!3d50.456317150000004!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!5e0!3m2!1sfr!2sbe!4v1458314310287[/googlemaps]

    • Ok...I'd really like to get this.

      The code you just posted opens up a map in Belgium.

      Now, here's code I copied from 'embed map' in Google Maps

      <iframe src="https://www.google.com/maps/embed?pb=!1m10!1m8!1m3!1d297538.2258899053!2d-58.461535284317556!3d-34.51900428264772!3m2!1i1024!2i768!4f13.1!5e0!3m2!1sen!2sar!4v1512992744998" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>


      What do I do with the code I just copied ^^^ for it to appear correctly?

      I see that it needs to be wrapped [googlemaps]xxxx[/googlemaps] but it's the rest of it I don't get.

      When posting, do I hit BBCcode button for example and is there any backend config required?

    • You shouldn't need any backend config. You'll want to copy the URL from the string you pasted above and then put that between [googlemaps][/googlemaps].


      <iframe src="https://www.google.com/maps/embed?pb=!1m10!1m8!1m3!1d297538.2258899053!2d-58.461535284317556!3d-34.51900428264772!3m2!1i1024!2i768!4f13.1!5e0!3m2!1sen!2sar!4v1512992744998" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>


      [googlemaps]https://www.google.com/maps/embed?pb=!1m10!1m8!1m3!1d297538.2258899053!2d-58.461535284317556!3d-34.51900428264772!3m2!1i1024!2i768!4f13.1!5e0!3m2!1sen!2sar!4v1512992744998[/googlemaps]

    • When I paste this:

      [googlemaps]https://www.google.com/maps/em…1sen!2sar!4v1512992744998[/googlemaps]

      All I get is the text and this '

      Code
      The Google Maps Embed API must be used in an iframe.
    • Hmm. That test example works for me. On Woltlab here, it's automatically turning it into a link because they don't have the googlemaps bbcode. Is it doing something like that on your forum?


      As something else with BBCodes, nothing can be between the ] and the h. When copy pasting, I had an issue where it was inserting a new line, so "https://..." was on the line after [googlemaps].


      I copy and pasted the working BBCode below from my test forum with a freshly installed version of GoogleMaps BBCode.

      Code
      [googlemaps]https://www.google.com/maps/embed?pb=!1m10!1m8!1m3!1d297538.2258899053!2d-58.461535284317556!3d-34.51900428264772!3m2!1i1024!2i768!4f13.1!5e0!3m2!1sen!2sar!4v1512992744998[/googlemaps]
  • Nach dem Versuch das Update durchzuführen sind nun alle Beiträge in der eine Karte eingefügt war total gerissen mit Code.

    • Mit einer neu Installation hat es geklappt. Der Fehler besteht jedoch noch immer.

    • Updating the regex check to:
      ^https(:|%3A)(/|%2F)(/|%2F)www\.google\.(com|de)(/|%2F)maps(/|%2F)embed(\?|%3F)pb.*$
      may help you out. The regex check is necessary to help prevent users from doing malicious things.

  • An update of package com.dynamogeek.googlemaps from version 2.0.0 to 2.0.1 is not supported.

    • yes update doesn't work.

    • +1

    • Uninstall the BBCode and then reinstall it and you'll be good to go!


      If you modified the regex check, make sure to grab your updated regex before you uninstall. :)

  • Das ist ja doof das es für Artikel nicht geht :/ nur im WBB :(

    • I just tested this and it's working in Articles. It's a BBCode, so it should work anywhere BBCodes are.


      Other users have had trouble with the validation regex. The comment thread with Cyberlex below describes such a situation.

    • Mein Problem ist das dein Plugin das WBB braucht um überhaupt installiert zu werden :/

    • I've made an update here on Woltlab to remove the requirement for WBB. You can wait for it to move through review, download it manually from my package server, or add my package server in your ACP and get updates from there for my plugins moving forward.


      My package server is located at http://wcfpackages.dynamogeek.com/

      Like 1
    • Hab es installiert, verstehe nur nicht wie ich es anwenden muss im Artikel scheint es nicht zu Funktionieren :/

    • Hmmm. I'm not sure what might be happening. Can you send me a Conversation with a few screenshots of you stepping through the process of using the BBCode?

  • Is it not possible that you configure the plugin that i can direct insert the link from google maps? every bode does it so. Why i have to delete die letters?

    Like 1
  • Geht nicht richtig zeigt von googlemaps .de nix an und auch .com nicht

  • Funktioniert nicht richtig, beim Einbinden des URLadresse wird nur ein Link angezeigt, keine Karte.

    • War bei mir auch so. Du musst alle Wörter, also Buchstaben rauslöschen aus dem Code, dann gehts. Ist bissl eine "fiesel Arbeit" aber dann funktionierts.

      Like 1
  • How I easily get the right URL from Google Maps?


    I think the URL from "embed" at google maps is not the correct one, it doesn't work.


    It only works when i erase als capital letters, like you told in an older version.


    Is there an easier way?

    • You can loosen the regular expression in the Admin Control Panel to be less restrictive and allow letters. Something like ^https(:|%3A)(\/|%2F)(\/|%2F)www\.google\.com(\/|%2F)maps(\/|%2F)embed(\?|%3F)pb.*$ may help.

    • It has a bit of oddness/additional validation beyond what one would expect when using that box. This should work when used in that particular box:
      ^https(:|%3A)(/|%2F)(/|%2F)www\.google\.com(/|%2F)maps(/|%2F)embed(\?|%3F)pb.*$