Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#121 Today 17:34:13

etc
Developer
Registered: 2010-11-11
Posts: 5,603
Website GitHub

Re: Automatic thumbnails for Textpattern

Ah. Ok. Reverted it to $un, which is the last chunk, please test. Thumbnails seem to be generated now, but the deletion still fails.

Offline

#122 Today 18:02:19

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

Re: Automatic thumbnails for Textpattern

etc wrote #341672:

Ah. Ok. Reverted it to $un, which is the last chunk, please test.

Thank you. I’m trying to make the matches more robust now. Tricky…

Thumbnails seem to be generated now, but the deletion still fails. http://localhost/txp/images/thumb/w200-h100/674.jpg

Yes, for it to work your path should (I think) be:

http://localhost/txp/images/thumb/w200-h100/txp/images/674.jpg

I suspect the fact it’s ‘shifted’ across to the right by 1 array index becuase of your subdir isn’t helping here. I thought subdirs were handled but maybe not. Hmmmm.

It’d be nice if we didn’t have to specify the subdir in the final URL path.

Last edited by Bloke (Today 18:11:16)


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

#123 Today 18:16:16

etc
Developer
Registered: 2010-11-11
Posts: 5,603
Website GitHub

Re: Automatic thumbnails for Textpattern

Bloke wrote #341673:

It’d be nice if we didn’t have to specify the subdir in the final URL path.

Absolutely. And it would be perfect if SLIR physically stored thumbnails in

//path/to/site/image_dir/thumb/w200-h100/674.jpg

Offline

#124 Today 18:22:19

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,104
Website GitHub

Re: Automatic thumbnails for Textpattern

I was wondering if we have an /images/ too many in the url? Isn’t the intention to have:

https://domain.com/images/thumb/w200-h100/674.jpg

in a standard (non-subdirectory) installation.


TXP Builders – finely-crafted code, design and txp

Offline

#125 Today 18:33:10

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

Re: Automatic thumbnails for Textpattern

jakob wrote #341675:

I was wondering if we have an /images/ too many in the url?

Not as it stands. It’s required. But yes, I think I’ll hack SLIR to remove the reliance on the full path at the end, if I can. It’s seriously annoying.


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

Board footer

Powered by FluxBB