• Resolved Jenny Beaumont

    (@jennybeaumont)


    Hya,

    This is an awesome plugin! Have been looking for something as flexible as this for a long time.

    I do have one small hangup – the path for the thumbnails isn’t correct. Somehow in this line:
    $thumbcode = str_replace( $current_blog->domain . $current_blog->path, $blogdetails->domain . $blogdetails->path, get_the_post_thumbnail( $post_id, $size, $attrs ) );
    the current blog is published twice, giving me a src path for the image that looks something like this:
    http://www.mainsite/blog3/blog3/wp-content/blogs.dir/3/files/2012/3/actu1-192x128.jpg
    I’ve tried commenting out the second path name, but the url is then missing a / – can’t seem to work it out.

    thanks for your help!
    -jennyb

    http://wordpress.org/extend/plugins/network-latest-posts/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Jenny Beaumont

    (@jennybeaumont)

    (missing .com in the address example is just a typo 🙂 )

    Thread Starter Jenny Beaumont

    (@jennybeaumont)

    hmmm, ok, this finally worked for me:

    $thumbcode = str_replace( $current_blog->domain /*. $current_blog->path*/, $blogdetails->domain /*. $blogdetails->path*/, get_the_post_thumbnail( $post_id, $size, $attrs ) );

    Plugin Author Jose Luis SAYAGO

    (@iluminatus)

    Hello Jenny I’m glad you found the solution, it’s pretty weird because as you can see here: http://8elite.com/blog/2012/03/14/network-latest-posts-examples/ they work perfectly, maybe it’s something related to the way your blogs are created but I couldn’t say, wish I could reproduce this behavior. I’ll test your solution to see if everything keeps working as it does right now, if so I’ll add this as a patch, so you don’t have to hack the code each time you update the plugin.

    Kind regards.

    Thread Starter Jenny Beaumont

    (@jennybeaumont)

    Heya – thanks for responding. I notice in your site that the URLs actually start wp/content/, rather than the full on http://…just realized that I use a plugin to strip out the /blog/ from the URL – maybe that has something to do with it? In any case, my images show up great with those bits commented out 🙂

    now if I could just figure out how to target taxonomy – man joining those tables up are giving me major grief!

    best,
    -jennyb
    ps : and thnx again for the great plugin 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Network Latest Posts] problem thumbnails’ is closed to new replies.