I used to use the Bradford Magazine theme, and one of my favorite parts of using it was that the image resizing was so easy because it was 100% automatic. All I had to do was upload a picture to an article, and that picture would get automatically cropped for 1) thumbnail use within the article and 2) featured article use full size.
Would it be possible to integrate TimThumb (http://www.darrenhoyt.com/2008/04/02/ti ... -released/) into FCG, and if so, would it be confusing?
I am referring to my website, http://www.smoothentrepreneur.com right now, although the website is being massively updated.
Integrating FCG and TimThumb?
4 posts • Page 1 of 1
Re: Integrating FCG and TimThumb?
if you have timthumb.php script on your site already, you can use it for thumbnailimg custom field, just provide that field with timthumb.php link
read more here
http://www.darrenhoyt.com/2008/04/02/ti ... -released/
read more here
http://www.darrenhoyt.com/2008/04/02/ti ... -released/
Yelena Khamidullina
Web Applications Developer, iePlexus
1. Check settings to exclude fcg-YOU conflict
2. Try to turn off all your plugins at once to exclude fcg-other plugin conflict
3. Try default theme to exclude fcg-theme conflict
4. Post in this forum to involve me in your troubleshooting. URL is required
Web Applications Developer, iePlexus
1. Check settings to exclude fcg-YOU conflict
2. Try to turn off all your plugins at once to exclude fcg-other plugin conflict
3. Try default theme to exclude fcg-theme conflict
4. Post in this forum to involve me in your troubleshooting. URL is required
-

admin - Site Admin
- Posts: 4738
- Joined: Fri Jan 16, 2009 9:29 am
- Location: Seattle, WA
Re: Integrating FCG and TimThumb?
I don't have a scripts folder. Should I make one in the wp-content folder?
Also, is there a way to edit FCG so that I don't have to use thumbnailimg custom field for every post? Instead, have FCG and TimThumb recognize the image I am using in my article?
Also, is there a way to edit FCG so that I don't have to use thumbnailimg custom field for every post? Instead, have FCG and TimThumb recognize the image I am using in my article?
- smoothentrepreneur
- Posts: 2
- Joined: Wed Jun 23, 2010 9:57 am
Re: Integrating FCG and TimThumb?
you can put timthumb.php in root of your wordpress site..but you have to have cache folder in root directory too
then open wp-content/plugins/featured-content-gallery/gallery.php file in notepad or wordpress editor and
find 2 existences of this line
and replace it with this
this way you do not need to specify thumnailimg custom field for each post and thumnail will be resized by timthumb
but only thing, timthumb does not work on external images, so images should belong to your site
then open wp-content/plugins/featured-content-gallery/gallery.php file in notepad or wordpress editor and
find 2 existences of this line
- Code: Select all
<img src="<?php $key=$imgthumb; echo get_post_meta($post->ID, $key, true); ?>" alt="<?php $key="alttext"; echo get_post_meta($post->ID, $key, true); ?>" class="thumbnail" />
and replace it with this
- Code: Select all
<img src="<?php $key=$imgthumb; echo "timthumb.php?src=".get_post_meta($post->ID, $key, true)."&h=75&w=100&zc=1"; ?>" alt="<?php $key="alttext"; echo get_post_meta($post->ID, $key, true); ?>" class="thumbnail" />
this way you do not need to specify thumnailimg custom field for each post and thumnail will be resized by timthumb
but only thing, timthumb does not work on external images, so images should belong to your site
Yelena Khamidullina
Web Applications Developer, iePlexus
1. Check settings to exclude fcg-YOU conflict
2. Try to turn off all your plugins at once to exclude fcg-other plugin conflict
3. Try default theme to exclude fcg-theme conflict
4. Post in this forum to involve me in your troubleshooting. URL is required
Web Applications Developer, iePlexus
1. Check settings to exclude fcg-YOU conflict
2. Try to turn off all your plugins at once to exclude fcg-other plugin conflict
3. Try default theme to exclude fcg-theme conflict
4. Post in this forum to involve me in your troubleshooting. URL is required
-

admin - Site Admin
- Posts: 4738
- Joined: Fri Jan 16, 2009 9:29 am
- Location: Seattle, WA
4 posts • Page 1 of 1
Return to Development, Improvement, and Conflicts
Who is online
Users browsing this forum: No registered users and 0 guests









