Re: Edit template of the module mytube 1.05!! Help | Titre du sujet : Re: Edit template of the module mytube 1.05!! Help par mokman sur 21/12/2009 02:08:37
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; }
|
|