Closed (duplicate)
Project:
Taxonomy Image
Version:
4.6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 May 2005 at 12:09 UTC
Updated:
6 Feb 2008 at 00:31 UTC
I would like to request that taxonomy image be updated for 4.6.0
Comments
Comment #1
jeremy commentedI fully intend to update the module to work with 4.6, but currently I don't have the time. I'm out of town until early next month.
If someone were to submit a patch, that would be helpful. Otherwise, it will be updated when I can get to it.
Comment #2
red_eye commentedJeremy,
Sorry it works, as is. No problems here except I had to modify the code aded to the xtemplate.engine slightly as it was duplication the taxonomy term and link. Give me a little time and I'll supply the modfied xtemplate.engine.
Comment #3
red_eye commented# diff origxtemplate.engine xtemplate.engine
41a42,50
> if (module_exist("taxonomy") && ($taxonomy = taxonomy_link("taxonomy terms", $node))) {
> $xtemplate->template->assign("taxonomy", theme_links($taxonomy));
> if (module_exist("taxonomy_image")) {
> foreach (taxonomy_node_get_terms($node->nid) as $term) {
> $images[] = taxonomy_image_display($term->tid,"alt='$term->name'");
> }
> }
> }
>
52c61
< "content" => ($main && $node->teaser) ? $node->teaser : $node->body));
---
> "content" => ($images ? "
" : '').(($main && $node->teaser) ? $node->teaser : $node->body)));
From a 4.6.0 stock install, follow your 4.5.x install, make the above change to xtemplate.engine and bingo it all works fine. I am pretty sure thats all the changes I made.
Comment #4
red_eye commentedConfirmed. Updated my live site ( http://www.patentlystupid.com ) by renaming all drupal directories. Uploaded 4.6.0. Uploaded taxonomy_image, performed update.php, updated xtemplate.engine and my personal style.css for the blue marine theme. Everything appears to be working fine.
Comment #5
allie mickaI had an error:
PHP Fatal error: Call to undefined function: check_query() in ...
As in http://drupal.org/node/16743 , I replaced check_query with db_escape_string
Comment #6
ñull commentedI cannot confirm it. Images do not appear after applying the given changes.
Comment #7
mikeryanMy two cents - just installed taxonomy_image on 4.6 for a client, I see no problems (and I see no references to check_query() anywhere). Very handy module!
Thanks.
Comment #8
jeremy commentedYes, I have confirmed that this module works with Drupal 4.6 without changes. Finally tagged in CVS.
Comment #9
robert.redl@easytouch.cc commentedHi, this is for all guys that are not good in reading the patch file syntax (as me).
hope it helps someone who finds it easier to read the full change within PHP syntax.
File: themes/engines/xtemplate/xtemplate.engine
Comment #10
nancydruFor anyone still using this old version, a patch is here. Otherwise http://drupal.org/node/14368