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


  • 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:

    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.