Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#76 2006-06-23 00:27:22

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_category_image: Display image for category.

In looking at the code for your plugin I notice that the SQL statements appear odd (cat.image as cat_image for example).

Also you have a select for cat.title as cat_title from txp_image but there isn’t a title field in that table.

They are joins. It’s requesting it from the category table, not the image table.

OK, when I go to the category view itself… I now see the category image.

I’d like to see the category image visible with each article on my front page but at present I can only see it if I navigate into the actual category itself.

See #4.

Also, for a category list, did you try upm_category_image_list?

Offline

#77 2006-06-23 02:39:24

TrustySmurf
New Member
Registered: 2004-09-25
Posts: 8

Re: [plugin] [ORPHAN] upm_category_image: Display image for category.

Annnnnd… now it is working. Thanks much for the assistance Mary.
Just FYI, the areas I was most confused about were when to use upm_category_image versus category1 or category2 (I finally realized that those last two referred to the category choices you made when creating an article… for some reason I vaguely thought they were related to custom1 and custom2 in Advanced Options for article creation and this assumption tripped me up), and whether or not to attach the image’s type suffix.

Thanks once again and thanks for the very nice plugins you create.

Offline

#78 2006-12-19 09:00:59

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: [plugin] [ORPHAN] upm_category_image: Display image for category.

Hi there,

I’m using this plugin, version 0.4.8 under Txp 4.0.3 and get these errors… Using <txp:upm_category_image_list /> in an article form…

tag_error <txp:upm_category_image_list/> -> Warning: getimagesize(/images/24t.jpg) [function.getimagesize]: failed to open stream: Unknown error: 0 on line 229

Using other plugin tags outputs nothing: no images, no errors…

Does the last version work in this version of Txp 4.0.3 ?
If not can someone post a link to previous version, 0.4.7 ?

Cheese,

Last edited by hablablow (2006-12-19 09:04:15)


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#79 2006-12-19 16:08:00

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_category_image: Display image for category.

Does the image with the ID of 24 have a thumbnail?

Offline

#80 2006-12-19 16:13:22

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: [plugin] [ORPHAN] upm_category_image: Display image for category.

Mmmmmm…. Yes !


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#81 2006-12-19 16:26:39

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_category_image: Display image for category.

You found a bug. One moment and I’ll post an update. :)

Offline

#82 2006-12-19 16:43:18

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_category_image: Display image for category.

v.0.5

Last edited by Mary (2013-01-24 17:23:39)

Offline

#83 2006-12-19 23:44:16

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: [plugin] [ORPHAN] upm_category_image: Display image for category.

Thanks Mary…
Nice as usual…


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#84 2007-01-03 14:08:49

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: [plugin] [ORPHAN] upm_category_image: Display image for category.

Mary & all: happy new year…

Mary, I just left away from my computer and did not do a full test with the new version of your plugin…
Just came back and it’s still messing around and doesn’t output any images…
The best I can have from the plugin is either a list with upm_category_image_list
<li> /> </li>
or a single thumbnail when showing current category (?c=myCat) and when using upm_category_image, even if no limit is given to the article container…
Other two tags simply output nothing…
Can’t believe I’m the only one experiencing this…

Last edited by hablablow (2007-01-03 14:12:30)


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#85 2007-01-04 22:22:34

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_category_image: Display image for category.

…or a single thumbnail when showing current category (?c=myCat) and when using upm_category_image…

That is how upm_category_image is supposed to work: it displays an image for the currently viewed category.

As for the rest… v.0.5.1

Last edited by Mary (2013-01-24 17:32:36)

Offline

#86 2007-01-05 15:39:02

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: [plugin] [ORPHAN] upm_category_image: Display image for category.

Bang !
It works, first time…
Thanks a lot Mary…


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#87 2007-01-05 16:38:43

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: [plugin] [ORPHAN] upm_category_image: Display image for category.

Mary,

One last thing…
Would it be possible to use as title not the category but the alt text specified in the dedicated image field ?
I tryed to edit your plugin myself, the upm_category_image_list part of it, and tryed to change the title attribute from:

title="' .$row['cat_title'].'"';

to

title=\"{$alt}"".

Without any luck…
What can I change to achieve this ?

Last edited by hablablow (2007-01-05 16:40:32)


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#88 2007-01-06 19:05:42

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_category_image: Display image for category.

The image’s alt text is already automatically added. And you can turn off titles.

Offline

#89 2007-01-21 14:49:58

Saigo
Member
Registered: 2005-01-02
Posts: 60
Website

Re: [plugin] [ORPHAN] upm_category_image: Display image for category.

Hi Mary,

I’m fairly new to coding so please bear with me. I’ve been reading the documentation of your plugin and some TXP resources and posts in this forum but for the life of me I can’t get what I want in mind to work.

I want to list out titles of movies in an alphabetical order (with short excerpts, but I can worry about that later), with the image of the category the movie is in below it.

I have a form called “movies_alphabetical” (not really that creative, I realised that), with the following code:

<txp:if_different><h3><txp:php>echo substr(title(array()), 0, 1);</txp:php></h3></txp:if_different>

<li><txp:permlink><txp:title /></txp:permlink></li>

<txp:upm_category_image_list break=“li” wraptag=“ul” />

I have also replaced the upm_category_image tag with:

<txp:if_article_category name="3 stars" number="1"> <img src="/images/3 stars.gif" /> </txp:if_article-category>

but that doesn’t work either. (That current article I have in is in a ’3 stars’ category, hence the code above as I wanted to test if it will output the image. It didn’t.)

I have also followed the step-by-step instructions closely, renaming my image without the .gif extension, etc.

I have spent 5 hours now on this and am close to tearing my hair off. I’d really appreciate any enlightening on my predicament!

Last edited by Saigo (2007-01-21 14:55:23)

Offline

#90 2007-01-22 20:49:51

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_category_image: Display image for category.

</txp:if_article-category>

That tag is incorrectly named.

name="3 stars"

That might be contributing to the problem, having a space in the category’s name rather than its title.

Offline

Board footer

Powered by FluxBB