Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-09-2012, 05:22 PM   PM User | #1
fbgiant
New to the CF scene

 
Join Date: Dec 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
fbgiant is an unknown quantity at this point
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.
fbgiant is offline   Reply With Quote
Old 12-10-2012, 07:21 AM   PM User | #2
Custard7A
Regular Coder

 
Custard7A's Avatar
 
Join Date: Jul 2010
Location: Australia
Posts: 269
Thanks: 32
Thanked 32 Times in 32 Posts
Custard7A is an unknown quantity at this point
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.
Custard7A is offline   Reply With Quote
Old 12-10-2012, 05:24 PM   PM User | #3
fbgiant
New to the CF scene

 
Join Date: Dec 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
fbgiant is an unknown quantity at this point
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?
fbgiant is offline   Reply With Quote
Old 12-11-2012, 06:39 AM   PM User | #4
Custard7A
Regular Coder

 
Custard7A's Avatar
 
Join Date: Jul 2010
Location: Australia
Posts: 269
Thanks: 32
Thanked 32 Times in 32 Posts
Custard7A is an unknown quantity at this point
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.
Custard7A is offline   Reply With Quote
Old 12-11-2012, 10:24 AM   PM User | #5
misteroram01
New Coder

 
Join Date: Sep 2012
Posts: 13
Thanks: 0
Thanked 2 Times in 2 Posts
misteroram01 is an unknown quantity at this point
Timthumb as an inclusion and passing the paramaters as function arguments instead of a GET request. This is the right solution.
misteroram01 is offline   Reply With Quote
Old 12-11-2012, 11:49 AM   PM User | #6
fbgiant
New to the CF scene

 
Join Date: Dec 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
fbgiant is an unknown quantity at this point
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---
.
fbgiant is offline   Reply With Quote
Old 12-12-2012, 12:28 PM   PM User | #7
fbgiant
New to the CF scene

 
Join Date: Dec 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
fbgiant is an unknown quantity at this point
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.
fbgiant is offline   Reply With Quote
Reply

Bookmarks

Tags
thumbnail, timthumb, wordpress

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:34 AM.


Advertisement
Log in to turn off these ads.