Dark mode for the forum
Dark mode for the forum
Author
Discussion

Matt Dell

3,282 posts

174 months

PH TEAM

Thursday 16th September 2021
quotequote all
rampageturke said:
I'll be surprised if they have even a single developer on their payroll
wavey

Tom Logan

3,872 posts

144 months

Friday 17th September 2021
quotequote all

A dark mode add-on is available on Firefox.

Olivera

8,297 posts

258 months

Friday 17th September 2021
quotequote all
Fix going to last-read position on a thread, it's been broken since the dinosaurs last roamed the earth.

glenrobbo

38,519 posts

169 months

Friday 17th September 2021
quotequote all
NicheMonkey said:


Samsung Internet browser
That's bloody awful! I couldn't continue with that if PH were to adopt it.

Perhaps most would consider that to be a big plus? rofl

Clockwork Cupcake

78,677 posts

291 months

Thursday 1st September 2022
quotequote all
Clockwork Cupcake said:
It's a shame that there has been no further bug fixing since that point - garage BBCode formatting is still broken and has been for years.
Still broken, BTW

Ben Lowden

7,118 posts

196 months

PH Marketing Bloke

PH TEAM

Friday 2nd September 2022
quotequote all
Clockwork Cupcake said:
Still broken, BTW
We're well aware and it was something that was discussed only yesterday but unfortunately it's not a simple fix like you might think. We appreciate it's frustrating (it is for us too) but other things have been taking priority, but it is on our shortlist for consideration.

Podie

46,646 posts

294 months

Friday 2nd September 2022
quotequote all
Ben Lowden said:
Clockwork Cupcake said:
Still broken, BTW
We're well aware and it was something that was discussed only yesterday but unfortunately it's not a simple fix like you might think. We appreciate it's frustrating (it is for us too) but other things have been taking priority, but it is on our shortlist for consideration.
Quoting for my own amusement, simply because Clockwork is probably one of the few people who actually knows and understands the complexity hehe

Clockwork Cupcake

78,677 posts

291 months

Friday 2nd September 2022
quotequote all
Ben Lowden said:
We're well aware and it was something that was discussed only yesterday but unfortunately it's not a simple fix like you might think. We appreciate it's frustrating (it is for us too) but other things have been taking priority, but it is on our shortlist for consideration.
I can hazard a guess on what it is. I bet you are using a totally different BBCode engine for the garage than you are for the Gassing Station. Which is, of course, utter lunacy.

What is happening is that the text of the garage description is getting converted to HTML, then the raw HTML that is generated is getting escaped into plain text, and then re-rendered as HTML

Thus
Line 1
Line 2

becomes

Line 1<br/>Line 2

ie. literally Line 1&lt;br/&gt;Line 2

Monkeylegend

27,977 posts

250 months

Friday 2nd September 2022
quotequote all
Clockwork Cupcake said:
Ben Lowden said:
We're well aware and it was something that was discussed only yesterday but unfortunately it's not a simple fix like you might think. We appreciate it's frustrating (it is for us too) but other things have been taking priority, but it is on our shortlist for consideration.
I can hazard a guess on what it is. I bet you are using a totally different BBCode engine for the garage than you are for the Gassing Station. Which is, of course, utter lunacy.

What is happening is that the text of the garage description is getting converted to HTML, then the raw HTML that is generated is getting escaped into plain text, and then re-rendered as HTML

Thus
Line 1
Line 2

becomes

Line 1<br/>Line 2

ie. literally Line 1&lt;br/&gt;Line 2
I was just about to post that but beaten too it hehe

toon10

6,884 posts

176 months

Friday 2nd September 2022
quotequote all
What is it with dark mode that I just don't get? I'm on regular code reviews with younger developers who love it. It's really hard to read. I have to squint and concentrate which is manageable for text but when trying to decipher code, it's just a nightmare.

Ben Lowden

7,118 posts

196 months

PH Marketing Bloke

Friday 2nd September 2022
quotequote all
Clockwork Cupcake said:
I can hazard a guess on what it is. I bet you are using a totally different BBCode engine for the garage than you are for the Gassing Station. Which is, of course, utter lunacy.

What is happening is that the text of the garage description is getting converted to HTML, then the raw HTML that is generated is getting escaped into plain text, and then re-rendered as HTML

Thus
Line 1
Line 2

becomes

Line 1<br/>Line 2

ie. literally Line 1&lt;br/&gt;Line 2
As you say the core issue centres around rendering vs escaping of HTML, from the content entered by users. Due to the age of this feature, in the early days, this was built lacking the current security best practices for dealing with user input (i.e. preventing security vulnerabilities) - for this reason, and relative priorities at the time, in order to protect this area of the site from mis-use, we needed to escape this (potentially malicious) content rather than rendering it directly. Its time will come, but we can't say when just yet.

Clockwork Cupcake

78,677 posts

291 months

Friday 2nd September 2022
quotequote all
Ben Lowden said:
As you say the core issue centres around rendering vs escaping of HTML, from the content entered by users. Due to the age of this feature, in the early days, this was built lacking the current security best practices for dealing with user input (i.e. preventing security vulnerabilities) - for this reason, and relative priorities at the time, in order to protect this area of the site from mis-use, we needed to escape this (potentially malicious) content rather than rendering it directly. Its time will come, but we can't say when just yet.
I understand your concerns.

The thing that points to this being a serious bug is that the engine can't even cope with its own input.

If you were to create a car in your garage and were literally to set the description to
Line 1
Line 2

and then submit

then it will get rendered as "Line 1<br/>Line 2"

So this is not a sanitation issue but a straight out bug, as it cannot even render its own output correctly.

My advice would be to simply strip out all BBCode and HTML for now and go totally plain text. That would be the First Stage fix. Just having it correctly render plain text would be a good first goal because currently it cannot even achieve that.

You can then add BBCode back in later.

Clockwork Cupcake

78,677 posts

291 months

Friday 2nd September 2022
quotequote all
toon10 said:
What is it with dark mode that I just don't get? I'm on regular code reviews with younger developers who love it. It's really hard to read. I have to squint and concentrate which is manageable for text but when trying to decipher code, it's just a nightmare.
Totally with you there. I don't get the utter obsession with Dark Mode on everything these days.

In Visual Studio and Visual Code (my two primary IDEs) I go old school white background and all my young colleagues look at me like I grew an extra head.

But I just threaten to hit them with my modem



HappyMidget

6,794 posts

134 months

Friday 2nd September 2022
quotequote all
Clockwork Cupcake said:
Totally with you there. I don't get the utter obsession with Dark Mode on everything these days.

In Visual Studio and Visual Code (my two primary IDEs) I go old school white background and all my young colleagues look at me like I grew an extra head.

But I just threaten to hit them with my modem

For some weird ass reason I do like VSCode in dark mode. Not so with VS or any other program. Hate it when it is on by default.

skwdenyer

18,495 posts

259 months

Sunday 30th October 2022
quotequote all
HappyMidget said:
Clockwork Cupcake said:
Totally with you there. I don't get the utter obsession with Dark Mode on everything these days.

In Visual Studio and Visual Code (my two primary IDEs) I go old school white background and all my young colleagues look at me like I grew an extra head.

But I just threaten to hit them with my modem

For some weird ass reason I do like VSCode in dark mode. Not so with VS or any other program. Hate it when it is on by default.
Dark mode is - for some - much more restful.

As a relative oldie, I cut my teeth wordprocessing using WordPerfect 5.1 for DOS: light text on a blue background. No WYSWYG in that, but a surprisingly restful editing environment. Dark text on a light background has always irked me.

Research suggests avoiding black/white combos - black text on a light grey background, or light grey text on a black/dark background tends to be the easiest on the eyes for the longest period for the greatest number of people.

Bear-n

1,819 posts

101 months

Monday 18th December 2023
quotequote all
Ben Lowden said:
We don't have a dark mode and this isn't something we're planning on I'm afraid. We simplified the forum skins to make it much easier for us to maintain the forums with a single theme.

As others have mentioned some browsers may offer dark mode solutions that you could try.
Hi Ben/PH others

Bumping this to ask if there's any change on the last stance? Alternatives such as dark mode reader extensions are often flawed and dark mode is a huge accessibility enabler for many (I'm sure you know this mind you!).

Merry Christmas smile

Delahorney

181 posts

165 months

Monday 20th January
quotequote all
Pistonheads dark mode, when? Danke

RumbleOfThunder

Original Poster:

3,682 posts

222 months

Tuesday 21st January
quotequote all
Come on. Save my eyes fgs.

Over over under steer

757 posts

142 months

Tuesday 21st January
quotequote all
A huge yes for a dark mode.

Digger

15,949 posts

210 months

Tuesday 21st January
quotequote all
I gave up asking years ago but have had reasonable success with an extension add on for Opera - it is a multi-browser extension I am led to believe . . .

https://mybrowseraddon.com/dark-mode.html