Post order

Started by confusion, July 20, 2005, 10:09:43 AM

Previous topic - Next topic

confusion

I'm not sure if this is a feature request or a support request, but I'm looking for a way to change the default post sort order on a particular board to be sorted by the time/date that the topics were created in.

Thanks much!

Ben_S

Liverpool FC Forum with 14 million+ posts.

confusion

I think I found the one you're referring to: "board sort default".  Sadly, it's not compatible with anything later than 1.0.3. 

Ben_S

Have you tried installing it?
Liverpool FC Forum with 14 million+ posts.

confusion

I have.  After I click the "apply mod" button, I get a series of tests, one of which fails:
3. Execute Modification ./Sources/Load.php Test failed

all of the others pass.  I looked at the xml code that defines the mods to Load.php and the code it is searching for doesn't exist in Load.php.  I'm guessing that some big changes were made to that part of the code between 1.0.3 and 1.1 beta 3

confusion

I hacked at it a bit, and I tihnk that there were some fundamental changes that render the board default sort incompatible with 1.1.  I didn't get too much into it though.  It does look like the developers of SMF are moving in the direction of having native support for the "board default sort" type functionality.

In the interim, you can get the same result by doing the following:
Edit Source/MessageIndex.php
Search for the line: "Make sure the starting place makes sense and"
After that line, insert the following:
if ($board == BOARDID)
{
if (!isset($_REQUEST['sort']))
$_REQUEST['sort'] = 'first_post';
if (!isset($_REQUEST['asc']))
$_REQUEST['desc'] = '';
}
Where BOARDID is, well, the board ID number.



Advertisement: