• Resolved kanishiwa1

    (@kanishiwa1)


    Hi! I have a theme that already uses image thumnails with the featured image, although nothing would show when the post only contained a video from YouTube or Vime. So I found this wonderful plug-in!

    Plugin loaded, it’s pulling the URLs, it’s adding the image to the posts, BUT not as thumbnails, it adds them as huge full size images. Would anyone be able to help with where exactly to place the code

    <?php if( ( $video_thumbnail = get_video_thumbnail() ) != null ) { echo "<img src='" . $video_thumbnail . "' />"; } ?>

    so that it works properly, as a thumbnail image?
    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Sutherland Boswell

    (@sutherlandboswell)

    Hey there,

    Glad my plugin could help. This is a really easy fix – just use the following code, and replace 300 with the width you’d like the image to be.

    <?php if( ( $video_thumbnail = get_video_thumbnail() ) != null ) { echo "<img src='" . $video_thumbnail . "' width='300' />"; } ?>

    If you’d like to get more advanced, you can check out TimThumb, a PHP script that can resize/crop images.

    Thread Starter kanishiwa1

    (@kanishiwa1)

    AWESOME! That worked! Thanks for your help!

    I have been trying to figure this out, but I still get the huge thumb nails. I am confused perhaps where this goes

    <?php if( ( $video_thumbnail = get_video_thumbnail() ) != null ) { echo "<img src='" . $video_thumbnail . "' width='300' />"; } ?>

    I am assuming that would go in my functions page?

    Im having the same issue as above getting large video thumbnails with the code provided.

    <?php if( ( $video_thumbnail = get_video_thumbnail() ) != null ) { echo "<img src='" . $video_thumbnail . "' width='300' />"; } ?>

    Plugin Author Sutherland Boswell

    (@sutherlandboswell)

    If you’re having trouble with the size of the images, try using TimThumb to resize them.

    I tried to implement Timthumb but cant get both to work together.. I also used the https://www.binarymoon.co.uk/2009/10/timthumb-wordpress-mu/ for help on this manner but cant seem to make it work within the loop?
    <?php if( ( $video_thumbnail = get_video_thumbnail() ) != null ) { echo "<img src='<?php bloginfo('template_directory'); ?>/timthumb/timthumb.php?src='" .$video_thumbnail&w=300&h=170&zc=1. "' />"; } ?>

    Heres what im getting test site.

    Thanks a bunch!

    Plugin Author Sutherland Boswell

    (@sutherlandboswell)

    Try this

    <?php if( ( $video_thumbnail = get_video_thumbnail() ) != null ) { echo "<img src='" . bloginfo('template_directory') . "/timthumb/timthumb.php?src=" . $video_thumbnail . "&w=300&h=170&zc=1' />"; } ?>

    Nope, that just echo’d back the link?

    <img src=”<?php bloginfo(‘template_directory’); ?>/timthumb.php?src=<?php video_thumbnail(); ?>&w=138&h=104&zc=1″ />

    Try this , it work with me …
    replace the value in “w=138&h=104” with the width and height you’d like the image to be.

    alexkickham

    (@alexkickham)

    Forgive my ignorance, to use TimThumb with Video Thumbnails do I have to click edit on the Video Thumbnails widget and change something in the widget code?

    I would like Video Thumbnails to deliver the same sized thumbs every time, whether it’s a youtube video or a vimeo etc.

    Thanks in advance.
    Alex

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: Video Thumbnails] Full size images being placed instead of thumbnails? Help?’ is closed to new replies.