1

I fear I have the same challenge as a previous posters:

Embedding a Google Group - nothing is displayed when not logged into Google

and How to embed google groups to a web page

The first resolved, but the second unresolved.

Would like to embed a google-group forum into an html page. I am unable to do that following guidance provided by Google Groups using iframe:

<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/test-distance'
 + '&showsearch=true&showpopout=true&showtabs=false'
 + '&parenturl=' + encodeURIComponent(window.location.href);
</script> 

and successfully shown by http://www.jqcoolgallery.com/support.html. I can view this embedded forum, but when applying the same syntax in my html, I do not have success.

I have the same lack of success when viewing either in Firefox 27 or in Internet Explorer 11.

Community
  • 1
  • 1
Eric R.
  • 11
  • 1
  • 1
  • 3

2 Answers2

0

your example works fine for me, see this jsfiddle

complete example code below

<!DOCTYPE html>

<head>
  <title>Test</title>
</head>

<body>
<div>
  <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/test-distance'
 + '&showsearch=true&showpopout=true&showtabs=false'
 + '&parenturl=' + encodeURIComponent(window.location.href);
  </script>
  </div>

</body>
</html>

screenshot: enter image description here

Taifun
  • 6,165
  • 17
  • 60
  • 188
  • 2
    Attempted to use this code on my machine without success. Page loads without error but shows empty page without content. – Eric R. May 19 '14 at 08:35
  • [this page](http://puravidaapps.com/forum.php) uses the same code, does this work for you? Probably a browser problem? Which browser are you using? I just added a screenshot of the jsfidde how it looks like using Windows 7 and Chrome – Taifun May 19 '14 at 20:55
0
<iframe id="forum_embed" src="https://groups.google.com/forum/embed/?place=forum/NAMEOFYOURGROUP#!forum/NAMEOFYOURGROUP" scrolling="no" frameborder="0" width="100%" height="700"></iframe>

This will work for you as it did for me. Yes NAMEOFYOURGROUP appears twice on that iframe. Don't forget to change NAMEOFYOURGROUP to your group name.

Lock Down
  • 65
  • 9
  • This may have worked in the past, but as of 2021 Google Groups no longer supports embedding, at least not in this manner. – yoyo Aug 26 '21 at 17:58