Option to push locked threads to bottom of list

Started by orange, February 08, 2004, 01:25:39 PM

Previous topic - Next topic

orange

What I'd like is a per-board option to change the message index order so that locked threads come below open threads.

ie the message index is currently:
Sticky threads (by date)
Other threads (by date)

I'd like an option to set a forum to be:
Sticky threads (by date)
Open threads (by date)
Locked threads (by date)

I've hacked YSE to do this and I'm sure it would be a fairly simple hack to SMF too, but it would be nicer to have it as a built-in option.

In case you're wondering why I'd need this, it's for a forum which holds weekly competitions - once a competition is finished its thread gets locked which sends it to the bottom of the list, out of the way.

Anguz

#1
I can see your logic, although I'd probably create a child board for finished competitions, ordered by date started with newer topics first, and move them there :)
Cristián Lávaque http://cristianlavaque.com

Acf

still... it would be a cool feature to kick all the stuppid locked topics to the bottem of a boards hell hole :P
Sigh...

Spaceman-Spiff

it can be done with a little code change, just like the sticky topics...

Anguz

#4
yeah, I don't think it's complicated, it's just that there are locked topics -most of them- that I do want people to have present so they read them, but not sticked, which wouldn't happen if moved to the end... but some would use it

rather, I'd leave the "lock" property alone and create a new one, like "stick" but on the other end... I guess "sink" would probably be a good name
Cristián Lávaque http://cristianlavaque.com

orange

Well yeah, it wouldn't be right for everyone - but to have it as an option on a forum-per-forum basis would be very handy. The code change is very simple as you say - just a change to the ORDER BY clause of the message index Select query.

dog747


Ncen

Sorry about writing in this old topic. I would like my locked topics to be in another table or something like that, so that they're still in the board. If this table could be collapsable that would be great, i guess i have to use if & else for this to work? Does anyone have a could example? or something like that?

Advertisement: