Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2007-06-15 13:25:06

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,421
Website GitHub Mastodon

Re: wet_article_thumb: article thumbnail display

Looks ok. A question which I should have asked a the very first: Which version of wet_article_thumb do you use?

Offline

#17 2007-06-15 13:27:47

Gallex
Member
Registered: 2006-10-08
Posts: 1,331

Re: wet_article_thumb: article thumbnail display

wet wrote:

Looks ok. A question which I should have asked a the very first: Which version of wet_article_thumb do you use?

0.4

Offline

#18 2007-06-15 13:34:05

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,421
Website GitHub Mastodon

Re: wet_article_thumb: article thumbnail display

If I visit your site right now, it shows the thumbnail for the first image in your list, 40t.jpg. This is exactly how wet_article_thumb v 0.3+ is designed to work: If there’s more than one article image, show the first image’s thumbnail. Case closed.

Offline

#19 2007-06-17 12:23:46

Gallex
Member
Registered: 2006-10-08
Posts: 1,331

Re: wet_article_thumb: article thumbnail display

wet wrote:

If I visit your site right now, it shows the thumbnail for the first image in your list, 40t.jpg. This is exactly how wet_article_thumb v 0.3+ is designed to work: If there’s more than one article image, show the first image’s thumbnail. Case closed.

yes it shows thumbnail for the first image in my list, but then it doesn’t show the images assossiated with that article :( something more has to be wrong somewhere….

I want to create homepage for adds of real estate and this plugin would suite perfectly for it.
that’s why i need so desperatly to get this plugin work

Offline

#20 2007-06-17 12:51:29

Gallex
Member
Registered: 2006-10-08
Posts: 1,331

Re: wet_article_thumb: article thumbnail display

shows thumbnail for the first image in my list, but then it doesn’t show the images assossiated with that article :( something more has to be wrong somewhere….

i tried hak_article_image as well and it works excactly like wet_article_thumb – shows thumbnails but no images. hmm…i don’t get it what could be wrong in my page….

Last edited by Gallex (2007-06-17 12:53:14)

Offline

#21 2008-01-19 15:36:34

jodeci
Member
From: Taipei
Registered: 2008-01-13
Posts: 38
Website

Re: wet_article_thumb: article thumbnail display

Hi, thanks for this nice plugin! Right now, I’m using <txp:wet_article_thumb /> as a gallery for thumbnails, and it produces a series of:

<a href><img></a> <a href><img></a> <a href><img></a> …

which I’m very pleased with. However I was wondering if this would be possible?

<div class=“thumb”><a href><img></a> <a href><img></a> <a href><img></a> …</div>

For this particular site, I have my pages/forms set in a way that it is impossible for me to add the needed <div>s to the template. I can still layout the page as I want with CSS magic, but it would be much easier on the developer if <div>s came right out of the plugin. Or is there an easy hack…? Thanks again.

Offline

#22 2008-01-20 06:06:46

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,421
Website GitHub Mastodon

Re: wet_article_thumb: article thumbnail display

jodeci wrote:

Or is there an easy hack…?

You might change the plugin code if you dare. Find these lines near the end:

	return tag(join(' ', $out), 'a', $href.$title.$rel.$link_class);
 }
 return join(' ',$out);

Replace them with:

	return '<div class="thumb">'.tag(join(' ', $out), 'a', $href.$title.$rel.$link_class).'</div>';
 }
 return '<div class="thumb">'.join(' ',$out).'</div>';

Offline

#23 2008-01-20 06:27:38

jodeci
Member
From: Taipei
Registered: 2008-01-13
Posts: 38
Website

Re: wet_article_thumb: article thumbnail display

wet wrote:

	return '<div class="thumb">'.tag(join(' ', $out), 'a', $href.$title.$rel.$link_class).'</div>';
 }
 return '<div class="thumb">'.join(' ',$out).'</div>';

Thanks! But I’m afraid that this produces:

<div class=“thumb><a><img></a></div>
<div class=“thumb><a><img></a></div>
<div class=“thumb><a><img></a></div>
<div class=“thumb><a><img></a></div>

instead of the desired:

<div class=“thumb><a><img></a><a><img></a><a><img></a><a><img></a></div>

But thanks anyway :)

Offline

#24 2008-10-05 00:44:30

elstrausso
Member
Registered: 2008-09-25
Posts: 49
Website

Re: wet_article_thumb: article thumbnail display

Hello,
I’m currently setting up a Portfolio section on my Txp site. I would like to modify/add a thumbnail image to the <txp:link_to_prev> and <txp:link_to_next> tags, exactly like Flickr.com. I’m using the wet_article_thumb to accomplish this, however I’m experiencing a few difficulties, and wanted to ask the advice of the Txp community. I’ve done a search around, and the closest thing I’ve found, is on a german based site http://textpattern.kbbu.de/plugin/gallery-mit-wetarticlethumb.
They have the following code snippet:

Baustein: photoblog_form

<div class=“photoblog”>
<txp:link_to_prev showalways=“1”><txp:article_image /></txp:link_to_prev>
</div>
<ul class=“post-links”>
<li class=“prev”><txp:link_to_prev showalways=“1”>voriges
bild</txp:link_to_prev></li>
<li class=“next”><txp:link_to_next showalways=“1”>nächstes
bild</txp:link_to_next></li>
<li class=“posted”><txp:posted /></li>
<txp:if_article_list><li class=“comments”><txp:comments_invite
/></li></txp:if_article_list>
<li class=“archive”><a href=”<txp:site_url />arkiv/?c=foto”>Arkiv</a></li>
</ul>
<txp:body />

I’m currently working with this code, to accomplish this task. My site http://www.thedept.com
I will post my progress here, and please feel free to chime in with any suggestions at all.

Best,
Elstrausso

Offline

#25 2009-01-31 23:55:39

masa
Member
From: North Wales, UK
Registered: 2005-11-25
Posts: 1,095

Re: wet_article_thumb: article thumbnail display

I’ve been a happy user of wet_article_image for years. Today I needed to check the documentation on the native <txp:article_image /> and it seems that it nowadays offers pretty much the same functionality except for the attributes rel and link_class.

Correct ?

Offline

#26 2013-04-19 09:45:16

raminrahimi
Member
From: India
Registered: 2013-03-19
Posts: 278

Re: wet_article_thumb: article thumbnail display

how to remove width and height from IMG tag like: <img src=“x” width=“x” height=“x” />
i need like: <img src=“x” />

Offline

#27 2013-04-19 11:35:10

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,316

Re: wet_article_thumb: article thumbnail display

Ramin, as far as I could see from quickly skimming the blog post on awasteofwords.com there is no plugin attribute that couldn’t be replaced by native TXP tags.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB