• Hi everyone,

    I made a new plugin called Post Thumbs to share. It has barely been tested, so if anyone tries it and has some problems hopefully I’ll know what’s wrong. It works on my site fine.

    What it does is scan a post for an included image and convert that image into a thumbnail to be used in The Loop. You could use this to show a list of posts as thumbnail links if you wanted. It will only work for images that reside on your server. No support for cross domain images as of yet.

    The documentation is shoddy, but it’ll have to do for now. If anyone has any suggestions, feel free to reply. The plugin is here.

Viewing 15 replies - 16 through 30 (of 84 total)
  • Thread Starter callmeforsox

    (@sunscream)

    For your html/php, try this:

    <div class="post-image"><?php echo tb_post_thumb(true); ?></div>

    I think all that matters is it should be used in The Loop.

    Edit: Oh yea, I see you already found that out. I made it so you have to echo yourself.

    sunscream good work

    well i have two questions

    1, do this work if i hosted the image in some image hosting website ?
    2,i am working currently in local system using netserver

    then what will be my base path ?

    Thread Starter callmeforsox

    (@sunscream)

    As of right now, it can only play with images on the local server.

    I have never used netserver, but try creating a php script and put echo $_SERVER['DOCUMENT_ROOT']; in it and run it to see if that will give you the base path.

    Just a request: I’m using the plugin to generate a thumbnail for my front page, but I’d like to generate a smaller image on my Archives page, because it would take too long to load 10 or 20 400x400px images. Also, maybe all the thumbnails should be stored on a single directory so that they aren’t scattered around everywhere. I’d like to know where my images are, y’know?

    But I don’t mean to come off as unappreciative – this is a brilliant plugin. Thank you ??

    Marcomail

    (@marcomail)

    i’m trying the plugin in my apache local server:

    domain name: localhost/domainname

    Default image: https://localhost/domainname/wp-content/default.jpg

    Full domain name: https://localhost/domainname

    Base path: d:/programs/easyPHP1-8/www/domainname

    When is create the pthumb, after i have submitted an article ? I try to submit an article but now wp doesn’t show me any article in the homepage…i must delete tb_post_thumb to whow it correctly…i don’t know why

    emanoelmelo

    (@emanoelmelo)

    I have a urge problem! The script works very very fine, and i’m very grateful for your contribution, but there’s a problem about the files and folders the script creates: i can’t delete them! The ftp says that i have no permissions for delete, move or even change permissions of these files. In fact my host admin said that the script creates the files as an general user and only it can delete this files, except if i change it for creating the files as my username, something like that. How can you help me? =\

    feverinlove

    (@feverinlove)

    Does this plugin create thumbs for posts that are posted before?

    Thread Starter callmeforsox

    (@sunscream)

    @Macromail
    I’m not sure what the problem with that is. It does not do anything when posting an article. It will only do something when it’s called. Might view source to see what’s going on or maybe it’s a php error.

    @emanoelmelo
    Sorry you had this problem. I think it’s attributed to a sticky bit in the script. If you can open up the script and search for sticky bit there should be a line like

    if (!is_dir($save_dir)) mkdir($save_dir,01775);

    change 01775 to 0777

    I’m not sure if this will work since my host doesn’t have this problem, but I think I’ve experienced it before.

    @feverinlove
    This plugin will create thumbs for any post as long as the function is called in the loop.

    feverinlove

    (@feverinlove)

    hi, your plugin is great ?? Its what I have always thought of.

    I added “<?php echo tb_post_thumb(true); ?>” after ” <?php while (have_posts()) : the_post(); ?>” in index.php

    And then Added “<?php
    $posts = get_posts(‘numberposts=6&offset=9&order=DESC’);
    foreach($posts as $post) :
    setup_postdata($post);
    $post_link = tb_post_thumb(true,$post->post_title);
    if ( !empty($post_link) ) {
    echo $post_link; }
    endforeach;
    ?>” on sidebar.php

    Its not showing any thumbnails because the image sources are all linked to base url.

    check it here: https://www.cherez.com
    they are at the bottom of the sidebar.

    they only show alt text

    feverinlove

    (@feverinlove)

    and when I looked at the wp-content/uploads folder there is no pthumbs folder.

    feverinlove

    (@feverinlove)

    I got it working ??

    I got one question: I want to change the thumbnail size from 60 to 70. Is there anyway that the plugin can regenerate the thumbnails?

    theiconoclast31

    (@theiconoclast31)

    feverinlove

    Try deleting them via FTP or your webhost’s control panel. If that doesn’t work, you’ll just have to contact your webhost and ask them to do it.

    @emanoelmelo
    Sorry you had this problem. I think it’s attributed to a sticky bit in the script. If you can open up the script and search for sticky bit there should be a line like

    if (!is_dir($save_dir)) mkdir($save_dir,01775);

    change 01775 to 0777

    Actually, this isn’t working for me for some reason.

    feverinlove

    (@feverinlove)

    can we have the plugin to place images on next/previous post links?

    taken from default theme: <?php next_post_link(‘%link »’) ?>

    theiconoclast31

    (@theiconoclast31)

    Remove the %link>> and echo the post-thumbs function instead.

    wagawaga

    (@wagawaga)

    Questions:
    1. What should i put for this?i would like to display thumbnails for my youtube. It is in the OPTION
    Video regex:
    Video default image:
    2. Also for this, don’t really understand
    Folder name
    Append
    Append / Prepend text
    3. Any example on how to use it where i would like to get the thumb then next to it is the post, the excerpt?

Viewing 15 replies - 16 through 30 (of 84 total)
  • The topic ‘New plugin: Post Thumbs’ is closed to new replies.