help me to edit my TimTumb.php (5 posts)

  1. fbgiant
    Posted 3 years ago #

    In my Wp theme thumbnail images are automatically get cropped .All my images are large size and so my thumbnails show only a part of the original image.
    I searched in internet and found an article http://www.binarymoon.co.uk/demo/timthumb-zoom-crop/.

    It says No cropping will occur and it will adjust automatically to fit the container size if if we set --zc = 0: Resize to Fit specified dimensions (no cropping)-- like timthumb.php?src=atlantis-dock.jpg&zc=0---

    But i don't know how to implement it in TimTHumb.php.
    You guys kindly help me to do it.

  2. fbgiant
    Posted 3 years ago #

    kindly help me

  3. WPyogi
    Forum Moderator
    Posted 3 years ago #

    Tim Thumb scripts have had a history of being the cause of many hacks -- to the point that many servers won't even let them run. So you may want to avoid using them. There are probably other ways of doing what you want to do -- what theme are you using?

  4. fbgiant
    Posted 3 years ago #

    I am using photoria theme.
    I don't know how to do it in other ways.
    I am not a coder actually.

  5. fbgiant
    Posted 3 years ago #

    No one here to answer me?...
    No problem.
    I managed to do it myself.
    there was a file mytheme_recent_posts.php and in that file there was a code---

    <img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo $img ?>&h=250&w=300&zc=0" width="300" height="250" alt="<?php the_title(); ?---

    And i changed zc=0 to zc-1 as i required.
    Thank You .
    NB:Now I feel pity of this forum that no one replies to such a silly problem even after many requests from me.

Topic Closed

This topic has been closed to new replies.

About this Topic