Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#337 2017-01-31 05:50:28

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,196
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

phiw13 wrote #303721:

Not sure if this is me doing something wrong, or if the plugin has some slight issue TXP 4.7 / debug

FWIW, here is an easier way to reproduce the issue. With a default TXP install (default front-end theme), go to the default form, and look for the <txp:if_article_image> block. Replace the <txp:images form="images" /> with the code below (adjust the type='hero-M' with the name of your smd_thumbnails profile):

xml
<txp:images id='<txp:custom_field name="article_image" />'>
  <img itemprop="url" src="<txp:smd_thumbnail type='hero-M'><txp:smd_thumbnail_info item='url' /></txp:smd_thumbnail>" alt="<txp:image_info type='alt' />">
</txp:images>

Then, upload your image, create the thumbnails; create an article with an article image, view the article.

I get the following:

Tag error: <txp:smd_thumbnail type='hero-M'> ->  Notice: Undefined variable: alt while parsing form default on page archive

HTH


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

Offline

#338 2017-02-16 16:19:49

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: smd_thumbnail: manage multiple thumbnails of your images

I am stuck on this one.

I have an article template with the following code:

<txp:images><a href="<txp:permlink />" title="<txp:title />"><img src="<txp:smd_thumbnail type="large" display="url" />" alt="<txp:image_info type="alt" />" /></a></txp:images>

I was expecting that <txp:image_info type=“alt” /> would return the alt for the image. Instead, I am getting this:

alt="<img src="http://thirdsuperpower.com/images/popular-posts/11.jpg" width="240" height="190" alt="" class="popular-posts" />"

I realize I should probably be using <txp:smd_thumbnail_info /> but I got stuck on that one as well.

Offline

#339 2017-02-16 18:06:34

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: smd_thumbnail: manage multiple thumbnails of your images

hi Michael,

I of course do not know exactly how you are calling the image. Did you try?

<txp:images id="##"><a href="<txp:permlink />" title="<txp:title />"><img src="<txp:smd_thumbnail type="large" display="url" />" alt="<txp:image_info type="alt" />" /></a></txp:images>

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#340 2017-06-30 16:54:14

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

Re: smd_thumbnail: manage multiple thumbnails of your images

If smd_thumbnail is active, on 4.7 dev, the option image list button (to hide/show columns) don’t work (is not active, don’t open the drop down).

Offline

#341 2017-06-30 17:17:04

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

Re: smd_thumbnail: manage multiple thumbnails of your images

jpdupont wrote #306130:

If smd_thumbnail is active, on 4.7 dev, the option image list button (to hide/show columns) don’t work

Hmm, it works on mine. I’ll check later whether I’ve done anything to my version of smd_thumbnail, because I may have made some dev changes. What version do you have installed?


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

#342 2017-06-30 17:40:27

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

Re: smd_thumbnail: manage multiple thumbnails of your images

0.32

I have two image plugins on this page. If I retire both, it goes. If I add the only smd_thumbnail, the button no longer works.

jbx_multiple_image_upload-0.5.5 (modified)
smd_thumbnail-0.32 (modified -> Translations that do not work in the textpack)

Offline

#343 2017-06-30 19:53:06

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

Re: smd_thumbnail: manage multiple thumbnails of your images

0.33 from Github installed, same problem.

Offline

#344 2017-06-30 23:58:51

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,196
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

So that works correctly here, as far as I can tell, with v33 on 4.7dev.


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

Offline

#345 2017-09-08 12:17:34

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

Re: smd_thumbnail: manage multiple thumbnails of your images

smd_thumbnail 0.4.0 has become much nicer (layout) on Txp 4.6.2 … :) … but it doesn’t like tom_image_grid (0.4) … or visa versa … :(

Last edited by RedFox (2017-09-08 12:18:48)

Offline

#346 2017-09-08 12:39:49

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

Re: smd_thumbnail: manage multiple thumbnails of your images

RedFox wrote #306908:

it doesn’t like tom_image_grid

Anything to do with this issue I filed?


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

#347 2017-09-08 12:49:11

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

Re: smd_thumbnail: manage multiple thumbnails of your images

Bloke wrote #306910:

Anything to do with this issue I filed?

I did encounter this issue earlier, yes. But the ‘problem’ has become more complex (!): smd_thumbnail doesn’t appear anymore when I enable tom_image_grid … !?

I did some toggling with the on and off prefs and did import other (older/newer) versions of both plugins … so may be some files are corrupt now … !?

It’s not a major problem because this client can handle images in Txp without tom_image_grid … but it’s an issue if it was a giant portfolio site … :o

Last edited by RedFox (2017-09-08 12:55:54)

Offline

#348 2017-09-11 17:02:26

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 479
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

Offline

Board footer

Powered by FluxBB