Forums

[Plugin: WordPress Popular Posts] WPP Thumbnails doesn't work in localhost? (3 posts)

  1. ivorpad
    Member
    Posted 2 years ago #

    I'm just trying to display the thumbnails locally, this doesn't work normally? I have GD support enabled - http://grab.by/4xRD I'm running PHP 5+ and the folder cache is writable.

    Suggestion: You should update the plugin so we can use the_post_thumbnail(); ;)

    http://wordpress.org/extend/plugins/wordpress-popular-posts/

  2. Héctor Cabrera
    Member
    Posted 2 years ago #

    Hi ivorpad,

    Have you checked that the cache folder inside wordpress-popular-posts/scripts is writable by your local server? I've seen that Xampp, for example, makes all folders read-only by default (or maybe its Windows' fault, can't tell for sure).

    Also, wanted to thank you for your suggestion. I've checked the documentation and while it does seem to be a good idea, it also requires people to include add_theme_support( 'post-thumbnails' ); to their theme's functions.php file. This is not difficult per se, anyone can do it, however it would add another prerequisite for using my plugin.

    It would also require the user to go back to each of their posts and select a thumbnail (if they haven't done so already) which can be a royal pain in the butt for blogs with lots of posts. Not sure if anyone is willing to do that.

    Don't take me wrong, though. I do believe your idea is great. Actually, it would allow me to remove the timthumb script that WordPress Popular Posts uses to generate the thumbnails and leave that work to WordPress and the blogger alone. That'd be a real relief for me :P

    Right now I've just got a few ideas that popped into my mind. If I can make them work with my plugin and also make it so that this feature won't disturb current users of the WordPress Popular Posts plugin then I'll be a happy man ;)

  3. Héctor Cabrera
    Member
    Posted 2 years ago #

    Just noticed that you're from Venezuela, too :P Excelente!

    Probé tu sugerencia, y esto es lo que logré: WordPress Popular Posts va a chequear por defecto si el post tiene un thumbnail definido por el usuario. De ser así, ése es el que se mostrará en el listado. En el caso de que el usuario no haya seleccionado un thumbnail, mi plugin intentará generar uno automáticamente utilizando timthumb y de no lograr encontrar una imagen adjuntada al post omitirá ese thumbnail y pasará al siguiente post.

    Qué opinas? Crees que es el comportamiento deseado?

    English version:

    Tried your suggestion and this is what I came up with: WordPress Popular Posts will check if a post has a user defined thumbnail. If so, that's the one that will be used on the listing. Otherwise, if no thumbnail has been selected by the user then my plugin will attempt to create one using timthumb. If no images are found, WordPress Popular Posts won't create an image for this post and continue to the next one.

    What do you think? Is this a desirable behavior?

Topic Closed

This topic has been closed to new replies.

About this Topic