Keyword

Custom Thumbnail for youtube video?

  • Odin Mayland
  • Odin Mayland's Avatar Topic Author
  • Offline
  • Platinum Member
More
12 years 9 months ago #49956 by Odin Mayland
Custom Thumbnail for youtube video? was created by Odin Mayland
I have been trying to get a custom thumbnail from youtube for the same youtube video.

I have been playing with hacking the allvideo plugin code:
/plugins/content/jw_allvideos/includes/sources.php

The thumnail code from youtube is:  img.youtube.com/vi/wol60lhMf6E/2.jpg

Here is what I have pieced together so far but I am getting an error:

Line 285
"youtube" => "<a href=\"https://www.youtube.com/embed/{SOURCE}\" width=\"{WIDTH}\" height=\"{HEIGHT}\" frameborder=\"0\" allowfullscreen title=\"JoomlaWorks AllVideos Player\" ><img src="http://img.youtube.com/vi/wol60lhMf6E/2.jpg" alt="Smiley face" width="42" height="42"/></a>",

Here is the error:
Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/pacifica/public_html/plugins/content/jw_allvideos/includes/sources.php on line 285

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum