treehouse : what would you like to learn today?
Web Design Web Development iOS Development

timthumb problem

  • Ok im trying to use TimThumb on my blog, this is my first time using it, i have several themes that have it in the code, but i've also look up some tutorials on how to use it, I'm also using custom fields which work but for some reason the images dont show up when i try to put them threw timthumb http://cardarello.com/ below is my code



    <!-- Being Loop -->

    <?php query_posts('category_name=blog&showposts=5'); if(have_posts()) : while(have_posts()) : the_post();
    // check for thumbnail
    $thumb = get_post_meta($post->ID, 'Thumbnail', $single = true);
    // check for thumbnail class
    $thumb_class = get_post_meta($post->ID, 'Thumbnail Class', $single = true);
    // check for thumbnail alt text
    $thumb_alt = get_post_meta($post->ID, 'Thumbnail Alt', $single = true);
    ?>





    <div class=\"blogArea\" id=\"post-<?php the_ID(); ?>\">

    <div id=\"blogThumb\">
    <img src=\"<?php bloginfo('template_directory'); ?>/inc/thumb.php?src=<?php echo $thumb; ?>&h=50&w=50&zc=1\"
    class=\"<?php if($thumb_class !== '') { echo $thumb_class; } else { echo \"left\"; } ?>\"
    alt=\"<?php if($thumb_alt !== '') { echo $thumb_alt; } else { echo the_title(); } ?>\"
    />
    </div>
    <h2><a href=\"<?php the_permalink() ?>\" rel=\"bookmark\" title=\"Permanent Link to <?php the_title_attribute(); ?>\"><?php the_title(); ?></a></h2>
    <div class=\"date\"><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></div>

    <?php the_content('Read more&raquo;'); ?>

    </div>



    This is the timthumb img code

    <img src=\"<?php bloginfo('template_directory'); ?>/inc/thumb.php?src=<?php echo $thumb; ?>&h=50&w=50&zc=1\"
    class=\"<?php if($thumb_class !== '') { echo $thumb_class; } else { echo \"left\"; } ?>


    there is a cache folder and i try'd to set permissions to 755 and 777 on both the inc folder the cache folder and the uploads folder. I even try'd to take the code from the Elegant Theme Influx which is almost the same code that i made, only difference is the timthumb is in a phpThumb folder and file is called phpThumb.php so i try'd their code and uploaded those folders and files and still doesnt work. I opened the error log in the folder and there this error in it

    [24-Sep-2009 12:58:27] PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening '/home/moppiei1/public_html/cardarello.com/wp-content/themes/Influx/phpThumb/phpthumb.class.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/moppiei1/public_html/cardarello.com/wp-content/themes/Influx/phpThumb/phpThumb.php on line 28

    im clueless lol, can someone help me figure out what could be wrong?