Reply New Topic
2010/3/15 12:29:21
#1
Offline
Just popping in

Format video

Hi,

I want to add the icon for each video eg youtube ...

Example:



thanks.


2010/3/15 14:47:31
#2
Offline
Home away from home

Re: Format video

what module is this?


2010/3/15 15:07:28
#3
Offline
Home away from home

Re: Format video

That'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="" />

_________________
McDonalds Store

Reply New Topic extras
 Previous Topic   Next Topic
You can view topic.
You can start a new topic.
You can reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You can post without approval.