Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2006-08-22 04:05:34

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

Re: wet_thumbfilter: Renders article thumbs matching various criteria

deronsizemore wrote:

in the article image field I have “/images/oldsilo.jpg” which is the location of that image placed in the article.

Yes, you’ve found the reason for the blank output. The plugin won’t work with url-style image references but only with numerical ids.

These image ids can be found in the “image” tab’s tag builder for manual entry, or can easily be picked while editing an article with the help of upm_img_popper. Textbook has further info on image ids.

Offline

#38 2006-08-22 11:02:14

deronsizemore
Member
From: Kentucky
Registered: 2005-11-02
Posts: 324

Re: wet_thumbfilter: Renders article thumbs matching various criteria

So, from what you’ve said, I assume that I have to upload all of my images using the “image” tab in Textpattern? If that’s correct, this is what I have tried with no luck now after I uploaded the image using the “image” tab:

When I go to the article where the image will be placed and then go to Advanced Options> and then in the article image field I placed <code><txp:image id=“4” /></code> in that field and then in my article I have <code><txp:article_image /></code> to display the image. That did not work, so I tried simply the id of the image by putting id=“4” in the “article image” field and that also did not work. I also tried to just put <code><txp:image id=“4” /></code> right inside the article itself, but also no luck with that.

Is there something obvious here that I’m missing? I checked out the page you supplied about the txp:image tag and I can’t see anything I’m doing wrong there, so it much be where I’m actually putting that tag?

Thanks

Offline

#39 2006-08-22 11:09:31

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

Re: wet_thumbfilter: Renders article thumbs matching various criteria

deronsizemore wrote:

So, from what you’ve said, I assume that I have to upload all of my images using the “image” tab in Textpattern?

Correct.

When I go to the article where the image will be placed and then go to Advanced Options>

Correct.

and then in the article image field I placed <txp:image id="4" /> in that field

Wrong.

I tried simply the id of the image by putting id=“4” in the “article image” field and that also did not work.

Wrong.

Is there something obvious here that I’m missing?

Definitely. Try putting 4 (only the number, nothing else) in the “article image” field.

Offline

#40 2006-08-22 12:52:43

deronsizemore
Member
From: Kentucky
Registered: 2005-11-02
Posts: 324

Re: wet_thumbfilter: Renders article thumbs matching various criteria

ha ha…I guess it was to “obvious” for me. geez, I’m an idiot.

Ok, I now have that working. I have my image uploaded in txp using the “image” tab. The image that I uploaded has an id of 4, and I went to the article that I want the image in and placed txp:article_image and now that works, the image shows up in the article, but under “recent pictures” where I’m trying to get the 4 most recent thumbnails of article images by using: <code><txp:wet_thumbfilter section=“courses” limit=“4” wraptag=“ul” break=“li” /></code> and nothing shows up.

Thoughts?

Offline

#41 2006-08-22 16:21:18

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

Re: wet_thumbfilter: Renders article thumbs matching various criteria

None, I’m out of clues. It should work as you are using it now, or at least leave some traces in the HTML source.

As a last ressource to make sure you built your tag right you could amend the plugin’s source to print some diagnostics.

Find these lines in the plugin’s source:

	// find all qualified articles 
	$rs = safe_rows_start('image, id, title','textpattern', $clause);
	if ($rs) {

Replace them with this snippet:

	// find all qualified articles 
	$rs = safe_rows_start('image, id, title','textpattern', $clause,   1  );
dmp($rs);
dmp($atts);
	if ($rs) {

Any output?

Last edited by wet (2006-08-22 16:25:22)

Offline

#42 2006-08-22 17:51:47

deronsizemore
Member
From: Kentucky
Registered: 2005-11-02
Posts: 324

Re: wet_thumbfilter: Renders article thumbs matching various criteria

I changed the code as you said and you can surf to the site to see the output on the page. To me it’s a bunch of jibberish as I don’t know PHP, but to you it might mean something. <a href=“http://www.kentuckygolfing.com”>Kentucky Golfing</a>

Heck, if you would/could, I’ll email you my login and you can verify that I’ve got it set up right. I mean if everyone else can use it, it should work, that’s what is getting me.

Last edited by deronsizemore (2006-08-22 17:52:12)

Offline

#43 2006-08-22 17:58:50

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

Re: wet_thumbfilter: Renders article thumbs matching various criteria

Offline

#44 2006-08-23 13:22:34

deronsizemore
Member
From: Kentucky
Registered: 2005-11-02
Posts: 324

Re: wet_thumbfilter: Renders article thumbs matching various criteria

With great help from Robert, this problem is solved. It came down to me not generating the thumbnails. I assumed that the plugin automatically generated the thumbnails. So, once Robert croped the image down to 50×50 and made the thumbnail, all is well except for some finishing touches on the styling.

Thanks again Robert! GREAT PLUGIN

Offline

#45 2006-09-17 10:05:57

elduderino
Member
From: Whitstable. south-East England
Registered: 2006-01-02
Posts: 175
Website

Re: wet_thumbfilter: Renders article thumbs matching various criteria

HI there,

This seems like the right place to be posting this….i hope so anyway!

Im having problems with my thumbnail not appearing. Ive installed the plug-in and enabled it, uploaded an image and its associated thumbnail and tried to call it using the the following form:

<code>
<txp:if_article_list>
<h3><txp:permlink><txp:title /></txp:permlink></h3>
<p class=“info”><txp:posted /> by <txp:author /></p>
<txp:wet_article_thumb />
<txp:excerpt />
<txp:if_comments>
<p class=“read”><txp:permlink>read on…</txp:permlink></p>
<p class=“comments”><a href=”<txp:permlink />#discuss” >comment (<txp:comments_count />)</a></p>
</code>

<code>

<txp:else />

<txp:if_comments_allowed><p class=“read”><txp:permlink>read on…</txp:permlink></p>
<p class=“comments”><a href=”<txp:permlink />#discuss”>comment (<txp:comments_count /> )</a></p>
<txp:else /></txp:if_comments_allowed>
</txp:if_comments>

</txp:if_article_list>

<txp:if_individual_article>
<txp:article_image />
<h2><txp:title /></h2>
<p><txp:posted /></p>
<txp:article_image />
<txp:body />
<txp:if_comments>
<h2>Make a Comment</h2><div id=“comments”><p></p>
</txp:if_comments>
</txp:if_individual_article>
</code>

IN my html im calling the form with
<code> <txp:article form=“articles” listform=“articles” limit=“3” /></code>

which seems to be working fine..

The top part of the form deals with my article excerpts on my default page and the bottom part deals with full articles. My full article images work but not my thumbnails.

Any ideas what i could be doing wrong here?

Last edited by elduderino (2006-09-17 10:07:14)

Offline

#46 2006-09-17 18:04:17

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

Re: wet_thumbfilter: Renders article thumbs matching various criteria

Are article images assigned by their id (not by their name)? BTW, the right thread is here.

Last edited by wet (2006-09-17 18:05:39)

Offline

#47 2006-09-17 19:33:26

elduderino
Member
From: Whitstable. south-East England
Registered: 2006-01-02
Posts: 175
Website

Re: wet_thumbfilter: Renders article thumbs matching various criteria

Apologies Wet wasnt sure where to post!

Yes im assiging images in articles using their number id put in to the article image field in advanced options on the write tab….is that the right thing to be doing?

Offline

#48 2006-09-17 19:43:58

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

Re: wet_thumbfilter: Renders article thumbs matching various criteria

Follow me to avoid creating a mess here.

Offline

Board footer

Powered by FluxBB