Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#49 Today 14:06:20

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

Re: Automatic thumbnails for Textpattern

Oleg: I’m going out now, but if you want to squint through the /lencioni class and find instances of symlink() in SLIR.php, you could try hacking it. There’s only one to fix, afaik.

Alternatively, look in SLIRConfigDefaults.php. There’s a symlink pref there which is set to true. Maybe set it false if ISWIN is set, which will automatically bypass the request cache? Might be simpler.


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

#50 Today 14:10:13

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

Re: Automatic thumbnails for Textpattern

As I get it, symlink() function exists on windows, just has no sufficient rights. The thumbnail is created anyway, so maybe try ... catch?

Offline

#51 Today 14:14:37

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

Re: Automatic thumbnails for Textpattern

etc wrote #341543:

As I get it, symlink() function exists on windows, just has no sufficient rights. The thumbnail is created anyway, so maybe try ... catch?

By all means give it a go. I can’t test on Windows unfortunately.


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

#52 Today 14:20:02

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

Re: Automatic thumbnails for Textpattern

The lencioni code is abandonware so treat it as if it is core code, and hack anything that can improve it. I’ve turned off composer updates so it should never request new stuff from the upstream project.


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

#53 Today 16:19:58

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

Re: Automatic thumbnails for Textpattern

Seems to behave now, though I’m mostly blind-coding here.

Offline

#54 Today 18:42:26

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

Re: Automatic thumbnails for Textpattern

etc wrote #341548:

Seems to behave now

That looks perfectly reasonable, thank you.

I’m mostly blind-coding here.

Ha! Welcome to my world the last few weeks.


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