Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] upm_image: More powerful image display
No, not sure. I just imagined that this
- Use headings in the left-hand sidebar (thanks Philippe).
could interfere with the way upm_image hacks into the article write tab. “Insert image” simply vanished from the article tab after my update from yesterday, and r1466 was a (more or less) logical explanation.
Offline
#77 2006-07-11 04:09:25
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Ah. upm_img_popper. Yes, I think that broke it. Uno momento.
Yep, it did. It’ll work when the next stable version of Txp is released. I’m not keen on maintaining versions for developmental versions which are subject to change. :)
Last edited by Mary (2006-07-11 04:46:45)
Offline
#78 2006-07-11 16:26:04
- alexwest
- Member
- From: Järna, Sweden
- Registered: 2004-08-04
- Posts: 53
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Hi Mary,
Just a comment…
When calling upm_article_image in an article form like this:
<code><txp:upm_article_image form=“article_image” /></code>
where form article_image has this:
<code><txp:upm_image image_id=”<txp:upm_img_id />” show_height=“no” show_width=“no” /></code>
in v0.3 i could get away with the upm_img_id tag nested in the upm_image tag. Updating to v0.4.3 it breaks.
Don´t know if that is correct sintax for the tags, but it was first refered here, and it is quite handy if it could be used in this manner.
Would the way around this be to wrap it in php tags? I returned to v0.3 btw.
Alex
be safe and happy
Offline
#79 2006-07-11 17:56:02
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Don’t know if that is correct sintax for the tags, but it was first refered here, and it is quite handy if it could be used in this manner.
It’s not. No idea why you or jpea would want to do that at all, that’d be calling the tag twice. ?
Offline
#80 2006-07-12 09:14:18
- alexwest
- Member
- From: Järna, Sweden
- Registered: 2004-08-04
- Posts: 53
Re: [plugin] [ORPHAN] upm_image: More powerful image display
I use upm_image (not upm_article_image as i said before, but i guess it would be the same) inside an article to display an image, but i want to style this image and have a caption under it.
So, for example, I put this in the article:
<code><txp:upm_image image_id=“121” form=“article_image” /></code>
And then, the form article_image is this:
<code><div class=“articleImage”>
<txp:upm_image image_id=”<txp:upm_img_id />” show_height=“no” show_width=“no” />
<p style=“width:<txp:upm_img_full_width />px”><txp:upm_img_caption /></p>
</div></code>
Basically, now I can use upm_image to display any image I want in an article, as long as I refer to it by its id, and have it output in that form.
Do you see any other way to do this?
be safe and happy
Offline
#81 2006-07-12 23:56:00
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_image: More powerful image display
<div class="articleImage" style="width: <txp:upm_img_full_width />px;">
<p><img src="<txp:upm_img_full_url />" alt="<txp:upm_img_alt />" /></p>
<txp:upm_img_caption wraptag="p" />
</div>
:)
Offline
#82 2006-07-13 05:13:40
- nardo
- Member

- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: [plugin] [ORPHAN] upm_image: More powerful image display
with regards to <txp:upm_img_list /> …
it generates this error for me: tag_error <txp:upm_img_list/> -> Textpattern Warning: unknown_tag
plugin help says:
<code><txp:upm_img_list />
Description: article image list. Only available to <txp:upm_article_image />‘s wrapform.
</code>
wrapform?
- )
Offline
#83 2006-07-13 05:15:07
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Are you using the latest version of upm_image?
Offline
#84 2006-07-13 05:18:54
- nardo
- Member

- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: [plugin] [ORPHAN] upm_image: More powerful image display
0.4.3
Offline
#85 2006-07-14 02:22:59
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Yes, wrapform. It’s missing from the help doc. You’d do:
<txp:upm_article_image form="form" wrapform="wrapform" />
In the form, you’d place the tags for details for the individual image. Wrapform allows you to further customize what goes around the list. :)
Recent svn changes now scream if tags aren’t defined properly.
4.0.4 should fix it up.
Offline
Re: [plugin] [ORPHAN] upm_image: More powerful image display
hello all, i am trying to get an image caption being displayed from out of additional, image revolving php code, wrapped in a form, looking like this:
<code><txp:php>
// written by jayrope july 2006 : toooooot! use at your own risk.
global $jrpimages;
$jrpimgarlength = count($jrpimages)-1;
function jrp_rI ($jrpinput) {
$jrprN = rand(0,$jrpinput);
return $jrprN;
}
$jrpcI = jrp_rI ($jrpimgarlength);
echo ‘<txp:upm_image image_id=’.$jrpimages[$jrpcI].’ />’;
echo ‘<txp:upm_img_caption />’;
</txp:php>
</code>
the image then displays nicely, but the caption doesn’t.
what am i doing wrong here?
A hole turned upside down is a dome, when there’s also gravity.
Offline
#87 2006-07-20 19:21:05
- jrphelps
- Member

- From: Fort Worth, TX
- Registered: 2006-07-13
- Posts: 30
Re: [plugin] [ORPHAN] upm_image: More powerful image display
When using upm_image as a link wrapper, would it be possible to add a rel attribute? If not, I would recommend that as a feature request. What I would like to do is use upm_image and zem_article_image to automate my portfolio with lightbox. So, basically, I would just write an excerpt and description and put the id’s of the images in the article image field, and then my form would display those images as links. When the links are clicked (thus the need for rel= as that’s how Lightbox works) the images show up in lightbox. ‘Twould be even better if I could hide the subsequent images from display but show them in the lightbox. I think it could be done, though.
If anyone has thoughts on that, I would welcome them.
Offline
Re: [plugin] [ORPHAN] upm_image: More powerful image display
jayrope wrote:
hello all, i am trying to get an image caption being displayed from out of additional, image revolving php code
txp:upm_img_caption is meant to be used inside a form which is parsed by upm_image[_custom]. No output will be rendered on direct invocation. From the plugin help:
The tags available to you from within this form are fairly self-explanatory. They will only work when the form is called by upm_image or upm_article_image.
Last edited by wet (2006-07-20 19:58:50)
Offline
Re: [plugin] [ORPHAN] upm_image: More powerful image display
@jrphelps:
No need for zem_article_image just use upm_article_image
in your article form
<txp:upm_article_image form="lightbox" />
in the lightbox form
<a href="<txp:upm_img_full_url />" rel="lightbox">
<img src="<txp:upm_img_thumb_url />" alt="<txp:upm_img_alt />" title="<txp:upm_img_caption />"
width="<txp:upm_img_thumb_width />" height="<txp:upm_img_thumb_height />" />
</a>
I think that should work. I wasn’t sure what you meant by hiding teh subsequent images.
Last edited by hakjoon (2006-07-20 20:01:01)
Shoving is the answer – pusher robot
Offline
#90 2006-07-20 20:13:46
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_image: More powerful image display
When using upm_image as a link wrapper, would it be possible to add a rel attribute?
Jamie: yes, I can do that. Just so you know, you can work around that now by using a custom form (see the plugin help). :)
Offline