Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#226 2008-04-09 09:58:20
- masa
- Member
- From: North Wales, UK
- Registered: 2005-11-25
- Posts: 1,095
Re: [plugin] [ORPHAN] upm_image: More powerful image display
alex9142 wrote:
The tag <txp:upm_image type=“popup” image_id=“7” /> shows the big image in a pop up window, but I have seen in some blogs (powered by textpattern) the image been shown in a normal window, inside the article (just one image).
When you say “normal window” do you by any chance mean one of those Lightbox-style effects like for instance here ?
You can do that with upm_image, too, but there’s more work involved. The first thing is to get the necessary javascript libraries and css linked in the head of your page template.
The second step is to create a custom form for upm_image that will render the thumbnail with a link to the large image and the neccessary rel="lightbox attribute.
I must admit that I haven’t used upm_image for that, but I think this should work:
<a href="<txp:upm_img_full_url />" rel="lightbox" title="<txp:upm_img_caption />" ><img src="<txp:upm_img_thumb_url />" width="<txp:upm_img_thumb_width />" height="<txp:upm_img_thumb__height />" alt="<txp:upm_img_alt />" /></a>
This should display the large image with its caption underneath. Save the form as for instance “lightbox”.
Then in your article call your image with this tag: <txp:upm_image image_id="7" form="lightbox" />
Last edited by masa (2008-04-09 09:58:56)
Offline
#227 2008-04-09 13:54:45
- alex9142
- Member
- Registered: 2008-03-17
- Posts: 45
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Hi Colak! Hi Masa!
Thank you for your replay!
Please, take a look in this website:
http://jonathanstubbs.com/photos/?set=72057594087267118
When a thumbnail is clicked, the image (in a bigger size) is shown in the same page.
Offline
#228 2008-04-09 14:24:10
- masa
- Member
- From: North Wales, UK
- Registered: 2005-11-25
- Posts: 1,095
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Ah, that’s a different approach.
Fom what I can tell Jonathan is displaying a Flickr set. There are several plugins worth checking out at the Txp resources site. While you’re there also check out the Galleries category of plugins.
Then there’s also a tutorial on how to create a photoblog that could be helpful.
Offline
#229 2008-04-09 16:28:16
- alex9142
- Member
- Registered: 2008-03-17
- Posts: 45
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Hi Masa!
Thank you for your help. I will try to install the vdhflickr :
http://code.google.com/p/vdhflickr/
Offline
#230 2008-04-09 17:58:55
Re: [plugin] [ORPHAN] upm_image: More powerful image display
I use the vdh_flickr plugin for the photo page, as Martin points out.
Offline
#231 2008-04-09 18:04:17
- alex9142
- Member
- Registered: 2008-03-17
- Posts: 45
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Well, unhappilly I was not sucessful… my server only has the PHP 5, not the PHP 4 anymore.
But I would like thank everybody!
Offline
#232 2008-04-09 18:27:33
- masa
- Member
- From: North Wales, UK
- Registered: 2005-11-25
- Posts: 1,095
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Alexandre,
don’t give up just yet! :-)
I’m sure, that if you posted a new thread in the How do I? section you will get some helpful suggestions.
Offline
#233 2008-04-09 18:33:37
- alex9142
- Member
- Registered: 2008-03-17
- Posts: 45
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Did anyone already say that you are a nice brother? thank you!
Offline
#234 2008-05-14 06:54:44
- idoremus
- Member

- From: NW United States
- Registered: 2008-04-16
- Posts: 19
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Hi,
A newbie question. I discovered this plugin while searching for a way to link the image id to the CSS file. I have tried different versions of this coding:
#header {
background: #eee url(<txp:upm_img_full_url image_id=“19” /> ) no-repeat left top;
}
Could someone please show me the light?
Thanks in advance,
Ian
Offline
#235 2008-05-14 07:00:00
Re: [plugin] [ORPHAN] upm_image: More powerful image display
If you are using the plugin the the css tab I don’t think that it would work did you try something like:
#header { background: #eee url(/images/19.jpg ) no-repeat left top;
}
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#236 2008-05-14 07:17:18
- idoremus
- Member

- From: NW United States
- Registered: 2008-04-16
- Posts: 19
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Hi Colak,
Yes that was my first attempt. If that is the correct way to do it, I might have another problem.
I had found this thread and plugin from here which looked similar to what I was trying to accomplish.
Thanks again,
Ian
Offline
#237 2008-05-14 07:33:08
Re: [plugin] [ORPHAN] upm_image: More powerful image display
idoremus wrote:
#header { background: #eee url(<txp:upm_img_full_url image_id=“19” /> ) no-repeat left top;
}
Textpattern tags are not processed for the style sheets, so this won’t work without a few additional pull-ups. You’d better stick with the static image URL, i.e. /images/...jpg
Offline
#238 2008-05-14 11:10:06
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,319
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Wasn’t this why ako_css was written? Unfortunately, I never got it running, but this might be a “personal flaw” ;)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#239 2008-05-14 12:44:12
Re: [plugin] [ORPHAN] upm_image: More powerful image display
idoremus wrote:
Hi Colak,
Yes that was my first attempt. If that is the correct way to do it, I might have another problem.
I had found this thread and plugin from here which looked similar to what I was trying to accomplish.
Thanks again,
Ian
I’m not sure what you are trying to accomplish but your code should work if instead of writing the particular css in the styles tab you do it in the pages one.
you can include something like
<style type="text/css">
#header { background: #eee url(<txp:upm_img_full_url image_id="19" /> ) no-repeat left top;
}
</style>
Having said that, unless you want the image to change (in whatever way), I cannot see why not use the /images/19.jpg. Maybe if you can explain to us what it is you are trying to achieve we will be able to make proper suggestions.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#240 2008-05-15 04:44:01
- idoremus
- Member

- From: NW United States
- Registered: 2008-04-16
- Posts: 19
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Colak,
Thank you for your patience. I am building my first site. I had seen an example of a website (built without a database) that used a background image in the header. On this site they linked to the image through the CSS file. I was trying to accomplish the same task using Textpattern and attempted to see how the style sheet would link to the images folder. I tried to use “url(/images/19.jpg )“without success.
When I searched for help in the forums I ran across “upm_image” and thought maybe this would be the missing link. That is where I am at. Any suggestions would be appreciated.
Thanks again,
Ian
Offline