Top Poster
#1 ramon fincken 399
#2 Site admin 3
#3 Ber|Art 2
#4 braddmark 1
#5 accentmedia 1
#6 Xarzu 1
#7 pEcosespedex 1
#8 khadish 1
#9 moxxx 1
#10 nistelrock 1
[solution] A working WP Post thumbnail 0.1.8 Extended



Rating : 4 / 5

 
Post new topic   Reply to topic    Ramonfincken.com Forum Index -> CMS-ses (Joomla, WordPress, etc..)
Beta
Want to be notified by email when this topic gets a reply?  
View previous topic :: View next topic  
Author Message
ramon fincken
Site's programmer

Get a free globally recognized avatar
It's free!


Joined: 03 Aug 2007
Posts: 399
Location: A'dam/Diemen, The Netherlands

PostPosted: Sun Mar 28, 2010 3:41 pm    Post subject: [solution] A working WP Post thumbnail 0.1.8 Extended Reply with quote

Original url and source for explanation and images: http://www.seoadsensethemes.com/wp-post...ss-plugin/

Great plugin, however the default 0.1.8 version has some errors and the most recent version refuses to install. Look at screenshot #2 to see what this plugin does.

Screenshots at the bottom.

I've altered some functionality to make this version work as it was intended to work. I have tested this on 2.8.x till 3.0.3

Download
http://www.ramonfincken.com/uploads/topic210.zip

Installation
Code:
1) Download zipfile
2) Unpack zipfile and wp_post_thumbnail_0.1.8ext.zip to your harddrive

3)
COPY wp-content/plugins/*.* to [yourserver]/wp-content/plugins/*.*
COPY wp-content/uploads/*.* to [yourserver]/wp-content/uploads/*.*

Pay attention!
COPY wp-content/themes/yourthemename/wppt.xml to [yourserver]/wp-content/themes/[yourthemename]/wppt.xml

So if you use the Grid Focus theme, do this:
COPY wp-content/themes/yourthemename/wppt.xml to [yourserver]/wp-content/themes/grid_focus/wppt.xml

So if you use the Default theme, do this:
COPY wp-content/themes/yourthemename/wppt.xml to [yourserver]/wp-content/themes/default/wppt.xml

4) Make sure [yourserver]/wp-content/uploads/wp-post-thumbnail is writable by PHP/your webserver

5) Edit [yourserver]/wp-content/themes/[yourthemename]/wppt.xml

6) Go to wp-admin > Plugins and install the WP Post thumbnail




Code to get the URL of the image called pft_square, use this in your
Code:
img src="<?php CODE_HERE "
HTML to show the image.
Code:
get_post_meta($post->ID, 'pft_square', true); ?>




Extra info

The default thumbnail is 160px by 90px which floats to the top left corner of the content of your post.

If your WordPress blog uses a theme that comes with pre-configured set of thumbnail(s) to work with this plugin, the theme’s folder should contain an XML file called ‘wppt.xml‘ created by the theme developer. In this case, it will override the default thumbnail. For theme developers, more information on how to configure WP Post Thumbnail for your WordPress theme can be found in FAQ.


Q: I am developing a WordPress theme. How do I configure WP Post Thumbnail to work specifically for my theme?

WP Post Thumbnail - WordPress Plugin - Theme Developer Flow
Theme developer’s flow illustration (250Kb).
Opens in new window.

A: This is the purpose of which WP Post Thumbnail is written for. The current version of this plugin assumes that you, as theme developer, have basic knowledge of writing a configuration file in XML format and calling/placing the thumbnails’ custom field value within your theme.

For the visually inclined, click the thumbnail on the right to open an image that illustrates basically how theme developers can use WP Post Thumbnail to handle thumbnail(s) in their WordPress themes.

I have included a sample XML configuration file in the plugin’s main folder called ‘wppt.xml‘.



Each thumbnail has four properties:

<name> specifies a friendly name to appear in the thumbnail tab in ‘Write Post’ area.
<desc> a short description about the thumbnail
<width> thumbnail width in pixels
<height> thumbnail height in pixels

IMPORTANT: All fields are required!

Save your file as ‘wppt.xml‘ and put it in your theme’s folder (any folder will do). Blogs that uses your theme, and has WP Post Thumbnail plugin activated, will detect your ‘wppt.xml‘ configuration file.

Q: Where are all the cropped thumbnails stored?

A: They are stored in ‘wp-post-thumbnail‘ folder inside your WordPress default upload path. Eg. '/wp-content/uploads/wp-post-thumbnail' by default.


Screenshots




Developers view:
http://www.ramonfincken.com/uploads/top...shot-4.jpg
Back to top
View user's profile Send private message Visit poster's website
Google adsense
Advertisement





PostPosted: Sun Mar 28, 2010 3:41 pm    Post subject: [solution] A working WP Post thumbnail 0.1.8 Extended

Advertisement
Back to top
GravityForms
Advertisement





PostPosted: Sun Mar 28, 2010 3:41 pm    Post subject: [solution] A working WP Post thumbnail 0.1.8 Extended

Advertisement
Gravity Forms Plugin for WordPress
Back to top
Post new topic   Reply to topic    Ramonfincken.com Forum Index -> CMS-ses (Joomla, WordPress, etc..) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
General forums
The world of freelance
Programming
Other projects
Poll
I love gifts

Yes goodies and presents! [3]
No but I love polls ! [1]

Related google ads