Fork me on GitHub

Rapport de message :*
 

Re: Remplacer les & par & amp; pour la validation w3c?

Titre du sujet : Re: Remplacer les & par & amp; pour la validation w3c?
par seboseboss sur 12/06/2014 15:44:15

salut

Comment ça bien au bon endroit, je ne pige pas.tu veut dire que le code est bien dans vidéo.php?

On a pas le meme fichier c'est pas possible ou alors je suis encore à la ramasse voyons ça, ça ne me parrait pas être içi.

Désolé pour tout ce code (ligne 64 à la fin):

// *******************************************************
// 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="' $picurl '" width="' $width '" height="' $height '"  title="' $title '" alt="'
            
$title '" style="padding: 0px; border-style: none;" />';
        break;

// MetaCafe
    
case 1:
        
$thumb
            
'<img src="' $picurl '" width="' $width '" height="' $height '"  title="' $title '" alt="'
            
$title '" style="padding: 0px; border-style: none;" />';
        break;

// iFilm/Spike
    
case 2:
        
$thumb
            
'<img src="' $picurl '" width="' $width '" height="' $height '"  title="' $title '" alt="'
            
$title '" style="padding: 0px; border-style: none;" />';
        break;

// Photobucket
    
case 4:
        
$thumb
            
'<img src="' $picurl '" width="' $width '" height="' $height '"  title="' $title '" alt="'
            
$title '" style="padding: 0px; border-style: none;" />';
        break;

// Google Video, MySpace TV, DailyMotion, Blip.tv, ClipFish, LiveLeak, Maktoob, Veoh, vimeo, rutube, stagevu, netu
    
case 100:
    case 
101:
    case 
102:
    case 
103:
    case 
104:
    case 
105:
    case 
106:
    case 
107:
    case 
108:
    case 
109:
    case 
110:
    case 
111:
    case 
112:
        
$thumb
            
'<img src="' $picurl '" width="' $width '" height="' $height '"  title="' $title '" alt="'
            
$title '" style="padding: 0px; border-style: none;" />';
        break;

// Determine if video source is XoopsTube 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;
}

// **********************************
// 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 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 
110:
    case 
111:
    case 
112:
        
$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 XoopsTube for publisher
    
case 200:
        
$publisher $publisher;
        break;
    }
    return 
$publisher;
}

// ************************************************
//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 '<embed src="http://www.youtube.com/v/' $vidid '&autoplay=' $autoplay
            
'&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="720" height="405"></embed>';
        break;

// MetaCafe
    
case 1:
        
$showvideo '<embed flashVars="playerVars=showStats=no|autoPlay=' $autoplay2
            
'" src="http://www.metacafe.com/fplayer/' $vidid
            
'.swf" width="720" height="405" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>';
        break;

// iFilm/Spike
    
case 2:
        
$showvideo
            
=
            
'<embed width="720" height="405" src="http://www.spike.com/efp" quality="high" bgcolor="000000" name="efp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="flvbaseclip='
                
$vidid '" allowfullscreen="true"> </embed>';
        break;

// Viddler
    
case 4:
        
$showvideo '<embed src="http://www.viddler.com/player/' $vidid
            
'/" width="720" height="405" type="application/x-shockwave-flash" ' $viddler
            
' allowScriptAccess="always" allowFullScreen="true" name="viddler_' $vidid '" ></embed>';
        break;

// Google Video
    
case 100:
        
$showvideo
            
=
            
'<embed style="width:720px; height:405px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId='
                
$vidid '&hl=en" ' $google '> </embed>';
        break;

// MySpace TV
    
case 101:
        
$showvideo
            
'<embed src="http://mediaservices.myspace.com/services/media/embed.aspx/m=' $vidid ',t=1,mt=video,ap='
            
$autoplay
            
'" width="720" height="405" allowFullScreen="true" type="application/x-shockwave-flash"></embed>';
        break;

// DailyMotion
    
case 102:
        
$showvideo '<embed src="http://www.dailymotion.com/swf/' $vidid '&autoPlay=' $autoplay
            
'" type="application/x-shockwave-flash" width="720" height="405" allowFullScreen="true" allowScriptAccess="always"></embed>';
        break;

// Blip.tv
    
case 103:
        
$showvideo '<embed src="http://blip.tv/play/' $vidid
            
'" type="application/x-shockwave-flash" width="720" height="405" allowscriptaccess="always" allowfullscreen="true" flashvars="autostart='
            
$autoplay3 '"></embed>';
        break;

// ClipFish
    
case 104:
        
$showvideo '<embed src="http://www.clipfish.de/videoplayer.swf?as=' $autoplay '&videoid=' $vidid
            
'==&r=1&c=0067B3" quality="high" bgcolor="#0067B3" width="720" height="405" name="player" align="middle" allowFullScreen="true" allowScriptAccess="always"  type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>'// Change c=0067B3 for different player color
        
break;

// LiveLeak
    
case 105:
        
$showvideo '<embed src="http://www.liveleak.com/e/' $vidid
            
'" type="application/x-shockwave-flash" flashvars="autostart=' $autoplay3
            
'" wmode="transparent" width="720" height="405"></embed>';
        break;

// Maktoob
    
case 106:
        
$showvideo
            
=
            
'<embed width="720" height="405" align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="flvplayer" bgcolor="#ffffff" devicefont="true" wmode="transparent" quality="high" src="http://clipat.maktoob.com/flvplayerOurJS.swf?file=http://'
                
$vidid '.flv&enablejs=true&image=' $picurl
                
'&lightcolor=0x557722&backcolor=0x000000&frontcolor=0xCCCCCC&showfsbutton=true&autostart='
                
$autoplay3
                
'&logo=http://clipat.maktoob.com/language/ar_sa/images/clipat-icon.png&displaywidth=448" />';
        break;

// Veoh
    
case 107:
        
$showvideo '<embed src="http://www.veoh.com/veohplayer.swf?permalinkId=' $vidid
            
'&id=anonymous&player=videodetailsembedded&affiliateId=&videoAutoPlay=' $autoplay
            
'" allowFullScreen="true" width="720" height="405" bgcolor="#FFFFFF" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>';
        break;

// Vimeo 
    
case 108:
        
$showvideo '<embed src="http://vimeo.com/moogaloop.swf?clip_id=' $vidid
            
'&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1&autoplay=' $autoplay
            
'" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" quality="best" width="720" height="405"></embed>';
        break;
        
// Rutube 
    
case 109:
        
$showvideo '<iframe width="720" height="405" src="http://rutube.ru/video/embed/' $vidid
            
'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowfullscreen></iframe>';
        break;
        
// Stagevu 
    
case 110:
        
$showvideo '<iframe style="overflow:hidden; border:0; width:720px; height:405px;" src="http://stagevu.com/' $vidid
            
'&autoplay=no" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowfullscreen></iframe>';
        break;

// Netu 
    
case 111:
        
$showvideo '<iframe src="http://hqq.tv/player/embed_player.php?vid=' $vidid 
           
'" height="405" width="720" style="z-index:2147483647;" webkitAllowFullScreen mozallowfullscreen allowfullscreen frameborder="0" scrolling="no"></iframe>';
        break;
// MAILRU 
    
case 112:
        
$showvideo '<iframe src=' $vidid 
           
'.html width="720" height="405" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
        break;        

// XoopsTube
    
case 200:
        
$showvideo '<embed src="' XOOPS_URL '/modules/' $xoopsModule->getvar('dirname')
            . 
'/include/mediaplayer.swf" width="425" height="350" allowScriptAccess="always" allowFullScreen="true" flashvars="width=425&height=350&file='
            
XOOPS_URL '/' $xoopsModuleConfig['videodir'] . '/' $vidid '&image=' XOOPS_URL '/'
            
$xoopsModuleConfig['videoimgdir'] . '/' $screenshot '&autostart=' $autoplay3 '"></embed>';
        break;
    }

    return 
$showvideo;
}

?>

pour moi il sagit bien des url des sources et pas des pages de xoopstube.

on traite ici des codes embed.

J'ai posté une demande sur xoops.org au cas ou quelqu'un aurait déja eu ce soucis, j'éspère qu'on me répondra car pour l'instant, j'ai jamais eu de réponse concrète la bas.

Ps: oui j'ai tout vidé navigateur et xoops.
Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

60 Personne(s) en ligne (47 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 60 | Plus ...