Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#31 2006-05-07 17:04:45
- Rexel
- Member
- Registered: 2005-11-18
- Posts: 26
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Sorry about my late reply.
I’ve read the plugin help but still getting a bit confused.
The situation I’m facing is this:
I have an article where a set of pictures will be displayed, 5 or six max.
I’m using an ajax function to swap the pictures which will be linked by numbers 1-6 all in the same page.
The trouble is I can’t output the image url in a fashion that will be easy for my client to add and type.
Maybe an example will help:
Trying to rewirte this code
<a onclick="return swapImage(this)" href="images/120.jpg" title="pic1">1</a>
into somthing more user freindly to type, thats where your great plugin comes in. I’ve tried:
txp:upm_image type="image" image_id="120" id="imageHolder">1</txp:upm_image>
First of all the code above just output tilte">
The other thing is that I need to add the javascript onclick call to the link but don’t know how to go about that.
I hope this will help you help me.
Offline
#32 2006-05-07 17:19:41
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_image: More powerful image display
What you want to do is make use of the custom form ability. In the plugin help, go to the “Customizing Output” section. That should explain everything you need to know.
First of all the code above just output
tilte">.
Okay, thanks, I’ll look into that.
Offline
#33 2006-05-07 21:08:59
- rajo
- Member
- Registered: 2004-03-13
- Posts: 43
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Is there a way to get this plugin to work with lightbox 2.0? I made a custom form for it that includes a relation attribute so I could add rel=“lightbox” to a thumbnail form’s ‘a’ tag. Lightbox is working if I just output a hard-coded link but it breaks if the upm_image tag outputs it.
Code On Page – <code><a href=“http://path/to/fullsize/image.jpg” rel=“lightbox” title=“Caption”><img src=“http://path/to/thumbnail/image.jpg” width=“100” height=“100” alt=“ALT” /></a></code>
my upm_image custom form – <code><a href=”<txp:upm_img_full_url />” rel=“lightbox” title=“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></code>
Thanks in advance
Offline
#34 2006-05-08 23:43:46
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Do you get any kind of JavaScript error?
Offline
#35 2006-05-08 23:46:35
- rajo
- Member
- Registered: 2004-03-13
- Posts: 43
Re: [plugin] [ORPHAN] upm_image: More powerful image display
no, the lightbox script just doesn’t run, the fullsize image opens up in a new blank window. However, I have gotten moo.fx scripts to run but their based on ID’s that are hardcoded into the page, not from article or output forms.
Offline
#36 2006-05-09 00:01:53
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Weird. Is this live anywhere? I don’t know if I’ll be able to figure it out, but maybe someone else can if I can’t.
Offline
#37 2006-05-09 00:06:02
- rajo
- Member
- Registered: 2004-03-13
- Posts: 43
Re: [plugin] [ORPHAN] upm_image: More powerful image display
It is live but unfortunately I removed the lightbox script cause it wasn’t working and settled on a javascript fade in effect. I was using lightbox 2.0.2 though, if that’s of any help.
Offline
#38 2006-05-10 16:35:26
- Rexel
- Member
- Registered: 2005-11-18
- Posts: 26
Re: [plugin] [ORPHAN] upm_image: More powerful image display
ok so I used a form to output links to some images but got stuck on how to get different numbers in the links.
form upm_img_popper
<a href="<txp:upm_img_full_url />" title="<txp:upm_img_caption />">1</a>
In article:
<txp:upm_image_id="120" form="upm_img_popper" />
<txp:upm_image_id="119" form="upm_img_popper" />
<txp:upm_image_id="118" form="upm_img_popper" />
It works great, but all the links have the same text, number 1 instead of 1, 2, 3. Not surprising as it’s coded that way in the form, but how can you output different numbers according to how many pictures are to be linked.
I’ve tried <txp:upm_img_text /> in the form instead of 1 but nothing shows up as I’m not using <txp:upm_image /> as a wrapper.
Thanks in advance
Offline
Re: [plugin] [ORPHAN] upm_image: More powerful image display
rajo wrote:
no, the lightbox script just doesn’t run, the fullsize image opens up in a new blank window. However, I have gotten moo.fx scripts to run but their based on ID’s that are hardcoded into the page, not from article or output forms.
That might be a problem with the lightbox script not loading consistently. Check <a href=“http://forum.textpattern.com/viewtopic.php?pid=108901#p108901”>here</a> and <a href=“http://forum.textpattern.com/viewtopic.php?pid=108129#p108129”>here</a>
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#40 2006-05-10 17:13:42
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_image: More powerful image display
It works great, but all the links have the same text, number 1 instead of 1, 2, 3. Not surprising as it’s coded that way in the form, but how can you output different numbers according to how many pictures are to be linked.
That’s tricky. You could try making use of zem_nth.
Offline
#41 2006-05-10 17:31:53
- Rexel
- Member
- Registered: 2005-11-18
- Posts: 26
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Thank you Mary.
I’ll check zem_nth if not I’ll just use a & instead, not what wanted but that will do.
Thank you for a great plugin.
Offline
#42 2006-05-11 05:47:10
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_image: More powerful image display
v.0.3
This should fix some bugs. Let me know if anything’s still broken.
Offline
#43 2006-05-29 20:28:11
- Charlie Chalk
- Member
- Registered: 2005-09-06
- Posts: 51
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Mary
Sorry if this question is covered in the ‘help’ file, couldn’t see anything so I’ll ask:
I have used the standard article image tag in textpattern and everything works great. I now need to add two images to each article (sometimes three) and I believe I can’t use the standard tag for that anymore.
I’ve installed your plug-in and everything works fine if I hard code the img ID’s into the form. What I’d like is to have a way of entering the image ID into the box on the article page as the person that enters most of the text doesn’t wan’t to get too involved in the code of the site.
I guess there is a way of doing this, can you let me know please – or point me to where I can find the answer (really sorry if it is in the help file!)
Thanks
CC
Offline
#44 2006-05-29 21:20:26
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Offline
#45 2006-06-07 11:44:18
- davidarthurs
- Member
- Registered: 2006-06-06
- Posts: 30
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Hi, Could someone explain what upm_image and upm_img_popper actually do? I can’t find any basic explanation anywhere. thanks.
(new to TP)
Offline