Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

İs there any way to add google map to a discussion

İs there any way to add google map to a discussion?
Tagged:

Answers

  • Options
    Any idea?
  • Options
    camocamo New
    edited October 2011
    Sorry no, this would require somebody writing a complex module/plugin I think.
    Google maps use scripts and are output as html.
    Your finished code is in an iframe like this

    <iframe width="300" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com.au/maps/ms?msa=0&msid=100128738501091419408.00048de566a1d21ca227f&hl=en&ie=UTF8&ll=-33.800779,150.959809&spn=0.005349,0.006437&z=16&output=embed"></iframe>

    which wont display in posts as far as I know, I dont know how (or if you can) allow that in post.
  • Options
    Found a way (but not tested in all browsers, just chrome)

    Using your maps iframe code, change 'iframe' to 'embed'

  • Options
    AoleeAolee Hobbyist & Coder ✭✭
    Found a way (but not tested in all browsers, just chrome)

    Using your maps iframe code, change 'iframe' to 'embed'

    ....

    cool!!!

  • Options
    Better still.. A new plugin called 'AllowRawFormat' by @Todd Burry
    will create a new permission to allow you to set permissions to allow the posting of raw html. This can be allowed or denied per userrole, and allows you posting iframes including google maps.

    Its Found here

    https://github.com/vanillaforums/Addons/tree/master/plugins

    Note: Requires: Vanilla Version 2.0.16
  • Options

    Is there any way to filter out all iframe-tags that are not beginning with "<iframe marginheight="0" marginwidth="0" src="http://maps.google" ?

    I would like to allow all my users to post raw html without the fear of troublemakers posting hazardous iframes...

  • Options
    422422 Developer MVP

    Htaccess Rewrite

    There was an error rendering this rich post.

Sign In or Register to comment.