Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

thebombsite
Archived 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

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: 11,250
Website GitHub

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. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Online

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

thebombsite
Archived 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

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

Offline

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

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

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.

Offline

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

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

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: 95

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
Archived 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

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
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 479
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

#371 2010-07-01 05:34:40

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

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

The plugin has always assumed that would be a mistake, not intentional, since that would actually be requesting from the database the same information multiple times.

Is it possible that there is another way for you to accomplish this?

Offline

#372 2011-01-18 22:27:35

hicks
Member
From: Portland, OR, USA (ex-UK)
Registered: 2009-05-08
Posts: 106
Website

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

Thank you, Mary, for writing this great code.

I’ve used upm_article_image to make simple slideshows using the jquery cycle script, which just makes a slideshow of the things in a classed div. Works great, especially with some handy limit/offset/class stuff that hides all images apart from the first one, which avoids all the images popping up for a second before the script kicks in.

Now though I want to do the same thing but with image captions under each slide. To work, this would have to appear in the code as:

<div class="slideshow">
    <div>
        <img src....(first article image)/>
        <p>(first article image's caption></p>
    </div>
    <div>
        <img src....(second article image)... class="hidden"/>
        <p class="hidden">(second article image's caption></p>
    </div>
    <div>
        <img src....(third article image)... class="hidden"/>
        <p class="hidden">(third article image's caption></p>
    </div>
    (etc...)
</div>

I’ve had a good fiddle with forms and wrapforms, and a good look through this forum, but can’t make it work. Is this possible?

Thanks again,

hicks.

Offline

Board footer

Powered by FluxBB