Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#121 2007-03-31 17:24:31

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

Re: hak_article_image

Version 0.6.1

Small update.

  • Adds a linkclass attribute to both <txp:hak_article_image /> and <txp:hak_article_thumb />. Applies a class to the link created with link=“1”.
  • Adds a class attribute to <txp:hak_article_image_link />, <txp:hak_image /> and <txp:hak_thumbnail />

Shoving is the answer – pusher robot

Offline

#122 2007-04-03 06:20:13

hammerdog
New Member
From: California
Registered: 2007-03-29
Posts: 2

Re: hak_article_image

hakjoon wrote:
I wrote a little plugin that pulled captions for the image currently being passed by the URL awhile ago that should work. But it won’t work for the first image unless you pass the id in the url. It was designed to work with <txp:image_display /> but it should work with this setup too.

hak_image_display_caption.txt

I might be able to make an update that will make that work a little better. I haven’t checked this guy in awhile as it was never a really distributed plugin so let me know if it spits out any errors or anything (it was written for RC3)
—————————————————————————————————————————

(Sorry, I can’t figure out how to format quotes here.)

I believe that plug-in would do exactly what I need. I have a gallery page (section) set up that shows all the images for which I had Textpattern create thumbnails (using txp:image_index). If you click on a thumbnail, it takes you to a page with a full size version of the image (using image_display) with all the thumbnails underneath.

I just want the caption for the full size image. I did try your ‘hak_image_display_caption’ plug-in in hopes it had been fixed. It does show the caption, but I got the same error as decoderltd (tag_error <txp:hak_image_display_caption/> -> Warning: Missing argument 3 for dowrap() on line 2308). Would this be an easy fix?

(I only installed Textpattern this past week and am still trying to learn it. I love its flexibility!) Thanks in advance.

Offline

#123 2007-04-03 07:21:21

hammerdog
New Member
From: California
Registered: 2007-03-29
Posts: 2

Re: hak_article_image

Okay, I seem to have fixed it.

I changed this: return doWrap($out, $wraptag)

To this: return doWrap($out, $wraptag, $break, $class)

Was that the right thing to do?

Offline

#124 2007-04-03 13:44:54

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

Re: hak_article_image

That’s the right fix. That plugin was written for a really old version of Textpattern and no one really used it, so I didn’t really update it. Maybe I’ll at least fix that warning since two people have wanted it lately. (the fix is just what you did so you are good)

BTW. You can also use <txp:hak_article_image urloverride="1" /> which behaves similarly. Although maybe not exactly how you want. But it will also give you access to the caption element.


Shoving is the answer – pusher robot

Offline

#125 2007-04-08 15:55:35

photonomad
Member
Registered: 2005-09-10
Posts: 290
Website

Re: hak_article_image

Great plugin!!!

I was just wondering if it would be possible to add Next and Previous links while using the page/anchor settings for this plugin. (rather than navigating by clicking on each thumbnail to view an image) I realize it would probably be a complicated addition to the plugin, but I thought I’d throw it out there as an idea.

I do realize that you can get this result by using lightbox/slimbox — but even that can cause some confusion to visitors, as the navigation isn’t readily visible and changes location as different image sizes/orientations appear.

Offline

#126 2007-04-09 00:18:07

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

Re: hak_article_image

That should be possible. Let me investigate how involved that would be to implement.


Shoving is the answer – pusher robot

Offline

#127 2007-04-09 00:32:30

photonomad
Member
Registered: 2005-09-10
Posts: 290
Website

Re: hak_article_image

Thanks for investigating. I look forward to your findings!

On a side note, I figured out how to tweak the slimbox css to make the prev and next gifs stay visible and in the same place regardless of photo size.
Here is a little example

Also, I’d be interested if anyone knows how to tweak the slimbox code so that the caption box/bottom stays in place (i.e. doesn’t animate and doesn’t appear after the photo transition). I DO know that I can make animateCaption “false” — but it still disappears, then appears after each photo transition — not a big deal, but I think the motion/flicker at the bottom distracts from the images.

Offline

#128 2007-04-21 14:52:47

FRIIIEEK
Member
From: Düsseldorf
Registered: 2007-03-23
Posts: 17

Re: hak_article_image

Hello out there!

I liked your Plugin very much! Its just that thing i was looking for. Great idea and well done!

But here is my question: ;)
How can I add the category- and section-name to the URL?

Unfortunately my php-knowledge is as bad as… erm, you don’t wanna know! so i’m unable to configure the plugin by myself. :(
can you help me please?

.greetz
FRIIIEEK

Offline

#129 2007-04-22 15:34:07

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

Re: hak_article_image

You can pass a section using a linktype of section and passing the section name using the section attribute. There isn’t a way to pass a category yet. I’ll see about adding category and section-category types to the link options.


Shoving is the answer – pusher robot

Offline

#130 2007-04-22 17:06:27

FRIIIEEK
Member
From: Düsseldorf
Registered: 2007-03-23
Posts: 17

Re: hak_article_image

You would really do that?
I hope you got me right.
I need to add to the URL the section and category i’m currently in.

i.e.
i’m on http://SERVERNAME/textpattern/index.php?s=Cat&c=Catswith2tails
and there’s a link to the article ID 12 with picture ID 7
the URL should look like this:
http://SERVERNAME/textpattern/index.php?s=Cat&c=Catswith2tails&id=12&p=7

You see?

Thanks for helping!

Last edited by FRIIIEEK (2007-04-22 17:30:47)

Offline

#131 2007-04-23 01:11:32

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

Re: hak_article_image

Version 0.6.2

  • Adds new category and section-category linktypes.
  • Adds new <txp:hak_image_alt /> form tag.
  • fixes a bug with messy URLs.

Get the update


Shoving is the answer – pusher robot

Offline

#132 2007-04-23 02:34:14

photonomad
Member
Registered: 2005-09-10
Posts: 290
Website

Re: hak_article_image

Thanks for the update! This is such a great plugin.

I was wondering if it is possible to ‘turn off’ the alt and title attributes for the img tag? It would be nice to be able to put code and/or quotes in the caption field — right now, it breaks the img output because the caption shows up in the title=”“ area of the img.

Offline

Board footer

Powered by FluxBB