Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#49 Today 14:06:20
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
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
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 maybetry ... 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
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
Offline
#54 Today 18:42:26
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