WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Popular Posts
[Plugin: WordPress Popular Posts] Trying to use thumbnail (25 posts)

  1. xxsemmiexx
    Member
    Posted 3 years ago #

    Hi Ikki,

    i don't have functions.php in my theme, what now to make the thumbnail work?

    How can i create a functions.php file?

    Thanks!

  2. Héctor Cabrera
    Member
    Plugin Author

    Posted 3 years ago #

    Hi,

    You don't really the functions.php file to get thumbnails working. However, you won't be able to pick the thumbnails yourself since your current theme can't use The Post Thumbnail feature, and because of that my plugin will use timthumb.php to generate the images automatically.

    Just make sure you activate the thumbnail feature, and that your site also complies with the technical requirements described here.

  3. xxsemmiexx
    Member
    Posted 3 years ago #

    Thanks for your fast reply, but how can i activate the thumbnail feature without the functions.php?

    * excuse me for making 2 topics of the same

  4. Héctor Cabrera
    Member
    Plugin Author

    Posted 3 years ago #

    No problem. Are you using my plugin as a sidebar widget? Or you're using the shortcode functionality?

  5. xxsemmiexx
    Member
    Posted 3 years ago #

    No, i don't have the widgets from wordpress, the theme has his own sidebars, i'm using the template code:

    <?php
    if (function_exists('wpp_get_mostpopular')) wpp_get_mostpopular("range=all&order_by=comments&thumbnail_selection=wppgenerated&thumbnail_width=30&thumbnail_height=30");
    ?>

  6. Héctor Cabrera
    Member
    Plugin Author

    Posted 3 years ago #

    I don't see anything wrong with the code you just posted. Should work perfectly as it is. Please do check that your site meets the technical requirements described on the FAQ section.

  7. xxsemmiexx
    Member
    Posted 3 years ago #

    Yup the code is fine, but how to activate the thumbnail feature, cause now i'm seeing this:

    http://img180.imageshack.us/img180/2159/populark.png

    Everything is working well, except for the thumbnails, they are just white.

    technical requirements is ok.

  8. Héctor Cabrera
    Member
    Plugin Author

    Posted 3 years ago #

    You don't need to do anything else. If you set the thumbnail width and height my plugin will activate it automatically. However, it'll check first if it's actually possible to create a thumbnail, otherwise the feature will be turned off.

    The white images you're seeing are default thumbnails created by my plugin since because WPP wasn't able to find any usable images on your posts.

  9. xxsemmiexx
    Member
    Posted 3 years ago #

    ohw hmm strange.. cause these are posts with images in it.
    But ok, if theres nothing to do about it, then i shall leave it how it is.

    Thanks anyway.

  10. Héctor Cabrera
    Member
    Plugin Author

    Posted 3 years ago #

    I'm re-working the thumbnail feature now with some fixes, wanna test it? I'm adding some extra checks that should work for you.

  11. xxsemmiexx
    Member
    Posted 3 years ago #

    Yea awesome, that would be great :)
    You gonna send it to me?

  12. Héctor Cabrera
    Member
    Plugin Author

    Posted 3 years ago #

    Get it here and let me know the results, ok?

  13. xxsemmiexx
    Member
    Posted 3 years ago #

    Ok just uploaded it, and what exactly changed?
    nothing happend so far, still white images.

  14. Héctor Cabrera
    Member
    Plugin Author

    Posted 3 years ago #

    It should look into your posts contents for images and use them if none is found attached.

    Are you sure your site does comply with the technical requirements?

  15. xxsemmiexx
    Member
    Posted 3 years ago #

    I'm unable to activate the "Display post thumbnail" option. Why? Make sure that: your host is running PHP 4.3 or higher; the GD library is installed and enabled by your host; your "wordpress-popular-posts/scripts/cache" directory exists and is writable; there are images on your posts (either attachted or selected under Featured Image).

    On all those questions "Yes" weird huh? :S

  16. Héctor Cabrera
    Member
    Plugin Author

    Posted 3 years ago #

    Try installing WPP 2.0.3 (all versions before 2.1.0 relies only on timthumb.php to create the thumbnails) and let me know if there are any images on your wordpress-popular-posts/scripts/cache directory.

    What's your site URL, by the way?

  17. xxsemmiexx
    Member
    Posted 3 years ago #

    My url is http://www.ultimate-omarion.org but it's in maintenance mode, because i'm editing the theme.

    Ahhh this is better, there are now 2 images showing so that's good, but now as you can see at the screenshot you see the titles of the post 2 times.

    http://img715.imageshack.us/img715/4250/2972010225750.png

  18. Héctor Cabrera
    Member
    Plugin Author

    Posted 3 years ago #

    I'm not seeing any duplicate titles on that image ?

  19. xxsemmiexx
    Member
    Posted 3 years ago #

    here another screencap. http://img838.imageshack.us/img838/5602/2972010232516.png

    they are all duplicated, it starts with:

    # The Omarion Wake Up Call on Itunes!The Omarion Wake Up Call on Itunes! 0 comment(s) <== title is duplicated

  20. Héctor Cabrera
    Member
    Plugin Author

    Posted 3 years ago #

    Oh I see. That issue was fixed on a later version of my plugin! :P Anyways, I'll update the beta version I posted earlier with a few changes and ask you to download it again so you can test it, alright?

    UPDATE: please download the beta again using the same link I posted before.

  21. xxsemmiexx
    Member
    Posted 3 years ago #

    ok, i installed the beta version, and yes 2 images showing, but titles still duplicated.

  22. Héctor Cabrera
    Member
    Plugin Author

    Posted 3 years ago #

    Damn. Alright, just uploaded a new update. Give it a try and let me know what happens again, alright?

    Will come back here tomorrow as I'm a bit tired and need some rest now.

    P.S.: sorry to bother you with all this testing, remote debugging isn't easy. Thanks for your patience!

  23. xxsemmiexx
    Member
    Posted 3 years ago #

    No it's ok.. i love to try it out for you, cause i also want it to get it work.

    But still 2 images and duplicated titles:

    http://img10.imageshack.us/img10/9247/307201002646.png

    I'll hear tomorrow from you, thanks!

  24. QAsker
    Member
    Posted 3 years ago #

    BTW, Ikki, I had exactly the same problem - used code for sidebar (no widget) and only 2 thumbs were always shown (however all posts had images).
    I tried to clean cache, change code parameters - no luck.
    Now I check beta-version u gave link here - and it works as it should!!

    Thank u ^_^

  25. Héctor Cabrera
    Member
    Plugin Author

    Posted 3 years ago #

    Hi xxsemmiexx,

    After a long, quite, relaxing weekend I'm back again! Anyways, can you please check if there are any images on your wordpress-popular-posts/scripts/cache folder?

    @QAsker: thanks for reporting! Will implement this fix on the next release of my plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic