Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#196 2008-03-31 01:24:25

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

Re: hak_article_image

That’s right. linkclass gets applied to the link. If you want to apply a class to the image you have to use a form.

<txp:hak_article_image offset="1" form="article_image_form" />

then in article_image_form

<txp:hak_article_image_link type="page">
       <txp:hak_image class="thumb" />
</txp:hak_article_image_link >

this should get you what you want.


Shoving is the answer – pusher robot

Offline

#197 2008-03-31 03:36:47

fangonk
Member
Registered: 2007-07-12
Posts: 44

Re: hak_article_image

I think this is getting closer, however now the images have disappeared entirely. Here is all the html is outputting:

</txp:hak_article_image_link >

Last edited by fangonk (2008-03-31 03:57:39)

Offline

#198 2008-03-31 04:55:54

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: hak_article_image

fangonk, remove the space between </txp:hak_article_image_link and >:

<txp:hak_article_image_link type="page">
       <txp:hak_image class="thumb" />
</txp:hak_article_image_link>

Last edited by jm (2008-03-31 04:56:20)

Offline

#199 2008-03-31 05:25:33

fangonk
Member
Registered: 2007-07-12
Posts: 44

Re: hak_article_image

That did it! Thanks guys, the textpattern community is really lucky to have so many experienced developers who are willing to work other users. Thank you.

Offline

#200 2008-04-02 19:20:36

conspirator
Member
From: Chicago
Registered: 2007-03-31
Posts: 35
Website

Re: hak_article_image

What am I doing wrong?

I’ve put the following code in my article form, but it doesn’t seem to work. Why is that?
[code]
<txp:hak_article_thumb class=“img” />
[/code]

Offline

#201 2008-04-02 19:43:31

Mike Montgomery
Member
Registered: 2005-11-28
Posts: 29
Website

Re: hak_article_image

Are those plain old quotation marks, or “smart & curly quotes”?

Offline

#202 2008-04-02 21:41:11

conspirator
Member
From: Chicago
Registered: 2007-03-31
Posts: 35
Website

Re: hak_article_image

plain ol’ quotation marks

Offline

#203 2008-04-03 02:35:53

Mike Montgomery
Member
Registered: 2005-11-28
Posts: 29
Website

Re: hak_article_image

Just to confirm a few things:

  • This works as expected? <txp:hak_article_thumb />
  • This does not work? <txp:hak_article_thumb class=“photo” />

Just to be certain, I copy/pasted an example from the hak_article_image site:

<txp:hak_article_thumb limit="5" wraptag="ul" break="li" class="wrapclass" breakclass="breakclass" />

…and noticed that those quote marks look slightly different than these:

<txp:hak_article_thumb class=“img” />

Offline

#204 2008-04-03 10:51:16

hanz
Member
From: de
Registered: 2006-02-11
Posts: 23

Re: hak_article_image

Hi,

maybe i have the same a problem but can specify it a bit more.

When I’m using:
<txp:hak_article_thumb link="0" />
Everything is working fine.

But when I’m using:
<txp:hak_article_thumb />
or
<txp:hak_article_thumb link="1" />
i get:

tag_error <txp:hak_article_image_link type="image" anchor="" section="" category="" popup="0" popwidth="0" popheight="0" rel="" class="" title=""> ->  Notice: Undefined variable:  attribs  on line 146
textpattern/lib/txplib_misc.php(574) : eval()'d code:146 hak_article_image_link()
textpattern/publish.php:970 hak_article_image_link()
processtags()
textpattern/publish.php:929 preg_replace_callback()
textpattern/lib/txplib_misc.php(574) : eval()'d code:72 parse()
textpattern/lib/txplib_misc.php(574) : eval()'d code:4 hak_article_image()
textpattern/publish.php:970 hak_article_thumb()
processtags()
textpattern/publish.php:929 preg_replace_callback()
textpattern/publish/taghandlers.php:2480 parse()

conspirator, you get kinda the same?
I thought on default link is “0” but now it seems to be “1”.
I’m using version 0.6.3

Cheers, Hannes

Last edited by hanz (2008-04-04 15:55:15)

Offline

#205 2008-04-03 21:21:23

conspirator
Member
From: Chicago
Registered: 2007-03-31
Posts: 35
Website

Re: hak_article_image

First of all —- thanks to all of you who wrote to try to help me. Unfortunately, with all of your suggestions, I still can’t get this thing to work.

Mike, you bring up an interesting point regarding the “”, so I copied your example code with no luck.

Hanz, I tried your suggestion with both link=“1” AND link=“0” to no avail.

…maybe I’m using it incorrectly. I have it in an article form. I want to dynamically flow in articles and a thumbnail of their image. Just so you can see it, here is what I have in the article form:

<txp:hak_article_thumb link="0" /> <h3><txp:permlink><txp:title /></txp:permlink></h3> <txp:excerpt /><txp:permlink>...more</txp:permlink>

Let me know what you think.

Last edited by conspirator (2008-04-03 21:21:36)

Offline

#206 2008-04-04 15:29:13

hanz
Member
From: de
Registered: 2006-02-11
Posts: 23

Re: hak_article_image

Hi conspirator,

It wasn’t really a suggestion for helping you.
I just thought you may have the same problem as me.
Now we both have our own problem i think :)

I justed switched to upm_image, which gave me anything i needed. I used it like that:

<a rel="lightbox" href="<txp:upm_img_full_url />" title="<txp:upm_img_caption />" class="img_shadow">
 <img src="<txp:upm_img_thumb_url />" alt="<txp:upm_img_alt />" />
</a>

Last edited by hanz (2008-04-06 17:44:10)

Offline

#207 2008-04-10 23:38:45

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

Re: hak_article_image

Sorry guys been away. class only gets applied to the wraptag. That’s just standard txp behavior. If you want to apply a class the thumbnail you have use a form. This message has some sample code.

The attribs thing that hanz is seeing is a bug that was discovered a couple days before I went away so I haven’t had a chance to fix it yet. I think it only shows up in debugging mode though.

I have to look into the default link behavior and see what’s going on there.


Shoving is the answer – pusher robot

Offline

#208 2008-04-15 09:48:49

hanz
Member
From: de
Registered: 2006-02-11
Posts: 23

Re: hak_article_image

Hi hakjoon,

thanks for your replay anyway.

hakjoon wrote:

I think it only shows up in debugging mode though.

Dou! I hadn’t notice that, my fault.

It’s a great flexible plugin! And now that i know how to handle it, i will use it again if upm_image won’t fit my needs.

Cheers, Hannes

Offline

#209 2008-04-16 11:42:10

husainhk
Member
From: Dubai, UAE
Registered: 2007-08-12
Posts: 105
Website

Re: hak_article_image

Hi,

Is it possible to create an image gallery with this plugin, by having only one image shown on the Web page with Next/Back buttons to cycle through other images?

I’d appreciate any help/direction to achieve this.

Thanks!

Last edited by husainhk (2008-04-16 12:13:08)

Offline

#210 2008-04-16 17:17:11

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

Re: hak_article_image

It’s not really setup to support that kind of navigation. The image being displayed has no knowledge of the other images.

It could be done with javascript.


Shoving is the answer – pusher robot

Offline

Board footer

Powered by FluxBB