We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25803 ☆ A M B ☆
    • 721 Posts
    Hello,

    At times we use MachForm to embed forms that clients can build themselves.

    We followed this tutorial: http://rtfm.modx.com/revolution/2.x/developing-in-modx/advanced-development/custom-manager-pages/custom-manager-pages-tutorial

    And in 2.2.0 to 2.2.13 it worked fine. Our index file in core/components/machform is:

    <?php
    /**
     * MachForm Integration
     *
     * Copyright 2011 by collaborative.media <[email protected]>
     *
     * This file is part of MachForm Integration, a way to login to MachFrom from the MODx Manager.
     *
     */
    return '<iframe src="http://www.whatever.com/builder/index.php" style="width:100%;height:100%;border:0;"></iframe>';
    ?>
    


    When users selected the "Form Builder" menu under components the application's login screen would show right of the Resource/Elements/File panel and below the main menu.

    But when we upgraded from 2.2.13 to 2.2.14/.15./.16 it still shows, but the height of the iframe is no longer respected (it's about 265px high) or the iframe is being displayed in an area that is only this height.

    I have no idea how to fix this. See attached screen shot.
      • 19328
      • 433 Posts
      Hi,

      I was looking for a Machform MODX intergration and saw your post. It got it working again with this code. Only the vertical scrollbar is not behaving very good, and there is no horizontal scrollbar.

      <?php
      return'<iframe src="http://www.domain.com/machform/manage_forms.php" frameborder="0" scolling="yes" style="display:block;height:100vh;width:100%;"></iframe>';
      ?>


      But when I log in into Machform within the MODX-manager, I get logged out from the MODX-manager. After logging in, I'm logged out from Machform. How did you managed to get rid of this problem? [ed. note: michelle84 last edited this post 10 years, 10 months ago.]