Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2007-06-15 11:52:16

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

Re: wet_article_thumb: article thumbnail display

wet wrote:

Which version of Textpattern are you using?

.4.0.4

Offline

#14 2007-06-15 13:06:39

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website Mastodon

Re: wet_article_thumb: article thumbnail display

Please modify your article form like this:

<h3><txp:permlink><txp:title /></txp:permlink></h3>
<txp:if_article_list>
<txp:if_excerpt>
<txp:wet_article_thumb />
<txp:php>
global $thisarticle;
dmp($thisarticle);
</txp:php>
<txp:excerpt />
<p class=“meta”><txp:permlink>Loe edasi…</txp:permlink> | <txp:comments_invite /> | <txp:posted /></p>
<txp:else />
<txp:body />
<txp:article_image />
<p class=“meta”><txp:comments_invite /> | <txp:posted /></p>
</txp:if_excerpt>
<txp:else />
<txp:body />
<txp:article_image />
</txp:if_article_list>

You should receive a printout of your article’s details, starting with array( and ending with ). Post this output back here.

Offline

#15 2007-06-15 13:18:08

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

Re: wet_article_thumb: article thumbnail display

wet wrote:

You should receive a printout of your article’s details, starting with array( and ending with ). Post this output back here.

array ( ‘thisid’ => ‘117’, ‘posted’ => ‘1181903746’, ‘annotate’ => ‘1’, ‘comments_invite’ => ‘Kommenteeri’, ‘authorid’ => ‘ruut’, ‘title’ => ‘Lõuna-Aafrika riikidel lubatakse’, ‘url_title’ => ‘louna-aafrika-riikidel-lubatakse’, ‘category1’ => ‘’, ‘category2’ => ‘’, ‘section’ => ‘wet-artiklid’, ‘keywords’ => ‘’, ‘article_image’ => ’40,41’, ‘comments_count’ => ‘0’, ‘body’ => ‘ <p>Lõuna-Aafrika riikidel lubatakse korraldada ühekordne seaduslikult omandatud elevandiluuvarude müük, mille tulu läheb looduskaitsele. Järgneva üheksa aasta jooksul aga enam ühtegi taolist müüki ei tule.</p>

<p>Antud kokkulepe saavutati pärast mitmepäevaseid vaidlusi loodusliku loomastiku ja taimestiku ohustatud liikidega rahvusvahelise kaubanduse konventsiooni (<span class=“caps”>CITES</span>) kohtumisel. Arutelud sel teemal lõpevad täna.</p>

<p>Lepe lubaks neljal Lõuna-Aafrika riigil korraldada 31. jaanuari 2007 seisuga riiklikult arvel olevate toorelevandiluu varude ühekordset müüki. Botswana puhul on see ligi 45 tonni elevandiluud. Samuti oleks lubatud piiratud kogustes elusate loomade, karvade, naha ning Nabiibiale iseloomulike väikeste elevandiluust ornamentide müümine.</p>’, ‘excerpt’ => ‘ <p>Lõuna-Aafrika riikidel lubatakse korraldada ühekordne seaduslikult omandatud elevandiluuvarude müük, mille tulu läheb looduskaitsele. Järgneva üheksa aasta jooksul aga enam ühtegi taolist müüki ei tule.</p>’, ‘override_form’ => ‘’, ‘custom1’ => ‘’, ‘custom2’ => ‘’, ‘is_first’ => true, ‘is_last’ => true,
)

Offline

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

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website 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,289

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: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website 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,289

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,289

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: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website 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

Board footer

Powered by FluxBB