Warm-up: FlatPress 1.5 - Community Test

For devs and testers: Tests of current development versions, technical details of the code.
User avatar
fraenkiman
Posts: 455
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: Warm-up: FlatPress 1.5 - Community Test

Post by fraenkiman » Sun Dec 14, 2025 1:56 pm

Hello macadoum,

Thank you for your email.
macadoum wrote: Sat Dec 13, 2025 5:36 pm ... On the left, the original file on my computer. On the right, after the upload.
The error is not in the preview JS, but in the defective alpha blending in the image (alpha/RGB + interpolation).

The PNG does not have alpha=0 everywhere in the areas that are supposed to be "transparent", but rather a large number of pixels with very small, but ≠0 alpha (e.g., 2–6) and ‘garbage’ RGB values. During normal browser rendering, these RGB values are slightly offset against the background -> this looks like "scanlines".

If you open the image in a separate browser tab or Gimp, the messed-up transparent area is also displayed as "scanlines".

Therefore, no correction is necessary in the preview JS.

Best regards and have a relaxing Sunday,
Frank
:pencil: You are strong in PHP and Java Script? :point_right: Then help us to improve FlatPress. :point_left:

:exploding_head: Looking for ideas, templates, examples and answers to frequently asked questions?
:bulb: You'll find it here.

My :de: FlatPress-Blog: https://frank-web.dedyn.io

User avatar
macadoum
Posts: 48
Joined: Sat Jan 20, 2024 10:32 pm

Re: Warm-up: FlatPress 1.5 - Community Test

Post by macadoum » Sun Dec 14, 2025 5:34 pm

Thank you Fraenkiman

Something else is flatpress maybe needs an automatic resizing tool because the image does not fit in the blog entry : https://macadoum.free.nf/
My test installation of FlatPress : https://macadoum.free.nf/ :D

User avatar
fraenkiman
Posts: 455
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: Warm-up: FlatPress 1.5 - Community Test

Post by fraenkiman » Mon Dec 15, 2025 1:37 am

macadoum wrote: Sun Dec 14, 2025 5:34 pm Something else is flatpress maybe needs an automatic resizing tool because the image does not fit in the blog entry : https://macadoum.free.nf/
Theoretically, this would be possible, but only on the client side with JavaScript. The script would have to measure the containers
#main .entry figure, #main .entry .photoswipe, #main .entry .thumbnail
and the screen width (PC screen to smartphone).

Replace the file core.theme.php in fp-includes/core/ with this one and test it.
core.theme.zip
(7.64 KiB) Downloaded 8 times
Have a great start to the new week!
Frank
:pencil: You are strong in PHP and Java Script? :point_right: Then help us to improve FlatPress. :point_left:

:exploding_head: Looking for ideas, templates, examples and answers to frequently asked questions?
:bulb: You'll find it here.

My :de: FlatPress-Blog: https://frank-web.dedyn.io

User avatar
macadoum
Posts: 48
Joined: Sat Jan 20, 2024 10:32 pm

Re: Warm-up: FlatPress 1.5 - Community Test

Post by macadoum » Mon Dec 15, 2025 4:05 pm

fraenkiman wrote: Mon Dec 15, 2025 1:37 am
macadoum wrote: Sun Dec 14, 2025 5:34 pm Something else is flatpress maybe needs an automatic resizing tool because the image does not fit in the blog entry : https://macadoum.free.nf/
Theoretically, this would be possible, but only on the client side with JavaScript. The script would have to measure the containers
#main .entry figure, #main .entry .photoswipe, #main .entry .thumbnail
and the screen width (PC screen to smartphone).

Replace the file core.theme.php in fp-includes/core/ with this one and test it.

core.theme.zip

Have a great start to the new week!
Frank
Wonderful, now it's working as intended : https://macadoum.free.nf/

Will you add this new feature directly into the next version ?
My test installation of FlatPress : https://macadoum.free.nf/ :D

User avatar
fraenkiman
Posts: 455
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: Warm-up: FlatPress 1.5 - Community Test

Post by fraenkiman » Tue Dec 16, 2025 11:40 pm

macadoum wrote: Mon Dec 15, 2025 4:05 pm Will you add this new feature directly into the next version ?
I added this stylesheet patch for the leggero theme.

Best regards
Frank
:pencil: You are strong in PHP and Java Script? :point_right: Then help us to improve FlatPress. :point_left:

:exploding_head: Looking for ideas, templates, examples and answers to frequently asked questions?
:bulb: You'll find it here.

My :de: FlatPress-Blog: https://frank-web.dedyn.io

User avatar
macadoum
Posts: 48
Joined: Sat Jan 20, 2024 10:32 pm

Re: Warm-up: FlatPress 1.5 - Community Test

Post by macadoum » Wed Dec 17, 2025 8:00 pm

I'm unable to embed a youtube video

After having read the wiki, the code [video=https://youtube.com/vKv2BM5dpxw] shoud embed the player. But I got a message asking me to enable Javascript ?

Image
My test installation of FlatPress : https://macadoum.free.nf/ :D

User avatar
fraenkiman
Posts: 455
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: Warm-up: FlatPress 1.5 - Community Test

Post by fraenkiman » Wed Dec 17, 2025 10:59 pm

macadoum wrote: Wed Dec 17, 2025 8:00 pm I'm unable to embed a youtube video
...
Image
Well, the page must exist:
Screenshot 2025-12-17 234535.png
Screenshot 2025-12-17 234535.png (63 KiB) Viewed 188 times
Try this:
Screenshot 2025-12-17 234902.png
Screenshot 2025-12-17 234902.png (7.28 KiB) Viewed 188 times

Code: Select all

[video="https://www.youtube.com/watch?v=o6rBK0BqL2w"]
Best regards
Frank
:pencil: You are strong in PHP and Java Script? :point_right: Then help us to improve FlatPress. :point_left:

:exploding_head: Looking for ideas, templates, examples and answers to frequently asked questions?
:bulb: You'll find it here.

My :de: FlatPress-Blog: https://frank-web.dedyn.io

User avatar
fraenkiman
Posts: 455
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: Warm-up: FlatPress 1.5 - Community Test

Post by fraenkiman » Wed Dec 17, 2025 11:19 pm

I just noticed that it was incorrectly documented in the wiki. Now corrected.
:pencil: You are strong in PHP and Java Script? :point_right: Then help us to improve FlatPress. :point_left:

:exploding_head: Looking for ideas, templates, examples and answers to frequently asked questions?
:bulb: You'll find it here.

My :de: FlatPress-Blog: https://frank-web.dedyn.io

User avatar
macadoum
Posts: 48
Joined: Sat Jan 20, 2024 10:32 pm

Re: Warm-up: FlatPress 1.5 - Community Test

Post by macadoum » Thu Dec 18, 2025 8:07 am

Thank you fraenkiman but the result is still the same, the embedded player doesn't load.

For exemple : [video="https://www.youtube.com/watch?v=WIepaW85gtU"]
My test installation of FlatPress : https://macadoum.free.nf/ :D

User avatar
fraenkiman
Posts: 455
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: Warm-up: FlatPress 1.5 - Community Test

Post by fraenkiman » Thu Dec 18, 2025 7:42 pm

Tough nut to crack, it was hidden in the French language file. That's why the JS couldn't load. Should work now.

Replace the existing file lang.fr-fr.php in the directory fp-plugins/gdprvideoembed/lang/ with this file.
lang.fr-fr.zip
(1.38 KiB) Downloaded 5 times
Corrected with f9cd2ca

Screenshot 2025-12-18 205412.png
Screenshot 2025-12-18 205412.png (128.1 KiB) Viewed 137 times
Best regards,
Frank
:pencil: You are strong in PHP and Java Script? :point_right: Then help us to improve FlatPress. :point_left:

:exploding_head: Looking for ideas, templates, examples and answers to frequently asked questions?
:bulb: You'll find it here.

My :de: FlatPress-Blog: https://frank-web.dedyn.io

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest