Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

Order of replies inside a post

Aloittaja dagomar, elokuu 18, 2006, 10:54:35 AP

« edellinen - seuraava »

dagomar

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

dagomar

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??

dagomar

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.

xenovanis

Or you can change the default settings in Admin -> Themes and Layout -> Reset Options.
"Insanity: doing the same thing over and over again and expecting different results."

dagomar

#4
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!!!!!

Advertisement: