Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Ursa Minor

    (@ursa-minor)

    I mean embedding the whole Google Group through an iframe. The code is listed on the group admin page but it doesn’t work in wp.

    Moderator cubecolour

    (@numeeja)

    Thread Starter Ursa Minor

    (@ursa-minor)

    Hmm… Nope, I’ve tried it, doesn’t work.

    This is the code I get from google groups:

    <iframe id="forum_embed"
      src="javascript:void(0)"
      scrolling="no"
      frameborder="0"
      width="900"
      height="700">
    </iframe>
    <script type="text/javascript">
      document.getElementById('forum_embed').src =
         'https://groups.google.com/forum/embed/?place=forum/NAMEOFMYFORUM'
         + '&showsearch=true&showpopout=true&showtabs=false'
         + '&parenturl=' + encodeURIComponent(window.location.href);
    </script>

    And this is the error message I get:

    This gadget has not been configured with a group to display, and no content has been selected. Please check the gadget configuration or the link that you followed to get here.

    Hi, i had a similar problem, and I think there are several issues:
    1) A line break even in the HTML editor for WP translates to a tag.
    2) You can’t put a script tag in the WP editor.
    3) You may not have replaced NAMEOFMYFORUM with the name of your forum.

    The following code worked for me:

    <iframe id="forum_embed" src="https://groups.google.com/forum/embed/?place=forum/NAMEOFMYFORUM#!forum/NAMEOFMYFORUM" scrolling="no" frameborder="0" width="100%" height="700"></iframe>

    (And yes, NAMEOFMYFORUM appears twice in the URL)

    Thank you @nudeagain you are a star! ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Does anyone know how to embed a Google Group iframe into a wp page?’ is closed to new replies.