ecabrera Posted August 6, 2011 Share Posted August 6, 2011 my problem is that when i users embed there video codes a Thumbnail does not appear how do to get a img Thumbnail appear Link to comment https://forums.phpfreaks.com/topic/243998-thumbnail/ Share on other sites More sharing options...
trq Posted August 6, 2011 Share Posted August 6, 2011 What have you tried? Link to comment https://forums.phpfreaks.com/topic/243998-thumbnail/#findComment-1252967 Share on other sites More sharing options...
ecabrera Posted August 6, 2011 Author Share Posted August 6, 2011 <div class='image'><a href='$site/movies?id=$id'><img src='http://i1.ytimg.com/vi/$movieid/default.jpg'></img></a></div> but this only works for youtube videos Link to comment https://forums.phpfreaks.com/topic/243998-thumbnail/#findComment-1252969 Share on other sites More sharing options...
phpSensei Posted August 6, 2011 Share Posted August 6, 2011 I suggest a read http://www.gerv.net/hacking/how-to-ask-good-questions/ Link to comment https://forums.phpfreaks.com/topic/243998-thumbnail/#findComment-1252970 Share on other sites More sharing options...
ecabrera Posted August 6, 2011 Author Share Posted August 6, 2011 i read it good one as Link to comment https://forums.phpfreaks.com/topic/243998-thumbnail/#findComment-1252974 Share on other sites More sharing options...
trq Posted August 6, 2011 Share Posted August 6, 2011 You are indeed being VERY vague and unhelpful. If you want help, you need to ask the right questions and provide useful information to those trying to help you. Link to comment https://forums.phpfreaks.com/topic/243998-thumbnail/#findComment-1252975 Share on other sites More sharing options...
phpSensei Posted August 6, 2011 Share Posted August 6, 2011 Thorpe I believe he wants to retrieve a thumbnail based on the youtube video. such as http://i1.ytimg.com/vi/r6TwzSGYycM/default.jpg edit: You seem to have that part working, I don't understand the problem. Link to comment https://forums.phpfreaks.com/topic/243998-thumbnail/#findComment-1252976 Share on other sites More sharing options...
ecabrera Posted August 6, 2011 Author Share Posted August 6, 2011 yeah phpSensei is right but i don't want to retrieve it from a YouTube video i want it to retrieve it from the embed videos that are in my database there or from other video sharing websites i tryed that code with it and nothing all it gives me is this *check attachment [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/243998-thumbnail/#findComment-1252983 Share on other sites More sharing options...
phpSensei Posted August 6, 2011 Share Posted August 6, 2011 Alright post your code so we can further assist you. Link to comment https://forums.phpfreaks.com/topic/243998-thumbnail/#findComment-1252986 Share on other sites More sharing options...
ecabrera Posted August 6, 2011 Author Share Posted August 6, 2011 its the one i posted above <div class='image'><a href='$site/movies?id=$id'><img src='http://i1.ytimg.com/vi/$movieid/default.jpg'></img></a></div> movieid holds the embed videos Link to comment https://forums.phpfreaks.com/topic/243998-thumbnail/#findComment-1252988 Share on other sites More sharing options...
trq Posted August 6, 2011 Share Posted August 6, 2011 Your using a link to youtube. How exactly do you expect that to work? Link to comment https://forums.phpfreaks.com/topic/243998-thumbnail/#findComment-1252992 Share on other sites More sharing options...
ecabrera Posted August 6, 2011 Author Share Posted August 6, 2011 it doesnt hurt to try and what do you suggest i do Link to comment https://forums.phpfreaks.com/topic/243998-thumbnail/#findComment-1252999 Share on other sites More sharing options...
phpSensei Posted August 6, 2011 Share Posted August 6, 2011 Your using a link to youtube. How exactly do you expect that to work? Just wondering, what is he trying to do? Link to comment https://forums.phpfreaks.com/topic/243998-thumbnail/#findComment-1253001 Share on other sites More sharing options...
trq Posted August 6, 2011 Share Posted August 6, 2011 I suggest you store the appropriate link to the appropriate page and use that. Link to comment https://forums.phpfreaks.com/topic/243998-thumbnail/#findComment-1253007 Share on other sites More sharing options...
radiations3 Posted August 6, 2011 Share Posted August 6, 2011 <img src='http://i1.ytimg.com/vi/$movieid/default.jpg> the mentioned img src will only return the image saved in $movieid/default.jpg that depicts you need to create the folders for every single video and save their image as default.jpg Link to comment https://forums.phpfreaks.com/topic/243998-thumbnail/#findComment-1253009 Share on other sites More sharing options...
ecabrera Posted August 6, 2011 Author Share Posted August 6, 2011 ok thanks i know what im going to do i let you guys know what i did when im done Link to comment https://forums.phpfreaks.com/topic/243998-thumbnail/#findComment-1253010 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.