Simple Machines Community Forum

SMF Development => Feature Requests => Applied or Declined Requests => Aiheen aloitti: dagomar - elokuu 18, 2006, 10:54:35 AP

Otsikko: Order of replies inside a post
Kirjoitti: dagomar - elokuu 18, 2006, 10:54:35 AP
I am not sure whether this exists, i couldn't find it anywhere! I would like to be able to sort the order of replies inside a topic. So that the latest reply is the first you see when you enter a topic. Simple really.

I am sorry if this is already possible, then would someone be so kind to say me how to do it?
Or perhaps there is already a Mod for this, if so, i didn't find it, then please tell me which and where :)
If there is no option and Mod to do this, then i will try to hack the original code.
In that case, perhaps someone could give me a pointer to where to start? :)

PS is it me or is the SMF site extremely slow?
PS2 I am new to SMF (sorry) and I am using 1.1RC2

greetings! dago
Otsikko: Re: Order of replies inside a post
Kirjoitti: dagomar - elokuu 18, 2006, 11:29:38 AP
Well after painstakingly searching I found out that it is possible to change this in your personal profile. However it is not possible to set this as a default is it??
Otsikko: Re: Order of replies inside a post
Kirjoitti: dagomar - elokuu 18, 2006, 12:43:16 IP
Well, I found a hack! The reason I wanted this is because I am changing forums, and on the old forum all the messages were sorted this way.

The hack is:

SMF folder > Sources > Display.php

find the line that says:
ORDER BY ID_MSG" . (empty($options['view_newest_first']) ? '' : ' DESC'), __FILE__, __LINE__);
and change it to
ORDER BY ID_MSG" . (($options['view_newest_first']) ? '' : ' DESC'), __FILE__, __LINE__);

This will basically turn around the option in the user profile, users now have to choose to have the oldest reply first. Its not my preferred solution, but it works.
Otsikko: Re: Order of replies inside a post
Kirjoitti: xenovanis - elokuu 18, 2006, 02:39:31 IP
Or you can change the default settings in Admin -> Themes and Layout -> Reset Options.
Otsikko: Re: Order of replies inside a post
Kirjoitti: dagomar - elokuu 19, 2006, 03:37:30 IP
Lainaus käyttäjältä: xenovanis - elokuu 18, 2006, 02:39:31 IP
Or you can change the default settings in Admin -> Themes and Layout -> Reset Options.

Hey, thanks for reply. That's exactly what i was looking for!! THANKS!!!!!