MyXoops Forum

Forum - myXOOPS German Support

3 + 8 = ?  
Geben Sie das Ergebnis der Berechnung ein
Sie haben max. 10 Versuche.
 
* = Erforderlich

eprofil audio.php playlist

Betreff: eprofil audio.php playlist
von Kaliber am 11.02.2011 13:04:20

Also da hier mehr los is werde ich das mal hier weiter posten also versuche aus der zufälligen wiedergabe eine playlist zu machen in der profile_audios.html müsste ich ja das einfügen
<object type="application/x-shockwave-flash" data="audioplayers/dewplayer-playlist.swf" width="240" height="200" id="dewplayer" name="dewplayer">
<
param name="movie" value="audioplayers/dewplayer-playlist.swf" />
<
param name="flashvars" value="playlist=<{$play_list}>" />
und in der audio.php das hier
$dir 'upload_url';
       
$file_type 'mp3';

       
$play_list '<?xml version='1.0' encoding='UTF-8' standalone='yes'?>';
       
$play_list .= "<playlist>";

       
// Open directory, read contents and add to file_list if correct file_type
       
if (is_dir($dir)) {
          if (
$dh opendir($dir)) {
             while ((
$file readdir($dh)) !== false) {
                if (
$file != '.' && $file != '..') {
                   
$name_array explode('.'$file);
                   
                   
// if file has .mp3 extension
                   
if ($name_array[1] == $file_type) {
                      
$play_list .= '<song>';
                      
$file "$dir/$file";
                      
$play_list .= '<file>' $file '</file>';
                      
$mp3 fopen($file"r");
                       
fseek($mp3, -128SEEK_END);
                       
$tag fread($mp33);
                       
                       
// if id3 tag is found...
                       
if ($tag == "TAG") {
                          
$play_list .= '<title>' trim(fread($mp330)) . '</title>';
                          
$play_list .= '<artist>' trim(fread($mp330)) .'</artist>';
                       
                       
// if no id3 tag...
                       
} else {
                          
$play_list .= '<title>unknown title</title>';
                          
$play_list .= '<artist>unknown artist</artist>';
                       }
                       
                       
// close file
                       
fclose($mp3);
                       
$play_list .= '</song>';
                   }
                }
             }
             
             
// close directory
             
closedir($dh);
             
$play_list .= '</playlist>';
             
             
// echo the xml file
             
echo "$play_list";
          }
       }
aber es geht nich bitte helft mir

Aktuell aus dem Forum

Forum Thema Antworten Views Letzter Beitrag
Modulentwicklung New Xoops Xcreate Module 0 5329 26.11.2025 15:22
efkan Gehe zum letzten Beitrag
Modulentwicklung XOOPS Custom Field Module 1 1816 24.11.2025 11:21
Goffy Gehe zum letzten Beitrag