Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#265 2008-11-09 15:08:12

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

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

I haven’t tested this, but something like it should work. Of course you may want to do something fancy with it, but here’s the bare bones.

<txp:upm_article_image form="popup_img_caption" />

Form, “popup_img_caption”:

<a href="<txp:upm_img_full_url />" onclick="upm_pop_img(this.href, '<txp:upm_img_full_width />', '<txp:upm_img_full_height />', '<txp:upm_img_name />', '<txp:upm_img_caption escape="html" />'); return false;"><img src="<txp:upm_img_thumb_url />" width="<txp:upm_img_thumb_width />" height="<txp:upm_img_thumb_height />" alt="<txp:upm_img_alt escape="html" />" title="" /></a><br />
<txp:upm_img_caption />

Last edited by Mary (2008-11-13 17:11:15)

Offline

#266 2008-11-10 12:17:50

Gallex
Member
Registered: 2006-10-08
Posts: 1,313

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

Mary wrote:

I haven’t tested this, but something like it should work…

almost there…but, big pictures doesn’t open in popup window anymore

Offline

#267 2008-11-11 17:03:38

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

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

Check the source output, what’s there?

Offline

#268 2008-11-13 11:27:50

Gallex
Member
Registered: 2006-10-08
Posts: 1,313

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

Mary wrote:

Check the source output, what’s there?

you mean this:

<a href="http://www.muinasjutupidu.ee/textpattern/images/32.jpg" onclick="upm_pop_img(this.href, '430', '323', 'raudkull2.jpg', isane raudkull saagijahil); return false;"><img src="http://www.muinasjutupidu.ee/textpattern/images/32t.jpg" width="90" height="67" alt="raudkull" title="" /></a><br />
isane raudkull saagijahil
</div>

the page itself

Last edited by Gallex (2008-11-13 11:28:19)

Offline

#269 2008-11-13 17:16:01

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

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

Hmm. There’s one mistake – there should be quotes around <txp:upm_img_caption escape="html" /> (see updated code above).

Offline

#270 2008-11-14 08:29:13

Gallex
Member
Registered: 2006-10-08
Posts: 1,313

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

Mary wrote:

Hmm. There’s one mistake – there should be quotes around <txp:upm_img_caption escape="html" /> (see updated code above).

perfect! thank you very much Mary!

Offline

#271 2008-11-20 16:43:41

roelof
Member
Registered: 2005-03-27
Posts: 647

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

Hello,

I have a question.
Is there a way i can sort the images on the day they were made ?

Roelof

Offline

#272 2008-11-21 10:04:58

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

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

You can sort by the date they were uploaded, since that’s the only date that’s stored in the database.

Offline

#273 2009-01-04 04:43:12

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

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

Is the tag <txp:upm_img_full_url /> only usable in a form?

I am trying to output a text link to an articles image to use shadowbox or lightbox. For some reason I am not getting any url output.

<ul class=“gallery_nav”>
<li><a href=”<txp:upm_img_full_url />” rel=“shadowbox”>Image Link</a></li>
<li><a href=“http://blah.com”>Back</a></li>
</ul>

I guess I confused about what context to use it in. However, I am successfully using it to create thumbnails in combo with php imageresizer. Here is what I have for that:

i_img_125_sq

<img src=”/image.php?width=125&amp;cropratio=1:1&amp;image=<txp:upm_img_full_url />” alt=”<txp:upm_img_alt />” />

f_thumbs_big

<dd>
<a href=”<txp:permlink />” title=”<txp:title />”><txp:upm_article_image form=“i_img_125_sq” /></a>
</dd>


Art Rogue – Fine Art Photography

Offline

#274 2009-01-04 21:02:33

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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

Hi Matt,

can you try this?

<li><a href="<txp:upm_article_image><txp:upm_img_full_url /></txp:upm_article_image>" rel="shadowbox">Image Link</a></li>

La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#275 2009-01-04 21:55:46

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

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

Yes, that worked. Thank you very much maniqui. I’m assuming that by using txp:upm_article_image as a wrap tag solved the problem. Is that correct? I wonder why it is working in the example I posted earlier in this thread?


Art Rogue – Fine Art Photography

Offline

#276 2009-01-06 14:58:14

mrjysta
Member
Registered: 2008-09-22
Posts: 89

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

Hi all,

Can anyone give me any advice on the tags required for populating the initial home page x with the articles 1st image linking to it’s specific individual article “x. Following the html structure in the examples/.

<div class=“pfilebox”><a href=”#”><img class=“pfilepic” src=“images/p_picx.jpg” alt=“profile pic”/><strong>Article 1</strong></a></div>
<div class=“pfilebox”><a href=”#”><img class=“pfilepic” src=“images/p_picx.jpg” alt=“profile pic”/><strong>Article 1</strong></a></div>
<div class=“pfilebox”><a href=”#”><img class=“pfilepic” src=“images/p_picx.jpg” alt=“profile pic”/><strong>Article 2</strong></a></div>
<div class=“pfilebox”><a href=”#”><img class=“pfilepic” src=“images/p_picx.jpg” alt=“profile pic”/><strong>Article 3</strong></a></div>
<div class=“pfilebox”><a href=”#”><img class=“pfilepic” src=“images/p_picx.jpg” alt=“profile pic”/><strong>Article 4</strong></a></div>
<div class=“pfilebox”><a href=”#”><img class=“pfilepic” src=“images/p_picx.jpg” alt=“profile pic”/><strong>Article 5</strong></a></div>

Or do I need to re-structure the html a bit?

Just finished building my static forms but bit stuck on the form for the population of the images in the main page with upm_image

Thanks

Last edited by mrjysta (2009-11-26 16:08:16)

Offline

Board footer

Powered by FluxBB