1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Video Picture Linking!

Discussion in 'PHP' started by machineman, Dec 26, 2011.

  1. machineman

    machineman New Member

    My blog is regularly updated with videos so the main page loading speed isn't very fast:

    I'm going to try and explain this as best i can: Basically instead of being able to play videos from the main page. I'd like to have just the image of the video (from Youtube, Metacafe, College Humor or any other video site i may use) on the main page that once selected re-directs the user to the page with the video on where they can play the video properly.

    Does that make sense and is it possible?

    Thank you
  2. shabbir

    shabbir Administrator Staff Member

    Yes why not and where do you host your videos?
  3. ritsmontu

    ritsmontu New Member

    You can use the Youtube API Tools to get thumbnail images.
  4. ritsmontu

    ritsmontu New Member

    function print_video($id)
    "<a href='http://www.youtube.com/watch?v={$id}' target='_blank'>
    <img src='http://img.youtube.com/vi/
    {$id}/0.jpg' />

    Source: http://stackoverflow.com/questions/2068344/how-to-get-thumbnail-of-youtube-video-link-using-youtube-api
    Last edited: Dec 27, 2011

Share This Page