WP Post Thumbnail 0.2 beta 1

Hi guys,

Would you mind testing WP Post Thumbnail 0.2 beta 1? You’ll find a link to download the plugin in a zipped file at the bottom of this post. It is placed down there in hope that you might spare a few minutes of your time to read about WP Post Thumbnail 0.2 beta 1.

Here’s a rundown of version 0.2’s major changes and things to note:

    dear bloggers …

  • Save as draft (or published) before making thumbnails
    The plugin’s crop panel won’t appear before you ‘Save Draft’ a new post. The plugin needs a proper post ID to link thumbnails to their respective posts. So type your post, save it as draft and the crop panel should appear when the page reloads.

    This is more of a safety measure than anything. Technically, WordPress gives you a temporary post ID (something like this: -12345678) the moment you write a new post. As soon as you type a title or a few sentences, WordPress auto saves it as draft for you. Only then the post gets a proper post ID. Until I have more time understanding how to go about temporary IDs, I don’t plan on keeping this checking measure around.

  • No more XML file in theme folders to configure thumbnails
    WP Post Thumbnail 0.2 does not read thumbnails configuration from an XML file in theme folders anymore.

    WP Post Thumbnail 0.2 is re-written from a blogger’s point of view. It has options for you to easily configure thumbnails to suit different WordPress themes.

    The plugin comes with 3 presets. For each preset, bloggers can change width, height and assign which custom key it points to.

    Lets say you are using a theme that calls custom key “wppt-standard” to put thumbnails in posts. Simply enter “wppt-standard” in the custom key field.

  • Choose default thumbnail
    For themes that do not use custom keys for post thumbnail (such as Kubrick’s default WordPress theme), you can choose one thumbnail preset out of the three and set it as default.

    If preset1 is set as default, the plugin will insert all preset1 thumbnails into their respective posts.

  • Uses WordPress’s media library
    Unlike the old version 0.1.8, you now have to upload your original images (jpg, png or gif) to the media library. Choose the uploaded images from WP Post Thumbnail panel and crop.

    Note: I’ve received feedback concerning JPGs loaded into the crop panel looking horribly compressed. It was done so intentionally. The JPG is ridiculously compressed before loading so that it loads fastest. Don’t be alarmed coz when you save thumbnail, the crop is done to the actual full quality source which you uploaded. The next update out of beta will probably include an option to trigger compression quality of source JPGs loaded into crop panel.

    By retaining the original source images, you can always come back to the source to recrop. Or simply let the plugin do it for you. Which brings us to the next feature.

  • Auto recrop & resize
    As mentioned above, WP Post Thumbnail 0.2 has an options page to modify width and height of 3 preset thumbnails. Each time you set a new width and height for a preset, the plugin automatically recrop/resize existing thumbnails to the new dimension. Thumbnails automatically shrink or grow around your crop’s area of focus while preserving aspect ratios and proportions.

    It might not be apparent how this feature will help you now. But imagine you’ve been using Theme-A for a year. Theme-A uses 200px by 150px thumbnail for post entries. You have blogged hundreds of posts and created hundreds of 200px by 150px thumbnails.

    What if you decide to switch to a new theme, Theme-B, that uses 250px by 100px thumbnails?

    To save you the trouble of manually going back post by post to recrop hundreds of thumbnails, the plugin does that for you at a click of a button.

    dear theme developers …

  • (Optional) Shortcode to get thumbnail img tag
    This is completely OPTIONAL. Let’s be clear about this.

    Most theme developers currently use custom keys to put thumbnails in their themes. If you’re one of them using “get_post_meta” tag to call post thumbnails in your existing themes, no changes is necessary.

    The plugin comes with an additional way to call post thumbnails. “wppt_thumbnail” shortcode returns an img tag complete with alt, title, width and height attributes. The “custom_key” parameter is required. The shortcode accepts an optional “class” parameter for you to style the img. The following shortcode sample calls custom key “your-post-thumbnail” and “your-post-thumbnail” class parameter:

    [wppt_thumbnail custom_key="your-post-thumbnail" class="your-post-thumbnail-class"]
    

    Why use “wppt_thumbnail” shortcode instead of the usual “get_post_meta”? The plugin allow bloggers to edit ALT and TITLE attributes for each thumbnail created. They can enter precisely what they want as ALT and TITLE. The “img” tags called by the shortcode contains ALT and TITLE attributes that the bloggers entered for each thumbnail. Remember, using shortcode is absolutely optional.

    Here’s a sample on using [wppt_thumbnail] shortcode in your posts loop. If you want to implement the [wppt-thumbnail] shortcode way of calling post thumbnail, bear in mind, you can’t expect all your theme users to use WP Post Thumbnail plugin. Therefore ideally, you should have both [wppt-thumbnail] shortcode and the normal “get_post_meta” way:

    
    <?php $pft_widescreen_img_tag = do_shortcode('[wppt_thumbnail custom_key="pft_widescreen" class="thumbnail"]');
    
    if ( !empty( $pft_widescreen_img_tag ) ) {
    
    echo $pft_widescreen_img_tag;
    
    } else if ( get_post_meta($post->ID, 'pft_widescreen', true) ) { ?>
    
    <img class="thumbnail" src="<?php echo get_post_meta($post->ID, 'pft_widescreen', $single = true); ?>" />
    
    <?php } ?>
    

DownloadHere’s the download link to WP Post Thumbnail 0.2 Beta 2:

wp_post_thumbnail_0_2_beta_1.zip

Requirements

  • Requires at least: WordPress 2.7
  • Tested up to: WordPress 2.8
  • You might need directory “wp-contents/” set to write permissible (777) mode before installing plugin.
  • Also, CHMOD the plugin’s cache directory “… wp-contents/plugins/wp-post-thumbnail/cache” to writable too (777).
  • Requires web server running PHP5.
  • Safe mode OFF.

Installation
1. Unzip the package. Upload `wp-post-thumbnail` folder to `/wp-content/plugins/` directory.
2. Activate the plugin through the ‘Plugins’ menu in WordPress.
3. Go to ‘Settings’ > ‘WP Post Thumbnail’ for configuration.

Known Bugs and Issues
1. Large images stuck during loading. Scale your ultra-large images down to a more manageable size (eg. 1024px by 783px) before uploading to your post. Set your web hosting server’s php.ini max_memory to no less than 32MB.

Feedback, bugs and suggestionsTo report bugs, email me at:

stanley~AT~seoadsensethemes~DOT~com

Thank you!

80 Responses to “WP Post Thumbnail 0.2 beta 1”


  1. 1 mostafa1990

    hi dear!
    thanks for your plugin
    i’m hoppy

  2. 2 Maciej

    You’re a star :)

  3. 3 Tony

    Great! I will install this right now and check it out!

    The updates sound really interesting… and I’m glad you got rid of the XML document thing. ;)

  4. 4 Brian Bento

    OH YEAH!

  5. 5 Paris Vega

    cool. I like the new admin settings and auto thumbnail features.

  6. 6 christopher

    did you want us to discuss issues here or keep it to email?

  7. 7 Martin

    Stanley – you are the best. LOVE this plugin. Keep up the good work!

  8. 8 Jacek Krużycki

    Hi. Will this plugin work with previous version (still working)?

  9. 9 Arnii

    Can anyone make this plugin work? When I install it, it gets my media (images), but I cannot crop them :(

  10. 10 Mark

    Arnii, make sure you upload the files in BINARY mode in your FTP program.

  11. 11 Martin

    Arnii – perhaps its cause of the size of the mem php is too small. My current host has a max of 24 which seems to be too small. At the moment im changing webhosting to a provide that gives me 128 intstead. I have testet this plugin on the new provider and it works fine there.

  12. 12 christopher

    here are my results so far…

    night one, when the plug-in was first released, I had no luck getting it to work on either my desktop setup or online. The online install kept spinning the ‘loading images…’ and ’saving changes’ without any changes or results.

    today, it’s working find on my desktop set-up and I haven’t had a chance to try it again online. That is next.

    I haven’t changed anything so I’m guessing I was just tired the first night and doing everything wrong.

    I do have to say, I really really like where this plug-in is going and how it functions.

    Big THUMBS UP from me

  13. 13 christopher

    an updage…

    online I am getting ‘Saving changes, please wait …’ on the options page

    and

    ‘Loading image attachments from media library …’ on the write post page

    and, nothing ever happens.

  14. 14 Peter

    I was wonder if setting “wp-contents/” to write permissible (777).
    Is it safe?

  15. 15 MoiMM

    Hello !

    Sorry, i’m french and my english is very bad ! :)

    That don’t work for me !?!

    I can’t crop my image …

    It’s ok in admin option … in the post the WP post Thumbnail option look good … but i can’t choose the preset 1 (the loading image turn, turn, turn, …) … it’s the same if i choose one image to crop … the loading image turn, turn, turn, … :(

    Someone can help me ?
    :)

  16. 16 Riika

    I was wondering if there was any way to make the thumbnail a link that opens the full-sized image? If I could get that functionality that would make this plugin the solution I have been looking for!!!

  17. 17 Alejo

    amazing plugin, yet I have had many difficulties, i still think its the best plugin ive ever used

    now to the problem:

    i can upload any images to the post, the plugin finds it perfectly, I can select any picture, the plugin loads it, i select the crop size, BUT, when i hit the “save thumbnail” button, I get the eternal loading icon on the preset tab, and nothing else ever happens

    I have already tried, deactuvating, deleting all calls from the plugin in the DB, re activating
    but had no success

    any ideas?

  18. 18 Bovine

    Is it possible to have a way to upload a photo to crop without choosing from the attached media library? A lot of times when showing an attached gallery, I don’t want the thumbnail to be part of it.

  19. 19 Ryan Maffit

    Aw, no more XML files? That was a great feature. Is there any plans to re implement it in the future or are you leaving it out forever?

    Stanley: Not forever I guess. I just couldn’t figure out where to draw the line between bloggers and themers.

    With 0.2, bloggers can control thumbnail sizes and custom keys in the options page. That gives them the ability to shape and configure thumbnails to suit different themes. Existing thumbnails are also automatically resized/recropped to any width and height at a click. Should XML in themes be given authority to do that?

  20. 20 christopher

    ‘I get the eternal loading icon on the preset tab, and nothing else ever happens’

    The same problem I am having. The funny thing is I have the plug-in working perfectly on my desktop install of wordpress with xampp but when I try to use it on an online web page I run into the same spinning loading problem. I’m not sure if this is a write access issue or what. I remember there being similar issues with the previous version.

    Stanley: I fixed a big filepath bug last week. It was server related and I believe is cause for many problems we’ve been having. I shall be releasing another beta in a couple of days for further testing. Jcrop 0.9.8 which was released 2 days ago will be in the next beta too.

  21. 21 Ryan Maffit

    Maybe… What about having an option in the settings for the plugin for “Use wppt.xml file for theme templates” or something like that. That way users could still keep control if need be and themers could make it easier for users to add thumbnails without having to mess with the settings. (I’m coming from a themers point of view where thumbnails are usually expected to be one size and not to be changed by the users so one of the nice things I liked about the XML setup was that it let you name the predefined sizes and add a short description for them to make it easier for end users.)

    This plugin is an amazing plugin and has huge potential so keep up the great work :D

  22. 22 Waffles

    Hey thumbnails don’t show up on anything other than the main page (example: the category achieves page). Should they? Or is there something I can do to make them show up? Thanks great plugin though.

  23. 23 Ben

    This is exactly the plugin I’ve been looking for, I can see myself using this in all our theme work, but:

    1. The eternal loading bug is stopping it from working (0.2 beta 1) I’m guessing the filepath fix isn’t yet in the download?

    2. I _much_ prefer the workflow of the older release, having to go through the media library is something all of our new wordpress users find really weird, particularly as the media library button is hidden up next to the post formatting controls. They all just want a field to add a thumbnail with its own upload button. Ideal would be to show the post media the way that you do now, but with the upload box from the old version next to it.

    3. The xml approach is nice for us theme designers, but a pain for everyone else, what if you just parsed it for theme tag calls and not for post shortcodes?

  24. 24 jabka

    I’ve translated the default .po file to German (de_DE) and compiled a .mo file, but I couldn’t find out how to name the files to get the translation working. Any ideas???

  25. 25 dimas

    so how do i add more presets now? oh btw, love your work stanley.

  26. 26 Christopher Murray

    This plugin is brilliant. Wished it worked ;-)

    I’m getting a similar error to others; when I click the uploaded image, it hangs on “Loading..” … preventing me from doing anything else.

    Thanks for this though .. can’t wait to use it.

  27. 27 Christopher Murray

    Hrm, the interface at least seems to work in IE6 … but not FireFox! What’s up with that? ;-)

  28. 28 Andy Harrison

    The plugin is installed and shows up when i write a post, but instead of thumbnails I get:

    “No image attachments found. Upload an image file using WordPress built-in media library”.

    But I have uploaded images to the media library.

  29. 29 Alex

    @dimas It looks like you can add more rows to the wppt_preset table with phpmyadmin.

  30. 30 Sypie

    I fixed the Dutch translation for you. You got it by e-mail with the comment that there are a few strings not in the original language file.

    Stanley: Yes, I have got your email. Thank you very much for translating this plugin. It’ll be included in the stable 0.2 release.

  31. 31 Paul

    Great new release! One possible bug. Whenever I go to the Settings > WP-Post-Thumbnail and try to set custom settings for the presets I get strange behavior. Everything works fine for preset_1 but when I change preset_2 or preset_3 they end up changing the settings for preset_1. Whatever the last preset I put in for 1, 2, or 3 is use for preset_1 and the others always remain unchanged.

    Is anyone else experiencing this?

    Could it be related to my setup?

  32. 32 christopher

    One possible bug. Whenever I go to the Settings > WP-Post-Thumbnail and try to set custom settings for the presets I get strange behavior. Everything works fine for preset_1 but when I change preset_2 or preset_3 they end up changing the settings for preset_1. Whatever the last preset I put in for 1, 2, or 3 is use for preset_1 and the others always remain unchanged.

    haven’t run into this problem myself. aside from my previously posted problems everything is working as it should be as far as i can tell. I do need to dig into creating more presets and messing around with more of the design aspects of the plug-in. I’d like to test out having more than the default three presets but I’m waiting for the next release before I get any deeper into the code.

  33. 33 Boston

    Mine is also hanging on “Loading…” after I select an image. Is a fix coming?

  34. 34 Satranç

    Hi,
    Nice work. Thanks for it.

    It’s a JavaScript bug at Wp 2.8 Bleeding Edge. When activated the plugin, it disables the Wp Admin Menu.

    Not: Yes I know the beta for 2.7.1 :)

    Thanks.

  35. 35 Alex

    Definitely doesn’t work when wordpress is not in the root directory.
    Although image uploading and cropping work fine, the directory to the thumbnail is computed incorrectly in the custom field.

  36. 36 Alex

    By the way, Stanley, thank you so much for your creative and excellent work on this plugin and its predecessor version 1.8. It’s a great step in the right direction.

  37. 37 Andrew Yates

    Hi Stanley,

    Great plugin, just wondered if you could post the filepath fix for the plugin? I am also getting a few Javascript errors show up in Firebug. If you require anymore info then let me know and i’ll see what i can provide.

    Thanks

    Andy

  38. 38 Javier

    I tested the previous version works great! but im having some troubles with this beta, here is what i see:

    http://img10.imageshack.us/img10/5632/wppostbeta.jpg

    I can´t do anything, im working with wordpress 2.7.1, which can be the problem?

  39. 39 San Diego Website Design

    How do you get the normal post to show the entire size instead of the thumbnail?

  40. 40 casimir

    hi,

    i get this error every time on all the new post pages

    —————————————————————————-
    decode( $content ); } } if ( !function_exists(‘json_encode’) ) { function json_encode( $content ) { require_once ‘./JSON.php’; $json = new Services_JSON; return $json->encode( $content ); } } ?>
    —————————————————————————-

    thanx cas.

  41. 41 Solomon

    Even the filepath-fixed versions don’t quite work on me yet, so it would be great to get some more test versions out there to try something out.

  42. 42 Ananth

    Hi,
    I have been using your plugin for a long time now, and there’s none other like it! Recently i moved my hosting to GoDaddy, and ever since that i have been having problems with your plugin. I had the stable version as well as the beta version. None of them will work. The stable version, after uploading the image file, does not show it and it just says “Upload successful”. The newer version refuses to show the gallery photos that i already have. I have experimented with the permissions of the “upload” folder, but i still cant get it working. Any idea why this is happening? Also what are the dependencies or requirements of this plugin?

  43. 43 Peter

    I’m having the same message: No image attachments found even though I have 2 jpgs in media, any ideas?

    Thanks, great plugin!

    Peter.

  44. 44 Mike

    Hi there. I love the idea of this plugin & it looks like a good start.
    It’s not running on my installation of WP 2.7.1, though.
    When I visit any of the plugin’s areas within the WP Admin area (such as the plugin’s settings page or the section of the ‘Edit Post’ interface related to the plugin), I see ALL of the of interface messages — such as “Filename:,” “Click to edit …,” “Saving…”

    Nothing appears to be shown/hidden as intended. This could be that my server is not able to run the minified versions of the files in the JS folder. (I’ve noticed this is the case trying to minify other scripts for the site.)

    At least, to my eye, that seems to be the most likely issue.

    Thanks again!

  45. 45 Brian

    Hi,
    Great job with the plug in man!
    I was wondering if your plug-in will be supported for 2.8 bleeding-edge soon? :)

    This thing is awesome and would love it to work with the latest unofficial version.
    Let me know what are your intentions.
    Cheers,

  46. 46 Gabriele

    Hi!

    I have put this piece of code into my theme index.php (no single.php, no archive.php in my theme – Amazing Grace) but I get this line on screen:

    [wppt_thumbnail custom_key="wppt_preset1" class="thumbnail"]

    Thanks!
    Gabriele

  47. 47 Lennart

    I also had the “loading…” problems, but found out the fix is really easy. :)

    Just chmod the ‘cache’ directory in wp-plugins/wp-post-thumbnail to 777, or make it writable just for the web server user. The plugin needs this cache directory to write the temporary images. Hope this helps you guys.

    Thanks a lot for this excellent plugin!

    Lennart

  48. 48 Christian

    Hi! I’m using WP 2.7, but when I click on the image to crop… the load is neverending, also with small images.

    What should I do?
    The php.ini is ok, I use Atahualpa theme.

    Thank you!

  49. 49 Brad Blackman

    I e-mailed Stanley a few days ago, but haven’t heard anything from him. Maybe one of y’all can help. Here’s what I sent:

    I’m not sure what I’m missing but here we go:

    1. It looks like it lets me upload a file, but then nothing appears for me to crop.

    2. WP Post Thumbnail doesn’t show up under the Settings tab.

    I’ve confirmed that gdlibrary is installed, I’m running PHP 5.2.9, and the wp-content/ folder is set to 777, but I don’t know what else to look for. Here’s my phpinfo if it will help: http://bfanddaisy.com/phpinfo.php

  50. 50 troy

    This is so retarded, I don’t know where to put this code or which file to edit, Is there a simple guide for those of us who didn’t spent 14 years in computer science courses?

  51. 51 dustin

    Hi, I am getting the same error that casimir is getting, but it appears on the top of every page on my blog, even the admin area.

    The error is….

    —–
    decode( $content ); } } if ( !function_exists(‘json_encode’) ) { function json_encode( $content ) { require_once ‘./JSON.php’; $json = new Services_JSON; return $json->encode( $content ); } } ?>
    —–

    I am developing a theme on a test server and would really love to use this plugin for it. Does anyone have any idea? I am using WAMP Server 2.0 (Apache 2.2.11, PHP 5.2.9-2, mySQL 5.1.33) that’s running Wordpres 2.7.1.

  52. 52 Solomon

    Lennart! You’re the man! Ridiculous that I didn’t think of that. It’s working now!

  53. 53 coda

    @casimir: I also had that problem. You need to make a change to “/wp-post-thumbnail/includes/php4_JSON.php” file – on the first line, replace “<?” with “<?php” (ie. add “php” after the question mark). It works fine for me after that change. Not sure why it’s using that file though, since my web server is running PHP5+.

  54. 54 Gabriele

    Solomon
    May 16, 2009 at 10:30 am
    Lennart! You’re the man! Ridiculous that I didn’t think of that. It’s working now!

    ———–

    Well… the images are stored in the cache dir but the image is not being loaded in the wppt crop interface.

  55. 55 Nevrotico

    uhm…very nice plugin but that don’t work.

    Stuck on Loading. After selecting any image, we can’t crop nothing.

    Any solution/fix ?

    Ty

  56. 56 Lex

    I see nothing underneath “Custom thumbnail settings” with this new version.

    Tried IE, FF & Chrome.

    I do get a javascript error:

    thumbID is undefined

    See “thumbID = thumbID.charAt(thumbID.length-1);” – in – function buildThumbTabs()

    Don’t know if that has something to do with it…

  57. 57 Lex

    I had to delete the (old) wppt stuff in the option_name in the wp_options table and then it worked.

  58. 58 Lex

    i guess this only matters to unix servers:

    in /includes/php4_JSON.php

    change JSON.php to json.php in line 5 and 17

    That made the “stuck on loading” problem go away for me.

  59. 59 Lex

    hmmm, somehow i managed to create 2 thumbnails, but now i’m stuck with the ’stuck on loading’ problem again.

  60. 60 Lex

    I’ve got screenshots of two errors, one when I hit ‘resize’ at ‘Custom thumbnail settings’ and the other one is the javascript error when I try to edit a post. That one doesn’t say a lot I’m afraid. Both of these don’t look very important, but maybe they do help sorting this problem out.

    http://www.peng.nl/temp/wp-post-thumbnail/resize-custom-thumbnails-settings.png

    and

    http://www.peng.nl/temp/wp-post-thumbnail/edit-post-javascript-page-error.png

  61. 61 Gabriele

    Ok guys… I really love this plugin but I am stuck.

    I have WPMU installed locally and run with WAMP and online on my server.

    WAMP: the loding icon doens’t go away. I have PHP.ini set right. I did try to follow Lex hint – JSON.php to json.php – nothing fixed.
    Theplugin saves the image in the cache folder >> 111-792×529.jpg
    The image I try to crop if 150Kb – 800×600

    ONLINE: the preset2 changes affect the preset1 instead of preset2 in DB.

    I uninstalled and clean the DB from all the wppt_* tables and options form both ONLINE and WAMP servers.

    I can’t beleive we can’t find a solution :)

  62. 62 neotoxic

    This is awesome, but not working for me.

    + I am not seeing any images where the media library images are supposed to be?

    + I miss the ability not to directly upload a new image from the post, it means your work flow has to be a little backwards. Rather then write post > attach image > done.. you have to upload image > save draft > set thumbnail > done.

  63. 63 Cassandra

    This is perfect but I can’t get past the ‘loading’ to get it to work, any suggestions?

    Cassandra

  64. 64 Paul Boag

    Shame, this looks like an excellent plugin but no matter how many images i upload using the media library I get this message…

    “No image attachments found. Upload an image file using WordPress built-in media library”

    If anybody solves it I would love to hear.

  65. 65 Gabriele

    try to upload the images from the post edit page, not from media library.
    If you upload via media lib the plug-in will not able to know which image is associated to the specific post.

  66. 66 Eric Kittell

    I was having many of the same problems mentioned above, using this crappy server that was provided to me. For some reason the wp-content/uploads directory was not even created. I tested it all out on my dreamhost shared hosting account and it works like a charm without bothering with any of the fixes mentioned above. Thank for a great plugin!

  67. 67 Eric Kittell

    It would be a nice to be able to change the default tab titles, from “preset 1″ etc to something more indicative for the blogger

  68. 68 Arnii

    Anyone using the beta version with an WP 2.8? I can’t make it work…

    Stanley, when do you think a final version is ready?

    Thanks..

  69. 69 Ramon

    I tried using it with 2.8 but got a lot of jquery errors and the WP navigation was buggy while the plug in was installed.

  70. 70 Trey

    I too am trying to get this plugin to work with WP 2.8.3. It worked beautiful with 2.7. I need to upgrade Wordpress desperately since there are some vulnerabilities that need to be patched, but I can’t do it until this plugin works.

    Anyone get this working in 2.8.x???

  71. 71 rush

    Though Beta 2 is out.. The comments are locked on that post..
    While using Beta 2 with 2.8.2 there is a warning shown as below on step 1
    1 Select thumbnail:
    Warning: Invalid argument supplied for foreach() in /home7/adzguruc/public_html/photorush.net/wp-content/plugins/wp-post-thumbnail/wppt.php on line 774

    I suppose the argument in the foreach() statement are the issue…
    foreach ( $this->wppt_preset as $thumbnail )

    And the Tabs aren’t loaded on the interface..
    Any workarounds ?

  72. 72 alex

    Hi,

    The get_post_thumbnail function does not work at all.
    Unfortunately the $Wppt object does not exist at any scope.

    Thanks.

  73. 73 iorkara

    Hi Everyone.

    I am in need of some help. I have installed this plugin. Everything works fine. I upload an image to Library via Post Edit. I crop and save the Thumbnail. I Publlish the Post, however the Thumbnail does not show on the Post.

    This used to work with the old 0.1.8 version.

    Any help would be very much appreciated.

    Kind regards,

    iorkara.

  74. 74 monaye

    I am using 0.2 Beta 2 and stack with loading… checked php.ini for memory_limit and it’s 128M. Since i am working on my machine, cache folder are obviously not a problem. Anyone know any fix?

  75. 75 verdant

    hi, nice hear WP post thumbnail have new update, but I got a prob now and need your help.
    and to the point, does this WPPT can install and work on addon domain ? I have installed on add on domain, and can make thumb on post or edit post also have save on my default upload WPPT folder. also I’ve CHMOD cahce and upload folder too. so my prob is, that thumb not appear on my post on front of my site. when I right click blank image area, that point on my site like : http://www.vba-arts.com. not on spesific area or upload thumb area… how I can solved it ???

    just it and need your have for my prob. thanks for your time and I will always track this commnent for your help.

    regards

  76. 76 Tycoon

    Hello all,

    I have one problem.
    How can i show the thumbnails in my template?

    I have try this code:

    [code]

    get_post_thumbnail" ) ) {

    $thumb = $Wppt->get_post_thumbnail( $post->ID, 'wppt_preset1' );

    if ( !empty( $thumb ) ) { ?>

    <a href="ID); ?>" title="post_title; ?>"><img class="thumbnail" src="" title="" alt="" width="" height="" />


    [/code]

    Kind Regards,

    Tycoon

  77. 77 MW

    Work!

  78. 78 Luis

    My particular take is that the plugin works like a charm, but it’s limiting because there’s only 3 slots for size presets. I’m working on some changes to my theme and would really like having 5 presets as a minimum to make my life easier.

    I’m trying to figure out how to add a new preset to the plugin, but I’m stumped.

  79. 79 Luis

    Nevermind, just figured it out!

    To add a new preset just go to the wppt.php file in the plugin directory and edit this part:

    $wpdb->query( “INSERT INTO $this->wppt_preset_db
    ( wppt_preset_id, wppt_preset_name, wppt_preset_desc, wppt_preset_width,
    wppt_preset_height, wppt_preset_meta_key ) VALUES
    ( $wpdb->escape(‘0′), $wpdb->escape(‘preset1′), $wpdb->escape(‘preset1 description’), $wpdb->escape(‘630′),
    $wpdb->escape(‘230′), $wpdb->escape(‘featured_thumbnail’) ),
    ( $wpdb->escape(‘1′), $wpdb->escape(‘preset2′), $wpdb->escape(‘preset2 description’), $wpdb->escape(‘200′),
    $wpdb->escape(‘110′), $wpdb->escape(‘thumbnail’) ),
    ( $wpdb->escape(‘2′), $wpdb->escape(‘preset3′), $wpdb->escape(‘preset3 description’), $wpdb->escape(‘150′),
    $wpdb->escape(‘80′), $wpdb->escape(‘thumbnail_top’) )” );

    and insert a line like this before the last preset:

    ( $wpdb->escape(‘3′), $wpdb->escape(‘preset4′), $wpdb->escape(‘preset4 description’), $wpdb->escape(‘150′),
    $wpdb->escape(‘80′), $wpdb->escape(‘thumbnail_top’) );

    The idea being that you have to change the escape number to a secuencial (so if the previous was 2, then the new one for the line you put in will be 3 and so on) and then just manually edit the rest of the preset numbers.

  1. 1 B’f and Daisy | The site is functional again!

Leave a Reply