Subjects order

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
Hervé
Registered User
Posts: 562
Joined: Tue Jun 04, 2019 7:51 am
Location: Belgium
Name: Rudy

Subjects order

Post by Hervé »

Hi,
By default, topics are sorted in chronological order of their creation.
Members are writing a series of articles that should have a logical sequence independent of the time they are written, each article will go into a separate topic.
Is there a way or a trick to sort them differently without artificially changing their date ?
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3886
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay

Re: Subjects order

Post by Kailey »

Topics in viewforum are by default sorted by last reply
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules
If you have any questions about the rules/customs of this website, feel free to send me a PM.

My little corner of the world | Administrator @ phpBB Modders
Hervé
Registered User
Posts: 562
Joined: Tue Jun 04, 2019 7:51 am
Location: Belgium
Name: Rudy

Re: Subjects order

Post by Hervé »

Yes for instance, but without doing anything else they will still be sorted by last message date/time order (not by creation date basis as I wrote).
User avatar
KevC
Support Team Member
Support Team Member
Posts: 72560
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK

Re: Subjects order

Post by KevC »

This maybe?
https://www.phpbb.com/customise/db/exte ... rt_topics/
Topics ordering list by 'Created time'
Note: it's written for 3.2.x but according to a reply in the support page it works on 3.3.7 so worth trying on a test installation first.
-:|:- Support Request Template -:|:-
Image
"Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb"
Hervé
Registered User
Posts: 562
Joined: Tue Jun 04, 2019 7:51 am
Location: Belgium
Name: Rudy

Re: Subjects order

Post by Hervé »

Exactly, works as expected on 3.3.13, thanks a lot.
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6290
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: Subjects order

Post by thecoalman »

You can have them prefix subject with 003-02 or 00001-003-02,

00001 = user id
003 = Article ID
02 = chapter.

You need to keep the 0's. Then you can sort by subject, it's icon down the bottom next to "New topic" it would also be useful for finding specific article using search.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
Hervé
Registered User
Posts: 562
Joined: Tue Jun 04, 2019 7:51 am
Location: Belgium
Name: Rudy

Re: Subjects order

Post by Hervé »

I understand for the numbering, for test purposes I have simply used 1, 2, 3, ... but they will be arranged into chapters.
thecoalman wrote: Wed Oct 02, 2024 4:32 pm it's icon down the bottom next to "New topic" it would also be useful for finding specific article using search.
I don't see an down icon, perhaps because I don't allow members to modify the order.
I don't understand what you mean with your last sentence.
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6290
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: Subjects order

Post by thecoalman »

Hervé wrote: Wed Oct 02, 2024 4:38 pm for test purposes I have simply used 1, 2, 3, ... but they will be arranged into chapters.
You need to use a 0 otherwise chapter 13 will come before chapter 3 when ordering by subject.

You also need a "book" id then they will be ordered by book and chapter. 0001-03 (book id- chapter id)

The user ID would be optional but then each user can assign their own book ID. 00001-0001-03 (user id - book id- chapter id)

When ordering by subject you'll end up with:

00001-0001-01 Any text
00001-0001-02 Any text
00001-0001-03 Any text
00001-0002-01 Any text
00001-0002-02 Any text
00002-0001-01 Any text
00002-0001-02 Any text

At least that is the way I would expect it to work :D



I don't see an down icon, perhaps because I don't allow members to modify the order.
This will only work if the user can sort by subject , an extension does it or you modify the code.

I don't understand what you mean with your last sentence.
Using search you'll be able to search for the specific "book". Useful if you have hundreds of books/chapters.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
Hervé
Registered User
Posts: 562
Joined: Tue Jun 04, 2019 7:51 am
Location: Belgium
Name: Rudy

Re: Subjects order

Post by Hervé »

Hervé wrote: Wed Oct 02, 2024 4:38 pmI understand for the numbering, for test purposes I have simply used 1, 2, 3, ... but they will be arranged into chapters.
... with leading zeroes, or
A01
A02
A03
B01
...
Hervé
Registered User
Posts: 562
Joined: Tue Jun 04, 2019 7:51 am
Location: Belgium
Name: Rudy

Re: Subjects order

Post by Hervé »

thecoalman wrote: Wed Oct 02, 2024 7:09 pm
Hervé wrote: Wed Oct 02, 2024 4:38 pmI don't see an down icon, perhaps because I don't allow members to modify the order.
This will only work if the user can sort by subject , an extension does it or you modify the code.
I use now the extension https://www.phpbb.com/customise/db/exte ... rt_topics/ so I can order subjects by titles only in one forum, that's what I wanted, I don't want users to be able to sort them otherwise, so everything is all right.

This subject is solved and may be closed, thanks again to KevC.

Return to “[3.3.x] Support Forum”