Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2006-04-18 00:36:02

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

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

Mary,

Would you consider adjusting this fine plug-in to output a list of images (with the ability to use a form) based on image categories. Kinda like the suggestion I made here?

I could really use that capability.

Offline

#14 2006-04-18 01:46:28

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

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

maniqui wrote:
as I understand that, you recommend to not have both plug-ins working at the same time, am I right?

upm_image is designed to be used with upm_img_popper v1.0. upm_img_popper v 0.10 has the same functionality as upm_image 0.2 + upm_img_popper 1.0, but the combined plugin will no longer be mainatained. So just install upm_image and upm_img_popper 1.0 and you will be exactly where you were before, but now someone can use just the image tags without the popper.

Does that make more sense?


Shoving is the answer – pusher robot

Offline

#15 2006-04-18 01:49:42

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

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

Ace of Dubs wrote:
I cant post my code… the forum keeps trying to parse and it gets all screwy. How are you guys posting code snippets here?

Wrap your code in code tags.

<code> Like this. Hit quote to see how I did it.</code>

This FAQ also explains the other methods.


Shoving is the answer – pusher robot

Offline

#16 2006-04-18 01:50:43

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

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

:)

thank you, hakjoon…

I didnt understand that there is a new version (1.0) of upm_img_popper… sorry!

Everything makes sense now.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#17 2006-04-18 04:24:29

Ace of Dubs
Member
Registered: 2006-04-17
Posts: 446

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

Thanks hakjoon!

Here is the snippet ofmy “excerpt” form.. The little brat refuses to show my upm_images..

<code><h2><a href=”<txp:permlink />”><txp:title /></a></h2>
<p class=“info”><txp:posted /> | <a href=”<txp:permlink />#discuss”><txp:comments_count /> comments</a><txp:kgr_safe_excerpt words=“65” styleclass=“plink” linktext=”&rarr; Read More” /></p></code>

Offline

#18 2006-04-18 04:26:41

Ace of Dubs
Member
Registered: 2006-04-17
Posts: 446

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

Another quick question.. is there an easy way for me to link upm_images to an article and then have the article show a larger version of the image? Am I asking for too much?

Last edited by Ace of Dubs (2006-04-18 04:26:55)

Offline

#19 2006-04-18 04:28:45

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

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

kgr_safe_excerpt strips the images.

:)


Offline

#20 2006-04-18 11:20:58

Ace of Dubs
Member
Registered: 2006-04-17
Posts: 446

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

D’OH!

slaps hand on forehead

I knew it had to be something dumb simple. Now all I need are clickable images and I will be in TXP heaven!

Offline

#21 2006-04-18 12:31:18

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

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

Ace of Dubs wrote:
Another quick question.. is there an easy way for me to link upm_images to an article and then have the article show a larger version of the image? Am I asking for too much?

You could probably do something like this in your excerpt form


<txp:permlink><txp:upm_article_image type="thumb"></txp:permlink> blah blah blah your text here

then in your article form

bc..
<txp:upm_article_image> blah blah blah your text here

replace upm_article_image with upm_image as desired.


Shoving is the answer – pusher robot

Offline

#22 2006-04-21 05:28:44

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

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

I think I found a bug:

if using multiple images (= multiple images IDs in the article image input field), the “class” attribute given to “upm_article_image” isn’t being applied to any of the images in the parsed output.

thanks.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#23 2006-04-22 03:55:21

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

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

In lists the class is applied to the list wraptag, not individual images within the list.

Offline

#24 2006-04-23 01:02:45

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

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

OK, if that wasnt a bug, maybe this one is:

I have this article form:
<code><li><txp:permlink><txp:title /><br />
<txp:upm_article_image class=“flog” limit=“1” type=“thumbnail” /></txp:permlink></li></code></code>

I call it from a page template with <txp:article_custom section="fotolog" form="floglist" />
It outputs a list of articles, with the thumbnail.

The problem is: the first thumbnail doesnt get the “flog” class.
All the other thumbnails in the list get the “flog” class.

Second: I have noticed that when using that code (type="thumbnail"), if an image doesnt have a thumbnail asociated (= no thumbnail for that image), i get this errors:

<code>tag_error <txp:upm_article_image class=“flog” limit=“1” type=“thumbnail” /> -> Warning: getimagesize(): Unable to access /home/exaudi/public_html/images/9t.gif on line 721
tag_error <txp:upm_article_image class=“flog” limit=“1” type=“thumbnail” /> -> Warning: getimagesize(/home/exaudi/public_html/images/9t.gif): failed to open stream: Conseguido on line 721</code>

thanks for the magic, Mary.

pd: if you want, you can see the first “bug” here (look the list on the right side and check the class for each thumbnail: the first one doesnt have the class aplied).


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB