Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#73 2006-06-21 16:08:23
- TrustySmurf
- New Member
- Registered: 2004-09-25
- Posts: 8
Re: [plugin] [ORPHAN] upm_category_image: Display image for category.
No error messages (which only means I’m probably doing something wrong but for the life of me I cannot figure out what).
———
FYI, other comments in this thread caused me to think you had abandoned this plugin. It is good to see you have not.
Just so I am clear, here is what I did to try to get the plugin to work:
1. Went to Content->Organize and created the image category upm_category_image
2. Uploaded an image (no thumbnail) and named it pootytang (one of my categories. Note that I have tried this both with and without .jpg as a suffix)
3. I selected the category upm_category_image for this image (so now I have the image named pootytang assigned to the category upm_category_image)
4. I put <txp:upm_category_image /> in a form and I also tried it in the body of an article that I had assigned to the category pootytang, no luck.
Is there something obvious I am doing wrong? In my experience when I am having a code related problem that just doesn’t seem to work, it is usually something I am doing or not doing that is causing the problem.
Last edited by TrustySmurf (2006-06-21 19:45:21)
Offline
#74 2006-06-22 01:28:28
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_category_image: Display image for category.
I had actually, for a little while. :)
Is the plugin both installed and enabled? Do you have the latest version of it (0.4.7)?
2. Without is what you want.
4. upm_category_image should work in pages and forms, when a category is being viewed. upm_category1_image and upm_category2_image work from article forms, when the article has either category chosen which has a matching category image.
Offline
#75 2006-06-22 16:48:26
- TrustySmurf
- New Member
- Registered: 2004-09-25
- Posts: 8
Re: [plugin] [ORPHAN] upm_category_image: Display image for category.
It is both installed and enabled and I am using 0.4.7.
I am not using the type suffix after the image name (ex. I have an image named pootytang, not pootytang.jpg). BTW, I am a photographer and leaving off the type suffix is a bit counter intuitive to me as I’m just not used to seeing image names WITHOUT a suffix. Perhaps clarifying that in the help documentation would be helpful to people like myself.
Having gone through the whole process again it still is not working and I really don’t think I’m doing anything wrong.
Is it possible that there is some issue with the versions of PHP and/or MySQL I am using (5.1.4 and 5.0.19 respectively)?
In looking at the code for your plugin I notice that the SQL statements appear odd (cat.image as cat_image for example). Is this something related to Textpattern plugin’s in general? I’m no SQL expert and I know nothing of Textpattern’s plugin api but I would have assumed something that looks more like:
[code]select name as cat_name, w as cat_w from “.PFX.“txp_image etc.[/code]
Also you have a select for cat.title as cat_title from txp_image but there isn’t a title field in that table. Like I said, I’m no expert so I’m just tossing out things that appeared odd to me.
——————————— Edit: Aha! ———————————
OK, when I go to the category view itself:
www.whatever.com/index.php?c=pootytang
I now see the category image. It does not appear on my front page, however. Is there a way to make it appear at all times?
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.
Last edited by TrustySmurf (2006-06-22 16:51:49)
Offline
#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
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__
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
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__
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
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__
Offline
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__
Offline