Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Dec 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to edit this TimTumb.php

    In my Wordpress 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
    Regular Coder Custard7A's Avatar
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    286
    Thanks
    32
    Thanked 33 Times in 33 Posts
    Welcome to CodingForums,

    Timthumb seems simple in itself, but integrating it into an automated system is another story. See here: Timthumb Technical Support.

    His prices are quite high — I expect he wants to limit his time on the project — and other freelance coders would likely do this for much cheaper. However, it is along the lines of a job. It would involve re-structuring the current script you use to generate thumbnails to make it support Timthumb, probably more depending how well you wanted it integrated.

  • #3
    New to the CF scene
    Join Date
    Dec 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i dont want to do it for $350.
    i can get it done $50 for entire theme customization.
    I came here to ask you guys for your help to edit it myself.
    no one can help me?

  • #4
    Regular Coder Custard7A's Avatar
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    286
    Thanks
    32
    Thanked 33 Times in 33 Posts
    Uh, you would edit in your current thumbnail script, first by yanking the old code that processes that actual image, then I'm thinking using Timthumb as an inclusion and passing the paramaters as function arguments instead of a GET request.

  • #5
    New Coder
    Join Date
    Sep 2012
    Posts
    13
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Timthumb as an inclusion and passing the paramaters as function arguments instead of a GET request. This is the right solution.

  • #6
    New to the CF scene
    Join Date
    Dec 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    can any of you help me to do it?,,,,

    Quote Originally Posted by fbgiant View Post
    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---
    .

  • #7
    New to the CF scene
    Join Date
    Dec 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ohhh...Please don;t come with that type of $350 proposal.

    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 ?>&amp;h=250&amp;w=300&amp;zc=0" width="300" height="250" alt="<?php the_title(); ?---

    And i changed zc=0 to zc-1 as i required.
    That was what i needed.
    Thank You .

    NB:Now I feel pity of this forum that no one replies promptly to such a silly problem even after many requests from me.And i say sorry if you guys didn't understand my question clearly because i asked you to edit TimThumb which was not actually needed.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •