Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#265 2014-09-16 15:12:48

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: smd_thumbnail: manage multiple thumbnails of your images

I’ve created a Custom100x100 thumbanil profile and then I’ve applied it to some images.
The thumnail are created in the Custom100x100 folden but they not appear in the Thumbnail list.
What I am missing?

All other feature crop. resize etc… just work.

Offline

#266 2014-09-16 15:38:07

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,448
Website GitHub

Re: smd_thumbnail: manage multiple thumbnails of your images

candyman wrote #283791:

The thumnail are created in the Custom100×100 folden but they not appear in the Thumbnail list.

Is the profile set as the Default profile? Only images from the Default profile show up in the admin side’s Image list.


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

#267 2014-09-16 17:17:29

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: smd_thumbnail: manage multiple thumbnails of your images

I missed that :P

Offline

#268 2014-09-26 09:06:00

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: smd_thumbnail: manage multiple thumbnails of your images

Hi Stef,

On last nigthly build 4.6.0 (I just try on a fresh install, with only one plugin, smd_thumbnail), bug on Batch thumbnail creation with only the selected images. Works fine on All and category.

Seems that the script is not able to count the number of images checked as the counter say /0 . Nothing generated here …

Last edited by jpdupont (2014-09-26 09:07:15)

Offline

#269 2014-09-26 10:18:32

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,448
Website GitHub

Re: smd_thumbnail: manage multiple thumbnails of your images

jpdupont wrote #284211:

Seems that the script is not able to count the number of images

Thanks for the report. Phil did some good work standardising the class names in the interface, which unfortunately broke my jQuery selector. Fixed in v0.31.


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

#270 2014-09-26 12:03:05

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: smd_thumbnail: manage multiple thumbnails of your images

:-))) Very fast reply ! Big thanks from Belgium, Stef !

BTW, You are currently subscribed to this topic don’t work any more for me since the upgrade of the forum.
I try many e-mails accounts, my servers, gmail, …

For old topics, and new topics.

It’s like I’m banned because I don’t speak English very well … or I’m not a big fan of TXPmag ??? :-)

Offline

#271 2014-09-26 12:19:30

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,448
Website GitHub

Re: smd_thumbnail: manage multiple thumbnails of your images

jpdupont wrote #284224:

:-))) Very fast reply ! Big thanks from Belgium, Stef !

You’re welcome.

BTW, You are currently subscribed to this topic don’t work any more for me since the upgrade of the forum.

Other people have mentioned similar things. But I don’t know if it’s specific to this forum upgrade. Destry has been complaining about flaky subscription notices for time immemorial, so there must be something else going on which I don’t have the knowledge to comprehend. Maybe it is a language thing. Would love to find out why.


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

#272 2014-09-26 12:20:02

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: smd_thumbnail: manage multiple thumbnails of your images

jpdupont wrote #284224:

BTW, You are currently subscribed to this topic don’t work any more for me since the upgrade of the forum.
I try many e-mails accounts, my servers, gmail, …

The same for me and my post did not help.

Offline

#273 2014-10-01 11:16:33

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 809
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

Probably a dumb question, but nevertheless …

<txp:smd_thumbnail id="10" type="banner" /> 

renders an image … :)

<txp:smd_thumbnail type="banner" />

renders nothing … because the tag is missing an ID ( or ‘name’) … right?

What can I do to let the plugin render ALL images (thumbnails) with the type="banner" … !?

Last edited by RedFox (2014-10-01 11:19:40)

Offline

#274 2014-10-01 11:42:58

joebaich
Member
From: DC Metro Area and elsewhere
Registered: 2006-09-24
Posts: 507
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

RedFox wrote #284409:

Probably a dumb question, but nevertheless …

<txp:smd_thumbnail id="10" type="banner" />...

renders an image … :)

<txp:smd_thumbnail type="banner" />...

renders nothing … because the tag is missing an ID ( or ‘name’) … right?

What can I do to let the plugin render ALL images (thumbnails) with the type="banner" … !?

Wrap it in <txp:images> perhaps? Not in a position to test that right now.

Offline

#275 2014-10-06 10:05:06

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 809
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

joebaich wrote #284411:

Wrap it in <txp:images> perhaps? Not in a position to test that right now.

Yes, it was a dump question >

<div class="banner">
<txp:adi_if_mobile>
<txp:images limit="1" sort="rand()" form="banner">
<txp:smd_thumbnail type="mobile" />
</txp:images>
<txp:else />
<txp:images category="banner" limit="1" sort="rand()" form="banner" />
</txp:adi_if_mobile>
</div>

Nevertheless … there is still a very weird problem:

<txp:smd_thumbnail type="mobile" /> renders an error: <txp:smd_thumbnail type=“mobile” /> -> Textpattern Notice: Unknown image while parsing form “None” on page “default” … but <txp:smd_thumbnail type="main" /> renders an image … !?

I’ve checked all I know that can be checked … prefs, chmod, /images, reinstall, etc … I am baffled.

I’m using latest Txp (4.5.7) with smd_thumbnail 0.31 …

Last edited by RedFox (2014-10-06 10:09:50)

Offline

#276 2014-10-06 19:51:20

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,448
Website GitHub

Re: smd_thumbnail: manage multiple thumbnails of your images

RedFox wrote #284565:

I’ve checked all I know that can be checked … prefs, chmod, /images, reinstall, etc … I am baffled.

Very odd. It displays fine for me on my test setup.

Couple of straws to clutch at, though it sounds like you’ve tried all these:

  • Remove the form attribute from the first <txp:images> tag. Txp should ignore it since there’s a container specified, but for your sanity’s sake in six-months’ time…
  • Check and double-check that your mobile folder contains every image id. If main works and mobile doesn’t, it may simply be a missing image or one particular picture that it’s struggling to read. What happens if you use the plugin’s Tools to recreate images?
  • Check the capitalisation of the folder. The contents of the plugin’s type attribute is case sensitive (under *nix at least) because it deals with file paths.
  • Does it work with one particular image ID/name? i.e. instead of using rand(), pick one you know exists and try to display it using the id attribute. If that works, it may simply be that rand() is picking ones that don’t exist (or that exist in the database but not in the file system for some reason).
  • Compare in micro-detail the main and mobile folders to see if there’s any minuscule differences in the way they are set up. Although it’s a very long shot, if you can look at hidden permissions/sticky bit, do so. Also check for things like rogue spaces in the folder or profile name. mobile will not be found, for example.

Past that I’m equally stumped. If you’ve tried all of the above and it’s not playing ball, feel free to drop me a login if the project is web-accessible and I’ll see if I can help you figure it out.


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