Advertisement:

Author Topic: Reverse order of login time  (Read 694 times)

Offline skb

  • Jr. Member
  • **
  • Posts: 347
    • Metabolically Challenged
Reverse order of login time
« on: April 11, 2019, 03:05:31 AM »
Is it possible to reverse the order of time period when logging in ?
 
Learning, every day.
Forum - The Diabetic Pub
Because every diabetic needs help
SMF 2.1 RC2 (default theme) / TP 1.6.2

Offline Sesquipedalian

  • The Mad Doctor
  • On Hiatus
  • Sr. Member
  • *
  • Posts: 908
  • Gender: Male
  • It works! ... in theory.
    • Sesquipedalian on GitHub
Re: Reverse order of login time
« Reply #1 on: April 11, 2019, 04:22:26 AM »
Possible? Sure. But only by modifying the code. There's no user friendly way at this time.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

Offline Sesquipedalian

  • The Mad Doctor
  • On Hiatus
  • Sr. Member
  • *
  • Posts: 908
  • Gender: Male
  • It works! ... in theory.
    • Sesquipedalian on GitHub
Re: Reverse order of login time
« Reply #2 on: April 11, 2019, 04:30:47 AM »
For my own part, I'd prefer to see the "Always stay logged in" option at the top and then the rest of the options in their current order below that.

Honestly, I would rather replace the whole thing with a simple "Remember me" check box, but that idea is known to provoke heated debate.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,228
    • StoryBB/StoryBB on GitHub
Re: Reverse order of login time
« Reply #3 on: April 11, 2019, 04:56:56 AM »
Honestly I’d simplify this away to just having “always stay logged in” as a tickbox or have the cookie last for the session. That’s a little trickier to do but I can point you in the direction of what would need changing to make that a thing.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Online SychO

  • Lead Customizer
  • SMF Hero
  • *
  • Posts: 1,414
  • Gender: Male
    • SychO9 on GitHub
    • SychO
Re: Reverse order of login time
« Reply #4 on: April 11, 2019, 04:59:54 AM »
a checkbox would indeed be much better

Imazighen

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,228
    • StoryBB/StoryBB on GitHub
Re: Reverse order of login time
« Reply #5 on: April 11, 2019, 05:01:46 AM »
https://github.com/StoryBB/StoryBB/pull/693/files The changes I made but note that mine is a very different repo now... still the core of the changes would cover most things.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline skb

  • Jr. Member
  • **
  • Posts: 347
    • Metabolically Challenged
Re: Reverse order of login time
« Reply #6 on: April 11, 2019, 05:52:47 AM »
For my own part, I'd prefer to see the "Always stay logged in" option at the top and then the rest of the options in their current order below that.

That was exactly what I had in mind. Always stay logged in as the default,

https://github.com/StoryBB/StoryBB/pull/693/files The changes I made but note that mine is a very different repo now... still the core of the changes would cover most things.

Thanks Arantor. This is beyond my capabilities. I'll wait for another day.
Learning, every day.
Forum - The Diabetic Pub
Because every diabetic needs help
SMF 2.1 RC2 (default theme) / TP 1.6.2

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,656
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: Reverse order of login time
« Reply #7 on: April 11, 2019, 08:36:34 AM »
Never understood the importance of having the end user choose. I usually remove it, and "<input hidden" the 'always stay logged in' option. If someone wants to be forgotten, they log out, plain and simple.

If you're interested in that, let me know

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,228
    • StoryBB/StoryBB on GitHub
Re: Reverse order of login time
« Reply #8 on: April 11, 2019, 08:52:39 AM »
The trick is, it really isn’t quite that simple with SMF’s architecture, especially on the occasions SMF will rebuild the cookie that aren’t directly attached to login.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline skb

  • Jr. Member
  • **
  • Posts: 347
    • Metabolically Challenged
Re: Reverse order of login time
« Reply #9 on: April 11, 2019, 04:38:03 PM »
If you're interested in that, let me know

Thanks, but we would like the options. Only the Always logged in should be the default.

@Arantor, I couldn't locate the ".hbs" files or the templates folder. If the rest of the changes are made, will that do.
Learning, every day.
Forum - The Diabetic Pub
Because every diabetic needs help
SMF 2.1 RC2 (default theme) / TP 1.6.2

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,152
Re: Reverse order of login time
« Reply #10 on: April 11, 2019, 04:53:37 PM »
Have never understood why there's the options.  On all my production forums I've always removed it and set cookielength to -1.  It's never caused a problem, and no one has ever complained.

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,656
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: Reverse order of login time
« Reply #11 on: April 11, 2019, 05:45:02 PM »
It's like our minds are connected via telekinesis.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,330
  • Gender: Male
    • Kindred-999 on GitHub
Re: Reverse order of login time
« Reply #12 on: April 11, 2019, 09:41:06 PM »
Ummmm... wrong word.
Tele kinesis is moving something without touching it
Tele pathy is communication across distance -- in common usage,  communication mind to mind
Clairvoyance is seeing without physical presence
Clairaudeince is hearing without physical presence
Precognition is knowledge before  happening

Etc etc etc
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,228
    • StoryBB/StoryBB on GitHub
Re: Reverse order of login time
« Reply #13 on: April 12, 2019, 02:12:23 AM »
If you're interested in that, let me know

Thanks, but we would like the options. Only the Always logged in should be the default.

@Arantor, I couldn't locate the ".hbs" files or the templates folder. If the rest of the changes are made, will that do.

Of course you won’t be able to find the hbs files, since this is my fork of SMF that totally replaced the entire template system with one that breaks less if you happen to do something weird with it. But you will need to change the login templates, mostly in Login.template.php.

It was mostly posted as a reference for some enterprising mod maker as to all the other changes that might be relevant with the templates being obvious for them.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,656
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: Reverse order of login time
« Reply #14 on: April 12, 2019, 12:28:30 PM »
@arantor Can we see it?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,228
    • StoryBB/StoryBB on GitHub
Re: Reverse order of login time
« Reply #15 on: April 12, 2019, 12:36:36 PM »
@arantor Can we see it?

There isn’t a public site using it yet, even the private betas are a bit out of date and in any case I guarantee the fork is not suitable for most SMF users.

I just shared the changes as I’d recently done them and it seemed like a relevant useful starting place.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,656
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: Reverse order of login time
« Reply #16 on: April 12, 2019, 12:46:31 PM »
I remember you used to work on Wedge, though I haven't heard of any activity on that in a while

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,228
    • StoryBB/StoryBB on GitHub
Re: Reverse order of login time
« Reply #17 on: April 12, 2019, 01:34:04 PM »
I left Wedge 6 years ago, though this is getting a bit off topic. Clash of personalities.

StoryBB is a completely different beast with very specific ideas of what type of forums it wants to support - namely not normal ones. But it is still mostly 2.1 code except for the themes at this point.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,656
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: Reverse order of login time
« Reply #18 on: April 12, 2019, 02:13:07 PM »
Cool! 👍👍