Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] upm_image: More powerful image display
uhm of course i call the image revolver from a form. so that
menas mean that i have to call a form out of a form that is being called out of an article entry… ???
./->in this case….
to me thaT seems alkwardly difficult. why not
<code><txp:image caption=“1”></code>
???
damn if i knew how i would write it myself….
wet wrote:
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 jayrope (2006-07-20 20:57:14)
A hole turned upside down is a dome, when there’s also gravity.
Offline
Re: [plugin] [ORPHAN] upm_image: More powerful image display
jayrope wrote:
uhm of course i call the image revolver from a form. so that menas mean that i have to call a form out of a form that is being called out of an article entry…
Probably, yes.
Offline
Re: [plugin] [ORPHAN] upm_image: More powerful image display
wet & earlier posts about same subject:
thanx very much for your indications.
the solution for a random image revolver using upm_image to display captions along with images looks like this now:
in article
<code><txp:php>global $jrpimages;$jrpimages = array (57,37,30);</txp:php>
<txp:output_form form=“art_rndImg” /></code>
in form “art_rndImg”
<code><txp:php>
// 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);
$jrpimgnow = $jrpimages[$jrpcI];
echo ‘<txp:upm_image image_id=’.$jrpimgnow.’ form=“art_rndImg2” />’;
</txp:php></code>
and in form “art_rndImg2”
<code><img src=”<txp:upm_img_full_url />” alt=”<txp:upm_img_alt />” />
<i><txp:upm_img_caption wraptag=“h4” /></i></code>
A hole turned upside down is a dome, when there’s also gravity.
Offline
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Documentation and code differ in details:
From the help texts for <txp:upm_img_text />, <txp:upm_img_caption />, <txp:upm_img_alt />:
- escape=“value”
- Default value: unset.
From the code:
function upm_img_caption($atts)
{
[...]
extract(lAtts(array(
'class' => '',
'escape' => 'html',
[...]
etc.
Offline
#95 2006-08-08 03:55:26
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Is there a way to use this plug in to just display a list of images associated with a particular category (not as thumbnails) but just hyperlinks to the images?
Any guidance would be appreciated as I search to find a solution to this item.
In the end all I am looking for is a list
CATEGORY NAME A
Image 1
Image 2
Image 3
Image 4
CATEGORY NAME B
Image 1a
Image 2a
Image 3a
Image 4a
I do not want all the image catgeories displayed, just the categories that I identify …
Thank you.
Last edited by progre55 (2006-08-08 03:58:16)
Offline
#96 2006-08-08 03:58:31
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Is there a way to use this plug in to…
Nope.
I don’t know of a plugin that does. Hope you can find something.
Offline
#97 2006-08-08 04:00:22
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Arghhhhhhh …
But thanks for the quick reply.
Offline
#98 2006-08-14 04:03:43
- brighthearted
- New Member
- Registered: 2005-11-21
- Posts: 8
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Ok, first of all, amazing plugin!
I can teach my clients how to upload images through TxP’s content/images interface, but I’m afraid having them inject the following code into an HTML template every single time they upload a photo is out of the question.
<code><txp:upm_image image_id=”# goes here” form=“photos” /></code>
My question is, is there anyway to use “if” statements, or some other PHP magic to somehow automate this process. Otherwise to keep even a very simple listing of images updated requires a webmaster.
Is what I’m asking making sense? Is there a better way of achieving this? I just need a list of images to be output, based on what images the client uploads…
<code>
<a href=“1.jpg”><img src=“1t.jpg” /></a>
<a href=“2.jpg”><img src=“2t.jpg” /></a>
<a href=“3.jpg”><img src=“3t.jpg” /></a>
</code>
Basically a solution where the HTML code is created once, and you can forget about it, so the client is self-sufficient.
Thanks,
Brad
Last edited by brighthearted (2006-08-14 04:06:27)
Offline
#99 2006-08-14 04:10:46
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Can’t really say without knowing more about what you mean.
Is this for a photo blog or photos accompanying articles? Then they can stick the tag(s) into their article.
Offline
#100 2006-08-14 06:04:34
- brighthearted
- New Member
- Registered: 2005-11-21
- Posts: 8
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Sorry, I should have included a more specific example.
Here is the actual site I’m currently developing with TxP. This is the gallery page, just a simple list of thumbnail / links.
<a href=“http://aaron.brighthearted.com/gallery/”>http://aaron.brighthearted.com/gallery/</a>
As it stands, the client can upload photos through TxP’s image interface, but isn’t techsavy enough to go touch the code/tags in the page/template everytime he uploads a photo. Is there a way around this?
Last edited by brighthearted (2006-08-14 06:05:15)
Offline
#101 2006-08-14 06:12:45
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_image: More powerful image display
What you’ll probably want to do is either use the gallery-like built-in tags (image_index & image_display) or plugin, and use a category/categories. Then all he has to do is assign his image to a category when he uploads it, and it’ll appear. :)
This one was just made to be improvements on the tags like article_image, image and thumbnail.
Offline
#102 2006-08-18 21:26:41
- dimfish
- Member
- Registered: 2006-06-01
- Posts: 72
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Hi Mary
Do I just use <code><txp:upm_img_caption wraptag=“p” /></code> in my form to display a caption?
Offline
#103 2006-08-19 00:19:15
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_image: More powerful image display
In a form for the tag, yes, not your article form (check the “Customizing Output” section of the help doc). i.e:
<txp:upm_image form="my_customized_form" />
my_customized_form
<p><img src="<txp:upm_img_full_url />" width="<txp:upm_img_full_width />" height="<txp:upm_img_full_height />" alt="<txp:upm_img_alt />" /><br />
<txp:upm_img_caption /></p>
:)
Offline
#104 2006-08-19 10:47:44
- dimfish
- Member
- Registered: 2006-06-01
- Posts: 72
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Thanks Mary.
Can’t seem to get it to work.
I’m calling form “newsitem” in my page
newsitem:
<code>
<h3><txp:title /></h3>
<span class=“posted”>Posted: <txp:posted format=”%d %b %Y” /> by <txp:author /></span>
<txp:upm_image form=“customupmimage” />
<txp:body />
</code>
customupmimage:
<code>
<p>
<img src=”<txp:upm_img_full_url />” width=”<txp:upm_img_full_width />” height=”<txp:upm_img_full_height />” alt=”<txp:upm_img_alt />” /><br />
<txp:upm_img_caption />
</p>
</code>
Am I barking up the right tree?
Last edited by dimfish (2006-08-19 10:48:12)
Offline
#105 2006-08-19 14:05:43
Re: [plugin] [ORPHAN] upm_image: More powerful image display
you’ll probably need upm_article_image instead of upm_image.
Offline