We launched new forums in March 2019β€”join us there. In a hurry for help with your website? Get Help Now!
    • 25663 MODX Staff
    • 12,272 Posts
    It’s one of the display widgets on TVs. A bit of a mystery as to how exactly it works, but not too bad in a pinch wink
      Ryan Thrash, MODX Co-Founder
      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
      • 34162
      • 1 Posts
      Is there a sample on how to do that?

      Thanks
        • 25663 MODX Staff
        • 12,272 Posts
        Honestly your best, most reliable way to do it unfortunately is creating a custom theme for SMF.
          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
          • 7131
          • 83 Posts
          Once, I used a scalable iframe trick:

          Between <head> and </head>, add:

          <script type="text/javascript" language="JavaScript">
          <!--
          function calcHeight()
          {
             var the_height=document.getElementById('the_iframe').contentWindow.document.body.scrollHeight; //find the height of the internal page
             document.getElementById('the_iframe').style.height=the_height; //change the height of the iframe
          }
          //-->
          </script>


          Into the document:
          <iframe src="for_example/punbb/index.php" id="the_iframe" onLoad="calcHeight();" width="600px" height="1" name="the_iframe" scrolling="no" frameborder="0">If you see this text your browser didn't support iframes. so see the page click on at the fowllowing link. <a href="link to the forum" target="_blank">Forum</A></iframe>
            at the edge of dawn,
            you ask yourself if your shadow did follow you down
            all night long
            • 34162
            • 1 Posts
            It seems to only work in IE but not in FF until I make the height tall enough for the page then something show up.

            Thanks
              • 34162
              • 1 Posts
              Ok, I manage to use View Port to wrap SMF around. It is not very pretty right now but just my sandbox on proof of concept.

              http://www.chanh.blogdns.com/modx/WrapperSMF.html

              Please take a look and tell me what you think.

              Thanks
                • 32241
                • 1,495 Posts
                Call the snippet uncache [!snippet_name!], then refresh your site. wink
                  Wendy Novianto
                  [font=Verdana]PT DJAMOER Technology Media
                  [font=Verdana]Xituz Media
                  • 22221
                  • 283 Posts
                  Quote from: chanh at Feb 17, 2006, 02:50 PM

                  Ok, I manage to use View Port to wrap SMF around. It is not very pretty right now but just my sandbox on proof of concept.
                  http://www.chanh.blogdns.com/modx/WrapperSMF.html
                  Please take a look and tell me what you think.

                  Thanks
                  Nice integration of the SMF forum. Congratulation grin
                  Can you explain us how to reproduce it ?

                    • 28042 β˜† A M B β˜†
                    • 24,524 Posts
                    Odd, I got the "table blah blah does not exist" error in the main content area, refreshed the page and it loaded fine.
                      Studying MODX in the desert - http://sottwell.com
                      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                      Join the Slack Community - http://modx.org
                      • 4273
                      • 356 Posts
                      is it common for the iframe to break the template ? bottom of page is an inche of white space, only appears on the page where the wrapped url is
                        SMF Bookmark Mod - check it out
                        http://mods.simplemachines.org/index.php?mod=350