|
Edit template of the module mytube 1.05!! Help |
|
Aspirant
Inscrit: 02/12/2009 01:31
De Canada
|
Bonjour tout le monde, Voila j'ai un problème avec mon module mytube 1.05 je voudrais modifié la template de videos et introduire d'autre type de vidéos uploader sur zshare,2shared,stagevu.... Parce que dans mytube je dispose juste de: YouTube,MetaCafe,Photobucket,Google Video,MySpace TV,DailyMotion,Blip.tv,ClipFish,LiveLeak,Maktoob,Veoh,Vimeo,Megavideo Viddler
la plus par j en ai pas besoin en ce moment j'utilise juste le megavideo Donc voila si quelqu,un a une solution merci de bien vouloir me repondre
Posté le : 19/12/2009 19:06
|
|
|
Re: Edit template of the module mytube 1.05!! Help |
|
Xoops accro
Inscrit: 20/02/2008 20:27
De Belgium
|
Posté le : 19/12/2009 22:15
|
|
|
Re: Edit template of the module mytube 1.05!! Help |
|
Aspirant
Inscrit: 02/12/2009 01:31
De Canada
|
c moi meme qui a poster le sujet mdr tu peut m'expliquer un peut ++ stp
Posté le : 19/12/2009 22:51
|
|
|
Re: Edit template of the module mytube 1.05!! Help |
|
Aspirant
Inscrit: 02/12/2009 01:31
De Canada
|
Par exemple je veut ajouter des vidéo de stagevu.com comment vais je procéder
Posté le : 19/12/2009 23:22
|
|
|
Re: Edit template of the module mytube 1.05!! Help |
|
Supporter Xoops
Inscrit: 09/01/2005 13:37
De Breizh
|
bonjour,
comme indiqué dans le post de ghia sur xoops.org, tu dois ajouter les codes correspondants à ces sites supplémentaires dans le fichier video.php du dossier include
@+
Posté le : 20/12/2009 00:25
|
La connaissance s'accroît quand on la partage ...
|
|
Re: Edit template of the module mytube 1.05!! Help |
|
Aspirant
Inscrit: 02/12/2009 01:31
De Canada
|
Merci de ta réponse mais ou vais-je trouver les codes exact parce que j'ai essayé de faire au hasard sa na pas marcher
Posté le : 20/12/2009 01:41
|
|
|
Re: Edit template of the module mytube 1.05!! Help |
|
Aspirant
Inscrit: 02/12/2009 01:31
De Canada
|
Voici ce que j'ai modifié dans video.php dites moi est ce qu'il ya quelque chose qui manque j'ai ajouter stagevu: Citation :<?php /** * MyTube - a multicategory video management module * * Based upon WF-Links * * File: include/video.php * * @copyright http://www.xoops.org/ The XOOPS Project * @copyright XOOPS_copyrights.txt * @copyright http://www.impresscms.org/ The ImpressCMS Project * @license GNU General Public License (GPL) * a copy of the GNU license is enclosed. * ---------------------------------------------------------------------------------------------------------- * @package MyTube * @since 1.00 * @author McDonald * @version $Id$ */
function xtube_returnsource( $returnsource ) { switch( $returnsource ) { case 0: $returnsource = _AM_XTUBE_YOUTUBE; break; case 1: $returnsource = _AM_XTUBE_METACAFE; break; case 2: $returnsource = _AM_XTUBE_IFILM; break; case 3: $returnsource = _AM_XTUBE_PHOTOBUCKET; break; case 4: $returnsource = _AM_XTUBE_VIDDLER; break; case 100: $returnsource = _AM_XTUBE_GOOGLEVIDEO; break; case 101: $returnsource = _AM_XTUBE_MYSPAVETV; break; case 102: $returnsource = _AM_XTUBE_DAILYMOTION; break; case 103: $returnsource = _AM_XTUBE_BLIPTV; break; case 104: $returnsource = _AM_XTUBE_CLIPFISH; break; case 105: $returnsource = _AM_XTUBE_LIVELEAK; break; case 106: $returnsource = _AM_XTUBE_MAKTOOB; break; case 107: $returnsource = _AM_XTUBE_VEOH; break; case 108: $returnsource = _AM_XTUBE_VIMEO; break; case 109: $returnsource = _AM_XTUBE_MEGAVIDEO; break; case 200: $returnsource = _AM_XTUBE_STAGEVU; break; case 201: $returnsource = _AM_XTUBE_MYTUBE; break; } return $returnsource; }
Posté le : 21/12/2009 02:03
|
|
|
Re: Edit template of the module mytube 1.05!! Help |
|
Aspirant
Inscrit: 02/12/2009 01:31
De Canada
|
Voici la suite: Citation :// ******************************************************* // Function for determining source for creating screenshot // ******************************************************* function xtube_videothumb( $vidid, $title, $source, $picurl, $screenshot, $width = '', $height = '' ) { global $xoopsModuleConfig; if ( $width == '' || $height == '' ) { $width = $xoopsModuleConfig['shotwidth']; $height = $xoopsModuleConfig['shotheight']; } $thumb = ''; switch( $source ) { // YouTube case 0: $thumb = '<img src="http://img.youtube.com/vi/' . $vidid . '/default.jpg" title="' . $title . '" alt="' . $title . '" width="' . $width . '" height="' . $height . '" style="padding: 0px; border-style: none;" />'; break; // MetaCafe case 1: list($metaclip) = split('[/]', $vidid); $videothumb['metathumb'] = $metaclip; $thumb = '<img src="http://www.metacafe.com/thumb/' . $videothumb['metathumb'] . '.jpg" title="' . $title . '" alt="' . $title . '" width="' . $width . '" height="' . $height . '" style="padding: 0px; border-style: none;" />'; break; // iFilm/Spike case 2: $thumb = '<img src="http://img3.ifilmpro.com/resize/image ... /films/resize/istd/' . $vidid . '.jpg?width=' . $width . '" title="' . $title . '" alt="' . $title . '" style="padding: 0px; border-style: none;" />'; break; // Photobucket case 3: $thumb = '<img src="http://i153.photobucket.com/albums/' . $vidid . '.jpg" width="' . $width . '" height="' . $height . '" title="' . $title . '" alt="' . $title . '" style="padding: 0px; border-style: none;" />'; break; // Photobucket case 4: $thumb = '<img src="http://cdn-thumbs.viddler.com/thumbnail_2_' . $vidid . '.jpg" width="' . $width . '" height="' . $height . '" title="' . $title . '" alt="' . $title . '" style="padding: 0px; border-style: none;" />'; break; // Google Video, MySpace TV, DailyMotion, BrightCove, Blip.tv, ClipFish, LiveLeak, Maktoob, Veoh case 100: case 101: case 102: case 103: case 104: case 105: case 106: case 107: case 108: case 109: case 200: $thumb = '<img src="' . $picurl . '" width="' . $width . '" height="' . $height . '" title="' . $title . '" alt="' . $title . '" style="padding: 0px; border-style: none;" />'; break; // Determine if video source is MyTube for thumbnail case 200: $thumb = '<img src="' . XOOPS_URL . '/' . $screenshot . '" width="' . $width . '" height="' . $height . '" title="' . $title . '" alt="' . $title . '" style="padding: 0px; border-style: none;" />'; break; } return $thumb; }
Posté le : 21/12/2009 02:07
|
|
|
Re: Edit template of the module mytube 1.05!! Help |
|
Aspirant
Inscrit: 02/12/2009 01:31
De Canada
|
et encore la suite: Citation :// ********************************** // Function for determining publisher // ********************************** function xtube_videopublisher( $vidid, $publisher, $source = 0 ) {
switch( $source ) { // Determine if video source YouTube for publisher case 0: $publisher = '<a href="http://www.youtube.com/profile?user=' . $publisher . '" target="_blank">' . $publisher . '</a>'; break; // Determine if video source MetaCafe for publisher case 1: $publisher = '<a href="http://www.metacafe.com/channels/' . $publisher . '" target="_blank">' . $publisher . '</a>'; break; // Determine if video source iFilm/Spike for publisher case 2: $publisher = '<a href="http://www.ifilm.com/profile/' . $publisher . '" target="_blank">' . $publisher . '</a>'; break; // Determine if video source Photobucket for publisher case 3: $string = 'th_'; list($photobucket) = split($string, $vidid); $ppublisher['ppublisher'] = $photobucket; $publisher = '<a href="http://s39.photobucket.com/albums/' . $ppublisher['ppublisher'] . '" target="_blank">' . $publisher . '</a>'; break; // Determine if video source is Viddler for publisher case 4: $publisher = '<a href="http://www.viddler.com/explore/' . $publisher .'/" target="_blank">' . $publisher . '</a>'; break; // Determine if video source is Google Video for publisher case 100: case 101: case 103: case 106: case 108: case 109: case 200: $publisher = $publisher; break; // Determine if video source is DailyMotion for publisher case 102: $publisher = '<a href="http://www.dailymotion.com/' . $publisher .'" target="_blank">' . $publisher . '</a>'; break; // Determine if video source is ClipFish for publisher case 104: $publisher = '<a href="http://www.clipfish.de/user/' . $publisher .'" target="_blank">' . $publisher . '</a>'; break; // Determine if video source is LiveLeak for publisher case 105: $publisher = '<a href="http://www.liveleak.com/user/' . $publisher .'" target="_blank">' . $publisher . '</a>'; break; // Determine if video source is Veoh for publisher case 107: $publisher = '<a href="http://www.veoh.com/users/' . $publisher .'" target="_blank">' . $publisher . '</a>'; break; // Determine if video source is MyTube for publisher case 200: $publisher = $publisher; break; } return $publisher; }
Posté le : 21/12/2009 02:08
|
|
|
Re: Edit template of the module mytube 1.05!! Help |
|
Aspirant
Inscrit: 02/12/2009 01:31
De Canada
|
encore: Citation :// ************************************************ //Function for displaying videoclip (embedded code) // ************************************************ function xtube_showvideo( $vidid, $source, $screenshot, $picurl ) { global $xoopsModule, $xoopsModuleConfig; $showvideo = ''; $autoplay = $xoopsModuleConfig['autoplay']; if ( $xoopsModuleConfig['autoplay'] ) { $autoplay2 = 'yes'; $autoplay3 = 'true'; $photobucket = '&ap=1'; $google = 'FlashVars="autoPlay=true"'; $viddler = 'flashvars="autoplay=t"'; } else { $autoplay2 = 'no'; $autoplay3 = 'false'; $photobucket = ''; $google = ''; $viddler = ''; } // $hquality = ''; // if ($hq == 1) { // $hquality = '&ap=%2526fmt%3D18&'; // } switch( $source ) { // YouTube case 0: // $showvideo = '<object width="480" height="295"><param name="movie" value="http://www.youtube.com/v/' . $vidid . '&ap=%2526fmt%3D18&&autoplay=' . $autoplay . '&rel=1&fs=1&color1=0x999999&color2=0x999999&border=0&loop=0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/' . $vidid . '&ap=%2526fmt%3D18&&autoplay=' . $autoplay . '&rel=1&fs=1&color1=0x999999&color2=0x999999&border=0&loop=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="transparent" width="480" height="295"></embed></object>'; $showvideo = '<embed src="http://www.youtube.com/v/' . $vidid . '&autoplay=' . $autoplay . '&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed>'; break; // MetaCafe case 1: $showvideo = '<embed flashVars="playerVars=showStats=no|autoPlay=' . $autoplay2 . '" src="http://www.metacafe.com/fplayer/' . $vidid . '.swf" width="480" height="295" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>'; break;
Posté le : 21/12/2009 02:10
|
|
Vous pouvez voir les sujets.
Vous ne pouvez pas débuter de nouveaux sujets.
Vous ne pouvez pas répondre aux contributions.
Vous ne pouvez pas éditer vos contributions.
Vous ne pouvez pas effacez vos contributions.
Vous ne pouvez pas ajouter de nouveaux sondages.
Vous ne pouvez pas voter en sondage.
Vous ne pouvez pas attacher des fichiers à vos contributions.
Vous ne pouvez pas poster sans approbation.
|