SimplePortal

Support => English Support => Topic started by: BuddahBoy on July 20, 2015, 11:42:44 AM

Title: Post order in Recent Posts block
Post by: BuddahBoy on July 20, 2015, 11:42:44 AM
Greetings - didn't find an answer to this so thought to ask here. 

The "Recent Posts" block lists in descending order and I'd like the list to be ascending and also to not be affected by replies - can you please give me some direction? 

Thank you,
Ron
Title: Re: Post order in Recent Posts block
Post by: [SiNaN] on July 20, 2015, 06:33:51 PM
Try the following change:

SSI.php

Code: (Find) [Select]
ORDER BY t.id_last_msg DESC
Code: (Replace) [Select]
ORDER BY t.id_topic
Title: Re: Post order in Recent Posts block
Post by: Burke Knight on July 21, 2015, 07:03:10 AM
Greetings - didn't find an answer to this so thought to ask here. 

and also to not be affected by replies - can you please give me some direction? 

Sounds like you should select Recent Topics instead of Recent Posts.
Title: Re: Post order in Recent Posts block
Post by: [SiNaN] on July 21, 2015, 08:08:42 AM
We have a single "recent" block which handles both posts and topics. However, the topic bit is more like recently updated topics and not recently created topics, as many people expect. The change above should change that along with the desired sort direction.
Title: Re: Post order in Recent Posts block
Post by: BuddahBoy on July 21, 2015, 10:48:01 AM
Thank you [SiNaN] - I did edit that file as you suggested but nothing changed in the listing.  I attach a screenshot showing the box contents - same per and post fix. 

Appreciate the assistance
Ron
Title: Re: Post order in Recent Posts block
Post by: [SiNaN] on July 21, 2015, 12:52:07 PM
You seem to be listing "posts" with that block indeed. If you want to list "posts" there, what do you mean by "also to not be affected by replies"? Can you try changing the "display" option of that block to "topics" by editing the block and see if that gives you want you want to achieve?
Title: Re: Post order in Recent Posts block
Post by: BuddahBoy on July 21, 2015, 01:45:51 PM
Thank you - tried that previous to the edit of the php file - did that again and it seems to work fine. 

Appreciate it mucho
Ron
Title: Re: Post order in Recent Posts block
Post by: [SiNaN] on July 21, 2015, 02:14:09 PM
Glad to hear that it worked fine. You're welcome! ;)
SimplePortal 2.3.8 © 2008-2024, SimplePortal