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.