Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Bugo on October 09, 2011, 01:48:36 PM

Title: Default Sort for Boards
Post by: Bugo on October 09, 2011, 01:48:36 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=3198)

You can set default sorting for any board: by subject, by topic starter, by last poster, by number replies, by number views, by first post, by last post.
Title: Re: Default Sort for Boards
Post by: 4Kstore on October 10, 2011, 06:17:40 AM
Nice mod! thanks :)
Title: Re: Default Sort for Boards - a request - order by calendar date
Post by: OCJ on October 10, 2011, 11:30:23 PM
Would be nice to order posts in the board view by their event calendar date... possible?
Andy
Title: Re: Default Sort for Boards
Post by: Bugo on October 11, 2011, 03:26:36 AM
All is possible. If you know how it make :)
Title: Re: Default Sort for Boards
Post by: FireDitto on October 11, 2011, 09:17:06 PM
The sort by Title doesn't appear to be working for me.

I have 2.0 and both the Topic Descriptions and Tags mods installed.

The other options appear to be working fine.
Title: Re: Default Sort for Boards
Post by: Bugo on October 12, 2011, 03:39:39 AM
Yes, it was a small bug. Try new version.
Title: Re: Default Sort for Boards
Post by: FireDitto on October 12, 2011, 06:06:15 AM
Oh, that works much better! Thanks =)


Would it be possible to adjust it slightly, so that the options available are sorted A-Z or Z-A? Ideally in an additional drop down under that, (with an "Up" and "Down" option). Do you know how I could go about this, or would you be willing to add it to the mod?
Title: Re: Default Sort for Boards
Post by: Bugo on October 12, 2011, 06:29:56 AM
Could you explain more?
Title: Re: Default Sort for Boards
Post by: FireDitto on October 12, 2011, 06:48:20 AM
You know when you sort a list, you have an A-Z option, or a Z-A option?

Well, for example, you have a "Sort by Topic" option... I was wondering if it would be possible to chose whether it sorts the topics starting a "A" or starting at "Z" (or "Up" and "Down"). I think it would be a useful little addition to the sorting options.

Does that make some more sense?
Title: Re: Default Sort for Boards
Post by: Bugo on October 12, 2011, 08:46:28 AM
It's unlikely I could do something like that...

But you can install this mod => http://www.simplemachines.org/community/index.php?topic=199770.msg3102768#msg3102768
Perhaps it is just what you need.
Title: Re: Default Sort for Boards
Post by: FireDitto on October 13, 2011, 04:28:28 AM
Bummer =(

But thanks; that should work very well =)
Title: Re: Default Sort for Boards
Post by: natasa (NT) on March 28, 2012, 06:55:35 AM

Hello Bugo, I searched for a while for mod like this.
It works fine on my test forum, but there is a bug or something like that when I try it on
my another forum - as soon as I installed it, it changed order of topic from Last post (default) to First post,
and I can't change that.
All other options are working, but can't put order of topics in Last post order.

I use SMF 2.0.1, and have installed next mods:

1.      Images On Board    3.0
/
3.    BBCode with style    1.4.3    
4.    Advanced Reputation System    1.8.3    
5.    Thumbnail Topic Mod    1.2    
/
7.    SimplePortal    2.3.3    
8.    PNG Message Icons    1.3.1    
9.    Float BBCODE    1.0.2    
10.    Quick Spoiler    0.9    
11.    BoardHover Mod    1.8.1    
/
13.    Tidy Child Boards    1.3    
14.    Ad Managment    3.0.1    
15.    Hide ip stuff for users    1.04
16.    Highslide 4 SMF    0.8

Any idea where problem is?
Title: Re: Default Sort for Boards
Post by: NanoSector on March 28, 2012, 11:27:55 AM
Very nice mod, I think this should be in SMF by default, lol.
Title: Re: Default Sort for Boards
Post by: Hoodie on May 12, 2012, 03:33:46 AM
So when I sort by First Post it is giving me the very first topic that was posted in that board.  Is there a way to sort the topics by first post (or better known as initial topic date) with the most recent topic on top?
Title: Re: Default Sort for Boards
Post by: gevv on November 16, 2012, 05:07:41 PM
hello,

SMF 2.0.2  problem

category setting By Last Post (Default)

the last post on the last page
Title: Re: Default Sort for Boards
Post by: rohu on January 18, 2013, 04:59:08 AM
Hi,

have the mod installed and set board sorting to be 'by subject'. topics in these boards are perfectly sorted now, but the prev/next links do not work this way. Do I miss something?

Example:
open forum:
             http://artwork-online.info/index.php (http://artwork-online.info/index.php)

open 1st board there:
             http://artwork-online.info/index.php?board=6.0 (http://artwork-online.info/index.php?board=6.0)

topic are perfectly sorted by subject, OK

open 1st topic there:
             http://artwork-online.info/index.php?topic=118.0 (http://artwork-online.info/index.php?topic=118.0)

#01 appears
click "next »"

I would expect that #02 will appear, but #40 (the last one) appears.

Link behind "next »" is
             http://artwork-online.info/index.php?topic=118.0;prev_next=next#new (http://artwork-online.info/index.php?topic=118.0;prev_next=next#new)

and this seems to be the reason, isn't it?

Is there anything I can do against this? I am not an expert in PHP programing.

Thanks!
Title: Re: Default Sort for Boards
Post by: Cat McFarlane on September 28, 2013, 02:08:07 AM
Thanks so much for this mod! Really helpful.  :)
Title: Re: Default Sort for Boards
Post by: diesy on December 16, 2013, 12:01:55 PM
I installed the mod yesterday and it is working beautifully.

However, today someone has pointed out to me that although in the particular board the sorting is working by their assigned criteria (i.e subject) but some how all the other boards are displaying "Oldest Post first". So I check the boards and they are set to "Last post (default)" but they are still showing the oldest post first.

Some help here would be awesome.. thanks
Title: Re: Default Sort for Boards
Post by: supernova777 on January 16, 2014, 09:20:06 PM
i too am having the same problem of this "last post" sort order being reversed + backwards

what is the fix?

please .. i need to keep this mod but this simply will not do to have it backwards

Bugo? why have u abandoned your project?
unfortunately ive had to make the decision to remove this brilliant mod because of this bug
if anyone can tell me how to solve.. i would appreciate it