Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#151 2006-12-31 13:24:16

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

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

…but a little note: you write on your homepage: “All plugins require Textpattern v.4.0.3.”

Whoops, I forgot to update that, sorry. *sheepish grin*

Offline

#152 2007-01-10 19:47:13

wcardinal
Member
Registered: 2005-07-16
Posts: 17

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

is there some way to show only the caption of an article image?

I want to have the caption under the image.

I have this, which of course doesnt work…

<txp:upm_article_image class=“left” show_title=“no” />
<txp:upm_img_caption />

Offline

#153 2007-01-10 20:07:39

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

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

wcardinal wrote:

is there some way to show only the caption of an article image?

If you can’t solve it with the plugin you could always use css, ie. img.left{display:none;}

Offline

#154 2007-01-10 20:13:21

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,416
Website GitHub Mastodon

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

You’ll have to create a form and pass this form’s name into upm_article_image:

<txp:upm_article_image form="form_name" />

plus a misc form named form_name containing the desired markup, eg.:

<img src="<txp:upm_img_href />" width="<txp:upm_img_full_width />" height="<txp:upm_img_full_height />" alt="<txp:upm_img_alt />" />
<p><txp:upm_img_caption /></p>

Offline

#155 2007-01-10 20:20:33

wcardinal
Member
Registered: 2005-07-16
Posts: 17

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

ok – I did that. (it should be upm_img_full_url instead of upm_href actually)

BUT – there are links in the image captions that are translated into &lt; and &gt; — so they are no longer links.

Last edited by wcardinal (2007-01-10 20:39:51)

Offline

#156 2007-01-10 21:05:31

wcardinal
Member
Registered: 2005-07-16
Posts: 17

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

finally got the html in the caption working. it turns out that escape is set to html by default. so I added escape=“unset”

Offline

#157 2007-01-21 14:11:00

freaky
Member
From: Austria
Registered: 2004-10-14
Posts: 55
Website

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

Hello!

I’m new to this plugin, so I need some help please! :)

In my article body I have:
h3. This is the headline
<txp:upm_image image_id="6" form="imagetest" /> The text goes on here

The imagetest-Form:
<b><txp:upm_img_name /></b>
<txp:upm_img_caption wraptag="p"/>
<img src="<txp:upm_img_full_url />" alt="<txp:upm_img_alt escape="html"/>" />

The thing is, it doesn’t work :( What I’m doing wrong?

Error messages i get:
  • tag_error <txp:upm_img_name/> -> Textpattern Notice: upm_image: invalid context, tag must be used within the tag as a wrapper or from its own form called by the tag. on line 521
  • tag_error <txp:upm_img_caption wraptag=“p”/> -> Textpattern Notice: upm_image: invalid context, tag must be used within the tag as a wrapper or from its own form called by the tag. on line 521
  • tag_error <txp:upm_img_full_url/> -> Textpattern Notice: upm_image: invalid context, tag must be used within the tag as a wrapper or from its own form called by the tag. on line 521
  • tag_error <txp:upm_img_alt escape=“html”/> -> Textpattern Notice: upm_image: invalid context, tag must be used within the tag as a wrapper or from its own form called by the tag. on line 521

I’ve tried varoius compinations with the tags but I got no working result.

Thanks for your help :)

Offline

#158 2007-01-22 20:59:10

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

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

Bah, a bug.

squish

Try v.0.5.5.

Last edited by Mary (2013-01-24 17:23:50)

Offline

#159 2007-01-23 10:37:56

sbonzix
New Member
From: Bolzano-Bozen, Italy
Registered: 2007-01-23
Posts: 5

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

Hello, thanks for the great plugin!

I have a problem I can’t understand.
I generated a small photgallery with:
<txp:upm_article_image type="popup" class="article-popup-images" wraptag="span" />

It works fine but the generated html has an invalid “1” right after the href attribute of the link wrapping the thumbnail:

<span class="article-popup-images"><a href="http://www.lepleiadi.it/img/49.jpg"1 onclick="return upm_pop_img(this.href, '817', '447', 'Primissima uscita (1984)', this.title);"><img src="http://www.lepleiadi.it/img/49t.jpg" width="106" height="66" alt="Primissima uscita (1984)" title=""></a> <a href="http://www.lepleiadi.it/img/50.jpg"1 onclick=...

Any idea why this happens?
Here’s the page: LePleiadi

Offline

#160 2007-01-24 09:50:01

freaky
Member
From: Austria
Registered: 2004-10-14
Posts: 55
Website

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

Thanks! Now it works pretty fine :)

Offline

#161 2007-01-24 16:00:56

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

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

Stefano: I can’t replicate this, but it does sound like a previous bug. Are you“running the latest version?

Last edited by Mary (2013-01-24 17:28:44)

Offline

#162 2007-01-24 21:31:34

sbonzix
New Member
From: Bolzano-Bozen, Italy
Registered: 2007-01-23
Posts: 5

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

I am.
Could it be a conflict between upm_image and an7_audio javascript?

Offline

#163 2007-01-25 18:30:35

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

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

After much testing, I was finally able to replicate this. Bug squashed, and hopefully the last one for a while…

v.0.5.7, and sorry for the trouble.

Last edited by Mary (2013-01-24 17:28:21)

Offline

#164 2007-01-25 20:34:14

sbonzix
New Member
From: Bolzano-Bozen, Italy
Registered: 2007-01-23
Posts: 5

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

WOW!
Thanks a lot, really – I wasn’t expecting such a quick reaction.

Great job, thanks again.

Offline

#165 2007-01-27 19:25:38

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

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

Mary,

I currently use:
bc. <txp:upm_article_image show_height=“no” show_width=“no” limit=“2” />

But I notice that the show_width and height atts set to no is not effective when the limit is 2.

Do I need to use a form to overcome this?


Offline

Board footer

Powered by FluxBB