Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#205 2007-10-26 15:59:31

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

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

Can anyone give an example of how to use <txp:upm_img_href /> as a wrapping tag in a form, as mentioned in the help (quoted below)?

<txp:upm_img_href />

Description: website url to make the image link to, as passed by the url parameter.

If used as a wrapping tag, it will turn whatever it surrounds into a link.

Maybe I’m making things to complicated…Thanks for any help.

Last edited by nabrown78 (2007-10-27 15:06:52)

Offline

#206 2007-10-27 15:06:38

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

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

To Jeremy:
Logoleptic is correct, upm_img_full_url is what you want to output the full url of the image. upm_img_href will out put whatever is specified in the “url” attribute of the <txp:upm_image /> tag. It is intended to make it possible to make the image a link, but I can’t figure out quite how to use it.

Last edited by nabrown78 (2007-10-27 15:07:17)

Offline

#207 2007-10-29 19:12:12

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

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

nabrown78 wrote:

Logoleptic is correct, upm_img_full_url is what you want to output the full url of the image. upm_img_href will out put whatever is specified in the “url” attribute of the <txp:upm_image /> tag. It is intended to make it possible to make the image a link, but I can’t figure out quite how to use it.

I’ve never had occasion to use <txp:upm_img_href />, so I’m not entirely certain how it works. Based on the documentation, however, it would seem to be most useful when you want more than just your image to be a link. If you just want the image to link to something, you’d only use the url attribute; if you want the image and the caption below it to link to something, you’d use upm_img_href as a wrapping tag around both. Apparently it gets the URL for the link from the url attribute of the contained image tag.

This seems like an awkward approach, at least at face value, but it’s what I can surmise from the instructions. I’ve sometimes had to experiment with this plugin to see what all the tags do. So far the results have seemed pretty logical, and the documentation ended up making more sense retroactively. If you try something similar yourself, please let us know what you find out about the upm_img_href tag; it’d save us some trouble. :-)

I know that Mary is really busy, but if there’s one “feature” I’d request for this plugin it would be code examples in the docs. Good docs can make a world of difference for users, especially with a relatively complex and feature-rich plugin like this one. I think zem_contact_reborn does a great job on this front. Its documentation gives you just enough starter material to get going, and closes with some hints at the incredible flexibility that’s possible for more advanced users.

Offline

#208 2007-12-16 00:05:13

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

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

I’m doing a test upgrade from 4.0.4 to 4.0.5 on localhost, and I hit the following error right after login:

A problem occured while loading the plugin: upm_image -> User_Warning: Duplicate entry '1-upm_image_load_script' for key 1
insert into txp_prefs set 
  name = 'upm_image_load_script',
  val = '1',
  html = 'yesnoradio',
  prefs_id = 1,
  type = 2,
  event = 'admin',
  position = 0
on line 84

The txp_prefs has only one entry for upm_image_load_script, I assume because Txp stopped trying to add another when it encountered the error. The message has not appeared again. Should I be concerned, or just go about my business?

Offline

#209 2007-12-16 08:30:08

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

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

I can’t remember where it was posted, but this kind of error message occurred a lot when upgrading, and can be safely ignored.

Offline

#210 2007-12-16 18:05:20

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

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

Thanks, Jonathan. :-)

Offline

#211 2007-12-17 16:16:31

sauo
Member
Registered: 2005-07-05
Posts: 11

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

Hello,
I get a strange error when I’m trying to install this plugin:

Fatal error: Call to undefined function gzinflate() in /home/users/…/textpattern/include/txp_plugin.php on line 207

The same situation happens when I try to install upm_img_popper. I have TXP 4.0.5 and two other plugins: cnk_section_tree and rvm_if_this_article. Any ideas why it happens?
Thanx in advance!

Offline

#212 2007-12-17 17:46:57

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

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

@sauo: These plugins are distributed in an encoded, compressed format. Your server’s installation of PHP has been compiled without zlib, which is necessary to decompress them. Talk you your hosting provider about getting zlib support in PHP. If they refuse, find a better host. :-)

Last edited by Logoleptic (2007-12-17 17:47:13)

Offline

#213 2007-12-17 18:36:57

sauo
Member
Registered: 2005-07-05
Posts: 11

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

I see.. Ok. Thanx for the info Logoleptic! :)

Offline

#214 2007-12-17 20:31:53

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

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

No problem. :)

Offline

#215 2007-12-28 00:20:28

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

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

If you go to the download page, I now offer both a compressed and uncompressed version of each plugin. :)

Offline

#216 2008-01-12 05:34:48

Kjeld
Member
From: Tokyo, Japan
Registered: 2005-02-05
Posts: 446
Website

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

Hi Mary,

Love this plugin, but I ran into a little problem since I installed the MLP plugin.

When using the upm_article_image popup, the MLP plugin adds a language marker (en, ja, nl, etc.) to the image address, eg. “http://www.mysite.com/en/images/5.jpg”. As a result, the image cannot be found.

This is the upm_article_image tag that I use:

<txp:upm_article_image type="popup" offset="1" />

Any idea how I can fix this issue?


Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
JapaneseStreets.com – Japanese street fashion (mostly txp)

Offline

Board footer

Powered by FluxBB