Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: SaltedWeb on January 19, 2018, 05:33:46 PM

Title: Is there a right or easier way to create sticky order ?
Post by: SaltedWeb on January 19, 2018, 05:33:46 PM
I have a couple of boards that have sticky posts that I need in order. To be some directions format so would want then to be posted in the order I need them.  Like 1 2 3 4 5 etc. However when you create a topic it goes in order created making it the opposite I need by having the beginning of the directions at the bottom and ending at the top. I don't want to change the whole forum just a couple of board topic I presume I could go thru and edit the first last after they are all up but what a pain and I have several boards to do like this.  Thanks for any idea.  PS yes there is a sticky mod but appears not to function well in 2.0.15 installs fine but doesn't correct order so looking for a way to do post like that. 
Title: Re: Is there a right or easier way to create sticky order ?
Post by: Arantor on January 19, 2018, 05:44:14 PM
There is no stock way to do it in SMF, mostly because the sort of thing you're trying to do is pretty discouraged as users can reorder the board listing at their leisure.

However if you wanted to guarantee the order worked the way you wanted it, you could edit the smf_topics table and change the is_sticky values. As long as they're all > 0 it should function the same and order them highest number to lowest, so if you have 5 topics, the first one should be 5, the second 4 until you get to the fifth topic being 1.

It might get hairy if ever unstickied and stickied again but can't prevent that sort of shenanigan without code change.
Title: Re: Is there a right or easier way to create sticky order ?
Post by: SaltedWeb on January 19, 2018, 06:10:25 PM
There is no stock way to do it in SMF, mostly because the sort of thing you're trying to do is pretty discouraged as users can reorder the board listing at their leisure.

However if you wanted to guarantee the order worked the way you wanted it, you could edit the smf_topics table and change the is_sticky values. As long as they're all > 0 it should function the same and order them highest number to lowest, so if you have 5 topics, the first one should be 5, the second 4 until you get to the fifth topic being 1.

It might get hairy if ever unstickied and stickied again but can't prevent that sort of shenanigan without code change.

Appreciate that, me thinks just listing them back asward might take a bit more time but would leave things intact.
I'll consider it solved, sometimes helps to have another person weigh in, thanks again.
Title: Re: Is there a right or easier way to create sticky order ?
Post by: aegersz on January 19, 2018, 06:11:43 PM
fyi ... someone made the Order Stickied Topics (http://custom.simplemachines.org/mods/index.php?mod=1321) mod - it's very outdated and probably doesn't work ... just saying
Title: Re: Is there a right or easier way to create sticky order ?
Post by: GL700Wing on January 19, 2018, 06:32:45 PM
fyi ... someone made the Order Stickied Topics (http://custom.simplemachines.org/mods/index.php?mod=1321) mod - it's very outdated and probably doesn't work ... just saying
I use this mod on all my SMF 2.0.15 forums and it works perfectly.
Title: Re: Is there a right or easier way to create sticky order ?
Post by: Arantor on January 19, 2018, 06:34:51 PM
Mostly because it just presents an interface to the exact technique I referred to ;)
Title: Re: Is there a right or easier way to create sticky order ?
Post by: SaltedWeb on January 19, 2018, 07:45:19 PM
fyi ... someone made the Order Stickied Topics (http://custom.simplemachines.org/mods/index.php?mod=1321) mod - it's very outdated and probably doesn't work ... just saying
I use this mod on all my SMF 2.0.15 forums and it works perfectly.

Hmm I didn't have success with it doing anything. It didn't cause any errors when installed but didnt changes anything when saved.
 I may dabble with it a bit
Title: Re: Is there a right or easier way to create sticky order ?
Post by: br360 on January 19, 2018, 08:29:23 PM
You can try this one too- http://custom.simplemachines.org/mods/index.php?mod=3425

That one should definitely work om 2.0.15
Title: Re: Is there a right or easier way to create sticky order ?
Post by: Steve on January 20, 2018, 08:56:33 AM
The one br360 posted is the one I've been using for a long time.

It does have one quirk in that when you want to unsticky something, you have to do it twice.
Title: Re: Is there a right or easier way to create sticky order ?
Post by: SaltedWeb on January 20, 2018, 05:36:48 PM
The one br360 posted is the one I've been using for a long time.

It does have one quirk in that when you want to unsticky something, you have to do it twice.

Edit: OK I figured it out the Mod is so simple I was over thinking it seems to work just fine.
I was able to just effect the stickies and being I do not allow members to sticky for me this is acceptable.

Thanks you all for the help.
Title: Re: Is there a right or easier way to create sticky order ?
Post by: aegersz on January 25, 2018, 05:56:13 AM
You can try this one too- http://custom.simplemachines.org/mods/index.php?mod=3425

That one should definitely work om 2.0.15

the first link takes you to an unusual SMF page with yellow highlighting embedded - do you know what formats that (Replies/Views) ?
Title: Re: Is there a right or easier way to create sticky order ?
Post by: br360 on January 25, 2018, 12:29:05 PM
Not sure if that is a mod he installed or he did custom coding himself
Title: Re: Is there a right or easier way to create sticky order ?
Post by: SaltedWeb on January 25, 2018, 12:43:38 PM
It was a mod I installed :

https://custom.simplemachines.org/mods/index.php?mod=3425 (https://custom.simplemachines.org/mods/index.php?mod=3425)
Title: Re: Is there a right or easier way to create sticky order ?
Post by: br360 on January 25, 2018, 12:44:58 PM
I could be wrong, but I think he is talking about this link with the highlighting- http://smf2.maestrosite.ru/index.php/board,2.0.html
Title: Re: Is there a right or easier way to create sticky order ?
Post by: aegersz on January 26, 2018, 05:53:24 PM
that's the one !