Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#85 2026-01-06 10:34:25

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,411
Website GitHub

Re: Feedback: Textpattern CMS 4.9.0 released

phiw13 wrote #342109:

valueless width and height, it is not very intuitive.

True. But now, since it defaults to the more sensible least permissive output by default, it’s handy to have a way to say “use the native sizes please” if you really, really want them in the tags for placeholder / space reservation reasons.

Valueless attributes seemed sort of natural for this application, and saves having to manually look up or set the dimensions by hand for each image. You can just add width / height to your tag and it’ll output the right sizes, even if you switch to using a (custom) thumbnail.

I’m still thinking about ditching the public-side access to the config.php thumb size variables, but maybe the crop should remain. Or maybe hard-code it to 1×1 if you don’t specify a value yourself.

That seems a little small. 200px, or same values as you added to theme Hive, seems more appropriate.

200 it is.


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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#86 2026-01-06 10:44:52

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,411
Website GitHub

Re: Feedback: Textpattern CMS 4.9.0 released

Incidentally, the database sizes will also be triggered if width='' or height=''. They mean the same as valueless BUT that has an interesting ramification:

<txp:article_image thumbnail width='<txp:variable name="my_width" />' />

will behave like this:

1. if my_width has a positive value, the thumb will be displayed at the designated size.
2. if my_width returns nothing, the thumb will be displayed at the database width value (either full size, or thumb size if it’s a custom thumbnail).
3. if my_width returns “0” the width attribute will not appear in the markup and you’ll get the image displayed at native resolution.

The upshot is, if you’re doing this kind of variable-in-attribute thing, ensure you test if the variable exists and has a value before plugging it into an (article_)image or thumbnail tag to avoid any surprises.


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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#87 2026-01-06 13:01:18

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,411
Website GitHub

Re: Feedback: Textpattern CMS 4.9.0 released

I’ve tweaked the article_image tag output now so that empty image paths are silently skipped.

Also removed references to the config.php variables in the tags so if you specify a valueless crop, you will always get 1×1 square.

Happy to alter this if anyone can think of a better solution.


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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#88 2026-01-09 03:11:14

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,623
Website

Re: Feedback: Textpattern CMS 4.9.0 released

One test failure with a transparent .webp image: cropping. This currently fails, the image has a black background.

<txp:images id="79">
  <img src="<txp:image_url thumbnail  height="600" crop="9x16" />" alt="3 coloured circles, cropped" height="600">
</txp:images>

PHP 8.5, Textpattern dev. Test image: dev.l-c-n.com/_b/3circles-F.webp

This could be annoying for admin site thumbnails if the admin theme crops the image (e.g. Hive)


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

#89 2026-01-09 07:41:51

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,411
Website GitHub

Re: Feedback: Textpattern CMS 4.9.0 released

Yeah I had a go at trying to debug that black background thing the other day and ended up scratching my head.

The purported fix has been incorporated into our code but it’s still serving black backgrounds on some (not all?!) transparent files.

At this point I have no idea why. If anyone has any clues or knows the GD library better, please throw some pointers my way.


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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#90 2026-01-15 15:52:02

franzl
Member
From: germany
Registered: 2019-08-11
Posts: 34

Re: Feedback: Textpattern CMS 4.9.0 released

Updated my installation. Works fine without any problems so far.
Thank you for your work. :)

Offline

#91 2026-01-18 00:12:39

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 721
Website Mastodon

Re: Feedback: Textpattern CMS 4.9.0 released

Sorry, posted below note to the smd_tags thread now…

@Bloke – Just FYI: Receiving error in TXP 4.9 backend under php 8.4.15 concerning smd_tags-0.8.0:

Deprecated
Using ${var} in strings is deprecated, use {$var} instead in
/home/kliklak/public_html/textpattern/plugins/smd_tags/smd_tags.php
on line
1544

Last edited by jayrope (2026-01-18 14:58:02)


A hole turned upside down is a dome, when there’s also gravity.

Offline

#92 Yesterday 16:14:27

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 721
Website Mastodon

Re: Feedback: Textpattern CMS 4.9.0 released

Finally done updating 35++ lowkey TXP sites to 4.9. – for the plugins i am normally using (com_connect, smd_whereused, bot_write_tab_customize and few others) i haven’t found any major issues.
A small issue coming up sometimes is, that some plugins are missing direct links to their newest or even 4.9-compatible version or even to a plugin thread here on this forum.

That’s it.
Super nice update for the mail capabilities and bringing TXP up-to-date with PHP and MySQL.

Thank you very much, all devs!

Last edited by jayrope (Yesterday 20:45:28)


A hole turned upside down is a dome, when there’s also gravity.

Offline

#93 Yesterday 16:18:41

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,411
Website GitHub

Re: Feedback: Textpattern CMS 4.9.0 released

You’re welcome.

We need to make a concerted effort to streamline the process of getting the latest plugins listed on plugins.textpattern.com. That will then let update links show up on your Plugins panel.

It’s a laborious manual process at the moment so we need to invest some brainpower into automating it better.


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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#94 Yesterday 18:19:22

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,411
Website GitHub

Re: Feedback: Textpattern CMS 4.9.0 released

I have a client site running 4.8.8. There are a bunch of things I wanted to do that the version didn’t support. Mail handling was one. Dynamic thumbs with multiple formats for srcset is another.

The pagespeed score was gradually dwindling and, last time I checked, it was high-70s/low-80s for mobile and mid-high-80s for desktop.

I installed 4.9.1-dev last night (which is as close to 4.9.0 as makes no difference with a few tweaks and bug fixes) and, without doing a single thing to the site, the pagespeed score leapt to 97 mobile and 98 desktop for performance.

We still have a little legwork to do for SEO and for reducing JS and CSS bloat of old rules and code – and I will do the image srcset thing – but the site absolutely flies (and it was quick beforehand!) without any additional cacheing plugins.

That’s testament to Oleg’s amazing parser optimisations and our overall attention to detail throughout the development process.

So hats off to Oleg and everyone involved in the testing and delivery of this amazing platform. Love y’all.


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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#95 Yesterday 18:37:12

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,251
Website Mastodon

Re: Feedback: Textpattern CMS 4.9.0 released

Hats off to Oleg

Hats off to Oleg it may sound quaint
But many doubted our cms
When they said we were slow
They told us lies
Now it’s their turn to cry, cry, cry
Now that Oleg made us fly, fly, fly


…. texted postive

Offline

Board footer

Powered by FluxBB