CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   PHP (http://www.codingforums.com/forumdisplay.php?f=6)
-   -   How to edit this TimTumb.php (http://www.codingforums.com/showthread.php?t=283852)

fbgiant 12-09-2012 05:22 PM

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.

Custard7A 12-10-2012 07:21 AM

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.

fbgiant 12-10-2012 05:24 PM

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?

Custard7A 12-11-2012 06:39 AM

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.

misteroram01 12-11-2012 10:24 AM

Timthumb as an inclusion and passing the paramaters as function arguments instead of a GET request. This is the right solution.

fbgiant 12-11-2012 11:49 AM

can any of you help me to do it?,,,,

Quote:

Originally Posted by fbgiant (Post 1298529)
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---
.


fbgiant 12-12-2012 12:28 PM

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.


All times are GMT +1. The time now is 01:29 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.