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.
Options

Is possible sort discussions by alphabetical order?

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

Comments

  • Options
    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';
  • Options
    Thanks! :)
  • Options
    Wait, does not work. just reversed the most recent to oldest.
  • Options
    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.
  • Options
    Thank you! works perfectly!
Sign In or Register to comment.