Re: I found the reason why thumbails are not showing up
Thanks for sharing your solution but the problem doesn't have to do with the name or number of folders.
It just can't find the correct path of where your images are located when trying to display the thumbnail. You can easily fix this by going into
wp-content/themes/classipress/includes/img_resize.php and tinker with the following path near the top:
Code:
$image_url = "../../../../wp-content/uploads/classipress/".$_GET["url"];
and then in your case add another ../ like so:
Code:
$image_url = "../../../../../wp-content/uploads/classipress/".$_GET["url"];
For others, you might need to remove a ../ instead. It's just a matter of trial and error. Sometimes you might need to add/remove a couple ../../ before the thumbnail will show up.
The reason is not everyone has their folders setup the same way and each ../ equals a step down in a directory.
Version 3.0 won't have this issue and will be using
timthumb instead which is much more flexible and dynamically discovers your image directory.
UPDATE
Instead of following the above directions and manually having to figure out your path, I recommend using this instead.
Comment out the following line in img_resize.php like so:
Code:
// $image_url = "../../../../wp-content/uploads/classipress/".$_GET["url"];
and then below it, add the following:
Code:
$paths = array(
"../..",
"../../..",
"../../../..",
"../../../../..",
"../../../../../..",
"../../../../../../.."
);
foreach($paths as $path) {
$cpath = $path . '/wp-content/uploads/classipress/' . $_GET["url"];
if(@file_exists($cpath)) {
$image_url = $cpath;
}
}
Save and then try loading up your page again. It should now work. If not, chances are you didn't setup the image upload folder correctly. Make sure your folder structure looks exactly like this in (all in lowercase)
/wp-content/uploads/classipress/