Please help me to activate TimThumb on WordPress

September 7th, 2013

I have a wordpress template that came with timthumb image resizer. I activate it but it doesn’t work. So I checked google for problems. I set the cache folder located in /public_html/wp-content/themes/reviewit/lib/scripts to 777 but still doesn’t work. I found out that I must put the location of my image files on this code but I really don’t know where to put it. Please help! Thanks!
function get_image_path ($post_id = null) {
if ($post_id == null) {
global $post;
$post_id = $post->ID;
}
$theImageSrc = get_post_meta($post_id, ‘ghostpool_thumbnail’, true);
global $blog_id;
if (isset($blog_id) && $blog_id > 0) {
$imageParts = explode(‘/files/’, $theImageSrc[0]);
if (isset($imageParts[1])) {
$theImageSrc = ‘/blogs.dir/’ . $blog_id . ‘/files/’ . $imageParts[1];
}
}
return $theImageSrc;
}

Answer #1
OK. Just 2 topic views ? What the hell people ?

 

| Sitemap |