In the description page for this module, the screenshot shows an image showing up with each checkbox for that image. But when I tried this module on my site, there was no image. I checked the page source, and the images are coded something like <a href="?q=node/40" target="_blank"><img src="sites/default/files/images/wallytreadway.thumbnail.jpg"/></a>
If I alter the img src to <img src="/sites/default/files/images/wallytreadway.thumbnail.jpg"/> (notice the leading /) then the image shows up. I believe the leading / is missing from the src attribute.
Comments
Comment #1
suffering drupal commentedSame problem for me.
For weeks I thought that Image Taxonomy didn't make any sense because it didn't even show images....
Until Firebug helped me discover (by accident) that a leading / was necessary or the full domain, if not, I would have uninstalled IT very soon.
I think this is an essential issue for this module because many people may not use it for the same reason.
In the meantime.... in WHICH directory/file xxx.php should the code be edited????
(as ever so often I have uselessly spent and lost a lot of time just trying to find out where the "bleep" the code to adapt is hiding..... It's one of the main reasons why I am not advancing in Drupal or development of my websites. Any suggestions?)
Comment #2
suffering drupal commentedFOUND!!!!!
under: /public_html/sites/all/modules/imgupload/imgupload/imgupload/imgtax.module
a ridiculous long path, actually I don't know if this means the module went in wrong or that it is just set up in this strange way... obviously I bumped into it by pure luck...
Anyway: in line 688 change
filepath.'"/>',
filepath.'"/>',
$row->nid.'" target="_blank">
to
$row->nid.'" target="_blank">
and the images show up!! :)
Comment #3
bdornbush commentedThanks for finding where the change is needed. Your modification worked perfectly for me. I found it using the same path as you showed, so this must be where it is normally set up.
Now, can we get the module source patched as well??
Comment #4
pre911mindset commentedThanks for looking at this, I'll look into it. Because of the .jar file which is required to be with the module, distribution of it is more complicated than most.
Comment #5
rhimes commented@riccardorb
not understanding your fix/instructions in #2:
don't see any difference in those two lines - line 688 of imgtax.module (6.x-1.9) that I have is:
$row->nid.'" target="_blank"><img src="'.$row->filepath.'"/></a>',could you please post fix for changing that line (or wherever) so that thumbnails show up @ admin/content/imgtax/admin?
thx
Comment #6
suffering drupal commented@rhimes
You're quite right that I've put in twice the same line.... I must have been tired and fed up at that moment. And I must have ctrl-v-ed twice the same string instead of the wrong and the right one.
And you know what, I don't remember anymore, not even with the notes I made.
In fact that's why I am so late in answering you, there is way too much to understand, arrange and solve in Drupal that I actually have given up the hope in getting any step further with Drupal.
I don't even know what the heck I have to do here on the Drupal site itself, just to stay updated on comments where I have commented myself.
Sometimes it takes days to discover that just one character has to be changed in the coding for a minor solution in a website. It's just frustrating. There is sooooo much I could have done in plain HTML if I just wouldn't have bothered about Drupal these last two years.....
If you want the answer you'll have to wait until I find the will and the energy to set up a new site with similar characteristics and go through the eternal trial and error anew to solve this problem for a second time. Although I might be 112 by then....
Comment #7
suffering drupal commented@ rhimes again
I found this on my line 688
$row->nid.'" target="_blank">
filepath.'"/>',
I don't even really know if it still is the same line.....
But at least there's a trailing slash you don't have..
You see, just one character, screwing up precious time one could have spent doing something useful or just enjoying! :-(
Comment #8
suffering drupal commentedoooo hell
you know what? If you just copy and paste the code, something in the HTML or Drupal eats up a part and shows it different from the input. I knew I couldn't have been that stupid!
This:
filepath.'"/>',
$row->nid.'" target="_blank">
changes on input, you don't see what I write but something else....
I'll try again leaving out some <> substituting them by opening bracket (ob) and closing bracket (cb)
$row->nid.'" target="_blank" (cb)(ob)img src="/'.$row-(cb)filepath.'"/(cb)(ob)/a(cb)',
the " .... src="/' .... " is the BIG change!
Comment #9
Hitesh commentedIt also depends on Download method i.e.
1. Public - files are available using HTTP directly (set for my site)
2. Private - files are transferred by Drupal
The problem in my site has been resolved by replacing ...
$row->filepath
in imgtax.module file at line 688 with...
file_create_url($row->filepath)