Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Working Integration with PostNuke
This discussion has been closed.
Comments
You're bang on about having to move joins before selects. I also found that I had done a bunch of kludges throughout the application where I had done things like:
AddJoin('u', 'UserID', 'd', "AuthUserID and Active = '1'", "inner join");
The "AuthuserID and Active = '1'" was the offending code, and I had to move that code out of there in order to get it to work. I also had to change every single AddWhere in the application to use the TableAliases specified in the AddJoins and SetMainTable so that it would know what to rename the Param1 and Param2 in the AddWhere method. *That* was the biggest pain in the ass for sure.
Here are the highlights:
Table & Column Definitions:
http://lussumo.com/svn/vanilla/trunk/appg/database.php
Add the definitions to the content:
http://lussumo.com/svn/vanilla/trunk/appg/init_vanilla.php
Added a GetTableName function to the Framework:
http://lussumo.com/svn/framework/trunk/Framework.Functions.php
Altered the SqlBuilder object to reference the DatabaseTables and DatabaseColumns arrays:
http://lussumo.com/svn/framework/trunk/Framework.Class.SqlBuilder.php