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

How to keep the topics arranged by dates?

edited October 2010 in Vanilla 2.0 - 2.8
Every time people or user come to comment then new commented posts go top!
I don't want that.. I want to keep my forum organized by dates or time that I posted my topics... Please help me what to do to solve this problem!
Thank you and Happy Halloween

Comments

  • Yeah, this is a real annoyance with many forum projects, and some boards have huge discussions about hacks to change the sort order. A simple option in Vanilla 2 would be helpful. (Watch someone say "Just write a plugin"...)
  • MarkMark Vanilla Staff
    Patch here:

    http://github.com/vanillaforums/Garden/commit/63744ea9f1386289598f6a4f9334e8b6b7575f8b

    Once applied, you can change the sort field and direction like this:
    $Configuration['Vanilla']['Discussions']['SortField'] = 'd.DateInserted';
    $Configuration['Vanilla']['Discussions']['SortDirection'] = 'asc';
  • It goes that First Date Inserted goes top, Is there a way Last Date inserted goes to top plz?
  • MarkMark Vanilla Staff
    edited November 2010
    @Sephj - You can change the sort direction:
    $Configuration['Vanilla']['Discussions']['SortField'] = 'd.DateInserted';
    $Configuration['Vanilla']['Discussions']['SortDirection'] = 'desc';
Sign In or Register to comment.