We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4172
    • 5,888 Posts
    Here is an upgrade to this integration.
    Made some work to run vanilla as snippet.

    Some Instructions:

    1. Upload all files to folder /assets/snippets/vanilla
    2. use phpMyAdmin or heidisql and run /assets/snippets/vanilla/conf/MODx/install.sql
    3. create the Forum-Ressource with empty or blank Template and content: [!vanilla!]
    4. create snippet with content from assets/snippets/vanilla/vanilla.modxsnippet.php.txt
    5. modify this line: $vanilla_docid=xxx;
    6. Rename file /assets/snippets/vanilla/conf/database.php to databasetemp.php or something like that
    7. Rename file /assets/snippets/vanilla/conf/settings.php to settingstemp.php or something like that
    8. start Install at www.yourdomain.com/assets/snippets/vanilla/setup/
    9. use the same database as your modx , table-prefix: LUM_ as it is.
    10. modify /assets/snippets/vanilla/conf/database.php see databasetemp.php for example
    11. modify /assets/snippets/vanilla/conf/settings.php see settingstemp.php for example
    12. modify /assets/snippets/vanilla/conf/MODx/settings.php. I think you can do the modifications of conf/settings.php also do here.
    13. now you can call your forum-page. Also login with weblogin or webloginPE should work now.
    14. That all links work you need friendly-urls on and modify your .htaccess. Example see: /assets/snippets/vanilla/modx.htaccess
    15. change the value in field lum_RoleID in table modx_web_users to -> 4 for you to be a vanilla-admin.
    16. modify vanilla-templates. See example: /assets/snippets/vanilla/themes/modinnung <- this is my theme, copy or modify it to your needs
    The page is now created by vanilla, but you can insert modx-elements for example with
    echo ’{{vanilla_nav}}’;
    see for example: /modxinnung/menu.php oder modxinnung/head.php (echo $HeadString . ’{{vanilla_head_css_scripts}}</head>) for your own css-files from modx-chunk

    modified files, because ’global $Head’ did not work in modx:
    this is needed for admin-work like modifing Categories and Roles.
    /assets/snippets/vanilla/appg/init_vanilla.php ->$GLOBALS[’vanillahead’]= &$Head;//by Bruno
    /assets/snippets/vanilla/library/Vanilla/Vanilla.Control.CategoryForm.php ->$Head= &$GLOBALS[’vanillahead’];//added by Bruno
    /assets/snippets/vanilla/library/People/People.Control.RoleForm.php ->$Head= &$GLOBALS[’vanillahead’];//added by Bruno

    perhaps someone finds it usefull.
      -------------------------------

      you can buy me a beer, if you like MIGX

      http://webcmsolutions.de/migx.html

      Thanks!
      • 26931
      • 2,314 Posts
      wow smiley thanks for sharing Bruno!

      perhaps someone finds it usefull.
      well, that’s for sure
        • 22840
        • 1,572 Posts
        Great, thanks for sharing grin

        is there a working example of this ??
          • 4172
          • 5,888 Posts
          working examples are here:
          http://bruno.tattoocms.de/Forum.html
          but there is no registration-form at this time
          http://www.rgmarktheidenfeld.de/forum.html
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 23605
            • 16 Posts
            Nice work. Thanks for sharing.
              Never give up. You can do it.
              • 20413
              • 2,877 Posts
              THANKS for sharing!! smiley
                @hawproductions | http://mrhaw.com/

                Infograph: MODX Advanced Install in 7 steps:
                http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

                Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
                http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
                • 11055 ☆ A M B ☆
                • 3,112 Posts
                Holy Cow!

                MODx’s New-Add-On Developer of The Month!
                  Rico
                  Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                  MODx is great, but knowing how to use it well makes it perfect!

                  www.virtudraft.com

                  Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                  Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                  Maintainter/contributor of Babel

                  Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
                  • 16483
                  • 1 Posts
                  Hi Bruno, I’ve followed your instructions to the letter but I’m getting this error when I visit the forum page when Im logged in:

                  An error occurred while attempting to retrieve the requested user.
                  Affected Elements
                  UserManager.GetSessionDataById();
                  The error occurred on or near: Table ’interne_modx.LUM_web_user_attributes’ doesn’t exist


                  Only thing different on my installation is I dont use a prefix on my modx db tables.

                  Good skills on the mod by the way. smiley
                    • 4172
                    • 5,888 Posts
                    Hi Kush,
                    normally you should never come to this line. Try to log out. Clear all caches and login again.

                    You can also try to change in assets/snippets/vanilla/library/MODx/MODx.Class.Authenticator.php
                    line about 124. there is no table-prefix for function-call:
                    $s->SetMainTable('UserExt', 'usr',MODX_TABLE_PREFIX);
                      -------------------------------

                      you can buy me a beer, if you like MIGX

                      http://webcmsolutions.de/migx.html

                      Thanks!
                      • 19298
                      • 76 Posts
                      MichaelHarringtonDesigns Reply #10, 16 years, 7 months ago
                      Hi Bruno

                      Thanks for these instructions.

                      I have installed vanilla 2, do you know the changes to the instructions above to allow Vanilla 2 to integrate with the Modx snippet?