Forums

[resolved] [Plugin: WordPress Popular Posts] not sure i'm doing this right. can't get images to show. (9 posts)

  1. drkknght
    Member
    Posted 2 years ago #

    ok, so I have the plugin installed. The widget is up and running. the popular posts are displaying as they should. The only thing I can't get going is the images.

    I've run through the FAQ requirements, and I believe I have all issues covered (I think my php is high enough, think the GD library is installed, and cache folder is 777'd). I'm a bit confused on the the "images to display" issue, though.

    I do not generate thumbnail images with my posts, but wasn't sure if that was needed. Instead, I was hoping this plugin could just take the first image associated with the post and use that.

    However, if it needs to have a thumbnail image for each post (does it?) is there another plugin that automatically generates the thumbnail when I upload an image? That way, I wouldn't have to go back and create a bajillion retro-active thumbs :)

    I get the "image error box" that is looking for this, where the "src" URL by itself refers to a real, working image:

    http://toonbarn.com/wp-content/plugins/wordpress-popular-posts/scripts/timthumb.php?src=http://toonbarn.com/wordpress/wp-content/uploads/2009/05/the-secret-saturdays-manga.jpg&h=70&w=150&zc=1

    (and all that aside, I absolutely LOVE the plugin!)

  2. drkknght
    Member
    Posted 2 years ago #

    ahh, i believe the issue is because the script is being called at "toonbarn.com/wp-content/..." instead of "toonbarn.com/wordpress/wp-content/..." (since i have all WP stuff in a "wordpress" subfolder).

    i'll see if i can poke around in the code to make the change, and post back!

  3. drkknght
    Member
    Posted 2 years ago #

    woot! ok, i think i got it

    in wordpress-popular-posts.php, i changed this:
    "/" . PLUGINDIR . "/wordpress-popular-posts/scripts/timthumb.php?src="

    to this:
    "/wordpress/" . PLUGINDIR . "/wordpress-popular-posts/scripts/timthumb.php?src="

    ...is that right?

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

    Yup. You could also try changing it into this: "/wordpress/wp-content/plugins/wordpress-popular-posts/scripts/timthumb.php?src="

  5. drkknght
    Member
    Posted 2 years ago #

    don't show me up, i'm on a roll! :)

    (but thanks, anyway~!!!!)

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

    Mmm. Are there any images in the cache folder?

    By the way, WPP does create the thumbnails automatically so there's no need to use another plugin for that ;)

  7. drkknght
    Member
    Posted 2 years ago #

    yessir!

    all is working now, correctly and beautifully. thank you so much for the plugin and help!! :)

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

    Great to know that!

    By the way, do you mind telling what you did to correct it so other users can learn about it?

    Thanks!

  9. drkknght
    Member
    Posted 2 years ago #

    sorry, just saw your note (is there a way to get notifications of responses here?)

    it was real quick and easy to fix - the problem i was having was, apparently, due to my not having the default folder structure. so i just had to make a quick edit to the code to make sure it knew where to look.

    in wordpress-popular-posts.php
    i edited this line:
    "/" . PLUGINDIR . "/wordpress-popular-posts/scripts/timthumb.php?src="

    into to this:
    "/wordpress/" . PLUGINDIR . "/wordpress-popular-posts/scripts/timthumb.php?src="

    adding that extra "wordpress" sorted out the whole problem, and everything is now working gloriously!

Topic Closed

This topic has been closed to new replies.

About this Topic