ElkArte Community

Elk Development => Feature Discussion => Topic started by: radu81 on March 29, 2017, 06:24:24 pm

Title: Show most recent posts at the top
Post by: radu81 on March 29, 2017, 06:24:24 pm
In SMF, under Pofile > Look and Layout there is an option Show most recent posts at the top.
I cannot find it into elkarte, was removed? It hasn't much sense to exist, but a member just asked about this and wanted to know if is still available or not.

http://www.simplemachines.org/community/index.php?topic=141179.0
Title: Re: Show most recent posts at the top
Post by: Antechinus on March 29, 2017, 06:38:01 pm
It's easy to do on a custom basis anyway. Simply a matter of shifting one chunk of PHP. Could easily turn it into a mod too.

TBH I find having them at the top makes more sense, because guests don't get unread indicators and will often want the most recent content. Come to think of it, logged in members often want the most recent content too, so even though they do get the new posts function IMO it still doesn't make a lot of sense for recent posts to be at the bottom. :)
Title: Re: Show most recent posts at the top
Post by: radu81 on March 29, 2017, 06:53:01 pm
You are right, but is not such a requested option, only one member asked for it in the last 2 years.

Most forums are acting like elkarte, so people which already used forums expect to see the last post at the bottom. Once I landed on a SMF forum which had this option turned on for guests, and after a couple of pages of reading without much sense I noticed the date and this "strange" behaviour. :)
Title: Re: Show most recent posts at the top
Post by: ahrasis on March 29, 2017, 09:44:38 pm
I thought we already have this as an addon somewhere?
Title: Re: Show most recent posts at the top
Post by: Antechinus on March 29, 2017, 10:04:42 pm
Not that I can see. It'd be an easy one though.
Title: Re: Show most recent posts at the top
Post by: ahrasis on March 30, 2017, 04:08:44 am
The post below has an addon attached and also link to my suggested edit before it.
Edited. My bad. The above is for the whole forum. And it is certainly not what you are looking for.
Title: Re: Show most recent posts at the top
Post by: radu81 on March 30, 2017, 05:03:44 am
@ahrasis‍ I am afraid that addon has nothing to do with what I asked here
Title: Re: Show most recent posts at the top
Post by: ahrasis on March 30, 2017, 05:05:14 am
I already noted that when I edited the reply.
Title: Re: Show most recent posts at the top
Post by: emanuele on March 30, 2017, 07:27:12 am
Quote from: radu81 – In SMF, under Pofile > Look and Layout there is an option Show most recent posts at the top.
I cannot find it into elkarte, was removed? It hasn't much sense to exist, but a member just asked about this and wanted to know if is still available or not.
It was removed 3 years ago and never replaced.
The changes to the code (to remove it) are:
https://github.com/elkarte/Elkarte/commit/d2f3fd01083d9b0fa75b4aaa24e410dcdd130728
if you want to reimplement it, you can just revert them (i.e. search for the green bits and replace them with the corresponding red ones).

I'm not a fan of it, actually, I find it meaningful in PMs (and only because they are not really a very good discussion system anyway and people are used to read emails backwards), but not in normal discussions.
Title: Re: Show most recent posts at the top
Post by: Antechinus on March 30, 2017, 07:49:19 am
Oh you're talking about upside down threads. I thought you were talking about the recent posts list in the info centre. :P
Title: Re: Show most recent posts at the top
Post by: radu81 on March 30, 2017, 08:41:25 am
Thanks for the info Emanuele, I prefer keep things simple, so I will not edit the files. If in the future more users will ask for this feature I will do it.
Title: Re: Show most recent posts at the top
Post by: emanuele on March 30, 2017, 03:44:37 pm
Well, the code is there, if anyone wants to put ad addon together is just a matter of testing it a bit. :)
Title: Re: Show most recent posts at the top
Post by: radu81 on March 30, 2017, 04:14:52 pm
Do not waste time on this since lacks interest.  ;) I opened this topic just to be sure it was removed or not. Thanks
Title: Re: Show most recent posts at the top
Post by: emanuele on April 07, 2017, 05:43:14 pm
The simple fix I proposed is:
https://github.com/emanuele45/Dialogo/commit/179bafc5936e2bf92e7973133fc7c55bd985edbf
and it's live here.
Title: Re: Show most recent posts at the top
Post by: radu81 on April 07, 2017, 07:08:22 pm
are you sure this is related to posts order and not to privacy of custom fields?  ;)
Title: Re: Show most recent posts at the top
Post by: emanuele on April 08, 2017, 07:49:02 am
Darn.  :-X

Where is it the other one?
Title: Re: Show most recent posts at the top
Post by: radu81 on April 08, 2017, 08:31:13 am
It's here http://www.elkarte.net/community/index.php?topic=4391