Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2020-06-21 14:21:05

gaekwad
Admin
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,132

Re: Logging form after upgrade

Anyone reading this as a result of Bloke’s post above, the 4.8.2 branch dev demo will be rebuilt on schedule in about 40 minutes from this post time stamp, so you will be able to try it out.

dev-demo.textpattern.co/4.8.2/

Offline

#12 2020-06-21 15:37:57

gaekwad
Admin
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,132

Re: Logging form after upgrade

Bloke wrote #323874:

The 4.8.2 branch now has a new language selector on the login panel. If there’s only one language installed, it’ll be omitted.

On the Textpattern tip, we have language in [prefs] – could we move that to [public] and tick off the dropdown box translation?

Offline

#13 2020-06-21 16:15:16

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,726
Website

Re: Logging form after upgrade

Yeah, that one needs moving (maybe to common in case we need it admin side too?) but it needs to be done on Crowdin and pulled into our repo, so let’s wait a wee bit in case Phil or someone suggests better UX.

We also need to move active_language_ui to [admin-side] so the selector on the Users Edit panel renders properly.

Should probably add an issue for those on the translation repo but I’m not fighting GitHub on my phone. Feel free if anyone fancies it, just so we don’t forget to track this.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#14 2020-06-21 16:36:27

gaekwad
Admin
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,132

Re: Logging form after upgrade

Bloke wrote #323879:

Should probably add an issue for those on the translation repo but I’m not fighting GitHub on my phone. Feel free if anyone fancies it, just so we don’t forget to track this.

I’ll take it if nobody else has.

Edit: 288

Last edited by gaekwad (2020-06-21 16:45:52)

Offline

#15 2020-06-22 03:11:34

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 2,116
Website

Re: Logging form after upgrade

Bloke wrote #323874:

The 4.8.2 branch now has a new language selector on the login panel.[…]

Seems to work in double-quick test on the demo site

Would that widget benefit of loosing the select-widget UI and displaying everything on one line ? The latter would eventually save some vertical space on small screens. Removing the UI would make it less heavy and less distracting, in order to keep the focus on the primary focus of the panel. See a quickly made example.

I couldn’t test the other change(s) you mention as user management/creation is mostly disabled on the demo site (for good reasons!)


Where is that emoji for a solar powered submarine when you need it ?

Offline

#16 2020-06-22 06:22:53

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 8,270
Website

Re: Logging form after upgrade

Sorry to be the devil’s advocate here but I seem to remember some posts in this forum about the security of front end cookies. Isn’t this effectively the same thing as the language preference will be there even after logout?


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github | Covid-19; a resource
I do my best editing after I click on the submit button.

Offline

#17 2020-06-22 07:17:25

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,726
Website

Re: Logging form after upgrade

phiw13 wrote #323881:

Would that widget benefit of loosing the select-widget UI and displaying everything on one line ?

Yes! That’s brilliant. Phil, do we have a design pattern for that? I can’t check right now. But I’ll look later if you don’t have time right now.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#18 2020-06-22 07:26:06

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,726
Website

Re: Logging form after upgrade

colak wrote #323882:

the security of front end cookies. Isn’t this effectively the same thing as the language preference will be there even after logout?

For clarity, there’s no cookie stored. No localStorage either. If everyone feels that having the last used language in the URL is a privacy risk (let’s face it, the username is still available too in the login box) then we can easily lose the lang=. The only loss of functionality would be that the language selector returns to the first one in the list.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#19 2020-06-22 08:05:20

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 2,116
Website

Re: Logging form after upgrade

Bloke wrote #323883:

Yes! That’s brilliant. Phil, do we have a design pattern for that? I can’t check right now. But I’ll look later if you don’t have time right now.

(not Phil…) Not directly I think; the closest thing is the select widget just above the textarea on the Write panel. But that uses JQUI stuff. Could reuse the code though, me thinks. The below is enough, IE 11 has some light quirk, maybe.

select { border: none; background-color: transparent; padding: 0; padding-inline-end: 2em; }

Where is that emoji for a solar powered submarine when you need it ?

Offline

#20 2020-06-22 08:56:15

gaekwad
Admin
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,132

Re: Logging form after upgrade

phiw13 wrote #323881:

I couldn’t test the other change(s) you mention as user management/creation is mostly disabled on the demo site (for good reasons!)

It’s funny you mention that, I was looking at the logs the other day, there are all kinds of things happening on those demo sites: evidence of fuzzers, XSS attempts, they’re a great source of interest to people who want to break stuff!

Offline

Board footer

Powered by FluxBB