Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Is possible sort discussions by alphabetical order?

edited January 2011 in Vanilla 2.0 - 2.8
Is possible sort discussions by alphabetical order?

Comments

  • edited January 2011
    Go to your config file (\conf\config.php) and add those two lines:

    $Configuration['Vanilla']['Discussions']['SortField'] = 'd.Name'; $Configuration['Vanilla']['Discussions']['SortDirection'] = 'asc';
  • Wait, does not work. just reversed the most recent to oldest.
  • edited January 2011
    Oh right, forgot that you also need to edit
    \applications\vanilla\models\class.discussionmodel.php.
    You have to comment out line 148 & line 149 like this:
    // if (!in_array($SortField, array('d.DateLastComment', 'd.DateInserted'))) // $SortField = 'd.DateLastComment';

    It should work then.
  • Thank you! works perfectly!
Sign In or Register to comment.