Textpattern Forum

You are not logged in. Register | Login | Help

#361 2010-04-29 16:20:39

thebombsite
Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [plugin] [ORPHAN] upm_image: More powerful image display

Yes there is but you need to be using the latest SVN version or else you’ll have to wait for the next release. :)

When that arrives, as much as I love this plugin, it will probably be obsolete. :(


Stuart – The BombsiteProText ThemesTextgarden

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#362 2010-04-29 18:20:50

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 5,714
Website

Re: [plugin] [ORPHAN] upm_image: More powerful image display

thebombsite wrote:

Yes there is

Correct, but unfortunately that link is pretty old. The patch has moved on since then and there’s not really a definitive reference on the forum that describes it :-(

Best place for a sneak peak is the tags in development section of the wiki (shhhhhhh). The short answer is that from next release you’ll be able to do the following to read the article image field and get at its URL (or other) details:

<txp:image_list>
   <txp:image_url />
</txp:image_list>

It might seem odd to have to use image_list first, but in its default configuration it will read the article image if it is given no other attributes. If you only have one id in the article image field, you’ll get one url back. But there’s nothing to stop you supplying a list of IDs if you wish.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern.

Txp Builders – finely-crafted code, design and Txp

Offline

#363 2010-04-29 23:11:08

thebombsite
Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [plugin] [ORPHAN] upm_image: More powerful image display

Bloke wrote:

Correct, but unfortunately that link is pretty old.

So am I. ;)


Stuart – The BombsiteProText ThemesTextgarden

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#364 2010-04-30 03:28:53

Mary
Sock Enthusiast
From: Canada
Registered: 2004-06-27
Posts: 6,235

Re: [plugin] [ORPHAN] upm_image: More powerful image display

…but you need to be using the latest SVN version or else you’ll have to wait for the next release

Hence, why I say “yet”. :)

When that arrives, as much as I love this plugin, it will probably be obsolete.

That’s fine by me, one less plugin to look after. I’ve had several plugins become unnecessary, and that just leaves room for something else.

For instance, I still have a certain db plugin to get finished, and I’ve also been thinking about Flickr and Txp.


My email address has changed recently. If you need to contact me, use the forum contact form.

Offline

#365 2010-05-16 14:22:13

mmelon
Member
Registered: 2006-03-02
Posts: 64

Re: [plugin] [ORPHAN] upm_image: More powerful image display

Hi,

Does anybody know why this code is working but ignoring the offset?

bc..
<txp:upm_article_image offset=“1”> <span class=“pics”> <img src=”/image.php/image.jpg?height=295&amp;width=295&amp;image=<txp:upm_img_full_url />” alt=”<txp:upm_img_caption />” /> <txp:upm_img_caption wraptag=“span” class=“caption” /> </span>
</txp:upm_article_image>

There is only one image in the field, but I want the first skipped regardless of the number.

Thanks,
Mike

Offline

#366 2010-05-16 14:39:46

mmelon
Member
Registered: 2006-03-02
Posts: 64

Re: [plugin] [ORPHAN] upm_image: More powerful image display

solved it.

I was in an if_article_image tag when I wanted an if_article_image_list tag.

Mike

Offline

#367 2010-06-27 13:27:02

otti
Member
From: Australia
Registered: 2008-04-16
Posts: 75
Website

Re: [plugin] [ORPHAN] upm_image: More powerful image display

I just installed upm_image have a small problem when I use it with an image viewer (lightbox style). I have small images (thumbnails) placed on the page and when clicked on the larger image appears. I can get it to work with <txp:upm_article_image> but not with <txp:upm_image>. I don’t want to display the article image, but more images uploaded into the images list. Here is the code:
<a href="<txp:upm_image><txp:upm_img_full_url image_id="31"/> </txp:upm_image>" rel="thumbnail" title="Title Image 1"><txp:upm_image type="thumb" image_id="31" /></a>
The output is an empty href=”“
What am I missing here?

Offline

#368 2010-06-27 18:18:17

thebombsite
Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [plugin] [ORPHAN] upm_image: More powerful image display

I think that should be:-

<a href="<txp:upm_image image_id="31"><txp:upm_img_full_url /></txp:upm_image>" rel="thumbnail" title="Title Image 1"><txp:upm_image type="thumb" image_id="31" /></a>

Last edited by thebombsite (2010-06-30 21:33:55)


Stuart – The BombsiteProText ThemesTextgarden

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#369 2010-06-28 04:13:17

otti
Member
From: Australia
Registered: 2008-04-16
Posts: 75
Website

Re: [plugin] [ORPHAN] upm_image: More powerful image display

Thanks very much Stuart. That did the trick.

Last edited by otti (2010-06-28 04:45:35)

Offline

#370 2010-06-29 16:33:48

sacripant
Member
From: Dakar – Sénégal – Africa
Registered: 2008-06-01
Posts: 343
Website

Re: [plugin] [ORPHAN] upm_image: More powerful image display

Hello,

I would add several times the same image to an article.
it’s a strange request.
But when I note several times the same ID in the field, image appears only once. As with a if_different tag

there exists a solution for avoid this filter ?

Offline

Board footer

Powered by FluxBB