2010/3/15 12:29:21
|
---|
|
Format videoHi,
I want to add the icon for each video eg youtube ... Example: ![]() thanks. |
2010/3/15 15:07:28
|
---|
![]() |
Re: Format videoThat's MyTube.
Store the source icons in the folder mytube/images/icon/ and name the icons as: 0.gif, 1.gif, 2.gif, etc. The number represents the source, see the function xtube_returnsource in the file include/video.php (0=youtube, 1=metacafe, 2=ifilm, etc) At the end of include/videoload.php add this line: $video['vidsource'] = $video_arr['vidsource']; In file templates/xoopstube_videoload.html add the following where you want the icon: <img src="<{$xoops_url}>/modules/mytube/images/icon/<{$video.vidsource}>.gif" alt="" /> |