Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » upm_img_popper

#469 2005-12-17 00:52:31

ruminator
Member
From: Carson City, NV
Registered: 2005-02-01
Posts: 57
Website

Re: upm_img_popper

Don’t be sorry and I wasn’t fishing. :) I just really think the upm_img_popper plug-in is the stuff, that’s all. It makes my posting of images, which I really like to incorporate in my weblog, much easier.

But thanks for the update, anyway! :D


Search is your friend… Think before writing…

Offline

#470 2005-12-17 00:54:59

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

Re: upm_img_popper

I knew you weren’t, your post just reminded me (“oh crap! I forgot!”). :)

Offline

#471 2005-12-17 00:57:59

ruminator
Member
From: Carson City, NV
Registered: 2005-02-01
Posts: 57
Website

Re: upm_img_popper

ROFL! Oh yes! I’ve had those moments. My kids claim early-onset old-timer’s disease. I just claim I’m busy! :D


Search is your friend… Think before writing…

Offline

#472 2005-12-23 20:16:51

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: upm_img_popper

Just did a search and didn’t quite find what I was looking for.

I have placed a thumbnail INSIDE the body of an article, and at the same time, appended the large version of the same image as the “article image”.

No problems per se with the plugin, just wondering how I can have the thumbnail disappear in the article’s individual page.

What I would like is:

-List of articles, with thumbnails attached, maybe next to an excerpt
-Click on the article permlink, and the thumbnail goes away, leaving only the large image which is assigned as the “article image”.

Tried a few ways (forms etc) but could use a nudge in the right direction!

Offline

#473 2005-12-23 21:30:51

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

Re: upm_img_popper

Try wrapping your thumbnail within an if_individual_article conditional tag.

Offline

#474 2005-12-24 00:06:53

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: upm_img_popper

I don’t really see how to do that. How to insert a conditional that says get me the article_image but not the article_image thumbnail, which is inserted in the body of the article?

Offline

#475 2005-12-24 03:27:55

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

Re: upm_img_popper

You said:

I have placed a thumbnail INSIDE the body of an article…

This is via a tag/attributes something like the following?

<txp:upm_image id="34" />

If so, do the following instead:

<txp:if_individual_article><txp:upm_image id="34" /></txp:if_individual_article>

Offline

#476 2005-12-24 09:01:17

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: upm_img_popper

Its like this:

In the article body: <code><txp:upm_image type=“thumb” image_id=“15” class=“left” /> Then the rest of the article……bla bla</code>

Attached to the article as the article image (not in the body) is the same image id 15 but the large version of the image. The large version of the image is now the “article_image”.

I pull out the article in the form like so:

txp body
txp article image

Naturally, both images show up in the article. In the list form its ok, because I only call the txp body.

Thanks for the help.

Offline

#477 2005-12-24 11:58:16

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

Re: upm_img_popper

Okay. I double-checked and this method works, I just got it backwards what you wanted for individual versus list. Specifically:

<txp:if_article_list><txp:upm_image type="thumb" image_id="15" class="left" /></txp:if_article_list>

You’d put that right into your post body, and the thumbnail won’t show up on the individual article page.

Offline

#478 2005-12-24 16:30:26

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: upm_img_popper

That’s beautiful Mary. Thank you again for the advice and all your hard work on Christmas Eve. May I wish you a merry christmas and a wonderful new year!

Jonathan

Offline

#479 2005-12-28 17:24:17

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: upm_img_popper

Hi Mary,

Wonderful plug-in…Thank You!

Quick questions (I hope): I can’t get “show_title” to work when “type” is set to popup. Is there a way to solve that?

Also, I could be missing this…but I can’t find a way to apply a class to the break tag…which in my case is a div.

Thanks in advance for the help.


Tom

Offline

#480 2005-12-28 18:14:35

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

Re: upm_img_popper

v. 0.10 released.

…I can’t find a way to apply a class to the break tag…

That would be because you can’t. I’ve now added a new attribute, break_class.

Alternately, you can use descendant selectors. Say you apply a class to the wraptag, “blue”. Then you’d do:

.blue div {
/* style the breaktag */
}

I can’t get “show_title” to work when “type” is set to popup. Is there a way to solve that?

In that case, title is applied to the link, rather than the image itself.

Offline

  1. Index
  2. » Archives
  3. » upm_img_popper

Board footer

Powered by FluxBB