Find Thumb Plugin

Comments

To Download the “Find Thumb”, Wordpress Plugin CLICK HERE

 

The problem

 

Many Wordpress themes, are heavily dependant on “feature images” to use as thumbnails to make them look good. This is great except it adds a lot of extra work setting up these thumb references, but equally if you are in a hurry and forget you add the thumb then the look of the theme breaks.

 

Intro to the problem with images

 

And the solution

 

So here is Tui’s Find Thumb plugin. It is very easy to use. It’s purpose is to replace the Image function currently used in your theme with one that is lot more clever. With these new functions available you can do everything from a randomly select an image, or return a URL or IMG tag source specifically for that post.

The post option works through this logic until it gets a result

1. Returns an IMG tag based on the thumbnail set in the post meta data (through special post fields)
2. The first image in the post
3. A randomly chosen image from a directory (in your base images directory) with the same name as the posts first category slug.
4. A randomly chosen image from your base images directory

 

Ok … Lets install.

 

First download the plugin and install in the Wordpress plugins folder and of course once uploaded, then activate.

 

Select the pluggin and activate

 

Now go to the settings page for “Find Thumb”

 

Goto the settings page

 

First configure the location of your image folder. Here you need to enter the location of your base folder of images. Each category will have a folder in that location. Images in these can be selected to represent the category topic.

 

Now setup the location of the image folders

 

Next the default css class and thumbnail name. If you are using Wordpress, you can almost guarantee you are using css. Here just enter the default class you want to use for images if one isn’t already selected.

 

In addition if you Theme uses “Feature Thumbnails” then enter it’s name here.

 

Set the default thumbnail name

 

Setup how you want images scaled by default

 

Set up image scaling

 

 

Once you have the pluggin installed, if you want more information then return to this web page, the link is at the top of the Wordpress options page

 

Get help from the plugin home page

 

Now go lookup your category setup page in word press. You will need to make a note of all the category slugs as each will need an image folder.

 

Check on Category permalinks

 

Using your ftp client, now create a folder in your main base folder, one for each category. Named after the slug for that category. Create one folder each.

 

finderscreensnapz0011

 

Finally lets start editing the code in your theme

 

Look for where the images are being inserted. For example from mine, it looked like this…

 

First part of code to remove

 

and this …

 

Second part of code to remove

 

Now replace all that with this…

 

New code example to use plugin

 

There are 5 funtions that can be accessed through this plugin.

 

1. tui_findRandomBackgroundSTYLE()
Returns a random image URL from the background images folder if one exists else the base image folder.

 

2, tui_findRandomThumbURL()
Returns a random image URL from base image folder

 

3. tui_findRandomThumbIMG(”Height”,”Width”,”Class”,”Title”,”Alt”)
Returns a random image IMG Tage from base image folder

 

4. tui_findPostThumbURL(”thepostID”)
Returns a URL, having searched based on the postID

 

5. tui_findPostThumbIMG(”thepostID”,”Height”,”Width”,”Class”,”Title”,”Alt”)
Returns an IMG tag, containing the URL, height, width, alt, title and class, having searched based on the postID

 

31 days to build a better blog

To ask questions, find answers to issues & make requests visit my forum

 

Development source : http://wordpress.org/extend/plugins/tuis-thumb-finder/download/

 

 

  • Sorry everyone. Just noticed I uploaded the wrong readme file to Wordpress. The function names in the 1.01 version are wrong. Will upload 1.02 to fix. Sorry for the inconvenience.
blog comments powered by Disqus