Advertisement:

Author Topic: Is there a right or easier way to create sticky order ?  (Read 743 times)

Offline SaltedWeb

  • Sr. Member
  • ****
  • Posts: 859
  • Gender: Male
  • The Tired One
Is there a right or easier way to create sticky order ?
« 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. 
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,732
    • Arantor on GitHub
Re: Is there a right or easier way to create sticky order ?
« Reply #1 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.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

Offline SaltedWeb

  • Sr. Member
  • ****
  • Posts: 859
  • Gender: Male
  • The Tired One
Re: Is there a right or easier way to create sticky order ?
« Reply #2 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.
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

Offline aegersz

  • Sophist Member
  • *****
  • Posts: 1,354
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: Is there a right or easier way to create sticky order ?
« Reply #3 on: January 19, 2018, 06:11:43 PM »
fyi ... someone made the Order Stickied Topics mod - it's very outdated and probably doesn't work ... just saying
Linux CentOS VPS running SMF 2.0 with 140+ mods installed (the full h/w and s/w can be seen at http://forum.drugs-and-users.org/index.php/topic,3301)

Online GL700Wing

  • Full Member
  • ***
  • Posts: 422
  • Gender: Female
Re: Is there a right or easier way to create sticky order ?
« Reply #4 on: January 19, 2018, 06:32:45 PM »
fyi ... someone made the Order Stickied Topics 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.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,732
    • Arantor on GitHub
Re: Is there a right or easier way to create sticky order ?
« Reply #5 on: January 19, 2018, 06:34:51 PM »
Mostly because it just presents an interface to the exact technique I referred to ;)
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

Offline SaltedWeb

  • Sr. Member
  • ****
  • Posts: 859
  • Gender: Male
  • The Tired One
Re: Is there a right or easier way to create sticky order ?
« Reply #6 on: January 19, 2018, 07:45:19 PM »
fyi ... someone made the Order Stickied Topics 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
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

Offline br360

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,218
    • GenXcommunity
Re: Is there a right or easier way to create sticky order ?
« Reply #7 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

Offline Steve

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,301
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Is there a right or easier way to create sticky order ?
« Reply #8 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.
Online Manual

Please do not PM me for support.

Offline SaltedWeb

  • Sr. Member
  • ****
  • Posts: 859
  • Gender: Male
  • The Tired One
Re: Is there a right or easier way to create sticky order ?
« Reply #9 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.
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

Offline aegersz

  • Sophist Member
  • *****
  • Posts: 1,354
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: Is there a right or easier way to create sticky order ?
« Reply #10 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) ?
Linux CentOS VPS running SMF 2.0 with 140+ mods installed (the full h/w and s/w can be seen at http://forum.drugs-and-users.org/index.php/topic,3301)

Offline br360

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,218
    • GenXcommunity
Re: Is there a right or easier way to create sticky order ?
« Reply #11 on: January 25, 2018, 12:29:05 PM »
Not sure if that is a mod he installed or he did custom coding himself

Offline SaltedWeb

  • Sr. Member
  • ****
  • Posts: 859
  • Gender: Male
  • The Tired One
Re: Is there a right or easier way to create sticky order ?
« Reply #12 on: January 25, 2018, 12:43:38 PM »
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

Offline br360

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,218
    • GenXcommunity
Re: Is there a right or easier way to create sticky order ?
« Reply #13 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

Offline aegersz

  • Sophist Member
  • *****
  • Posts: 1,354
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: Is there a right or easier way to create sticky order ?
« Reply #14 on: January 26, 2018, 05:53:24 PM »
that's the one !
Linux CentOS VPS running SMF 2.0 with 140+ mods installed (the full h/w and s/w can be seen at http://forum.drugs-and-users.org/index.php/topic,3301)