MyXoops Forum

Aw: eprofil audio.php playlist [Community-Module] - myXOOPS German Support

alfred

Administrator
Gepostet am:11.02.2011 17:55
alfred
alfred Offline (Show more)
Administrator
Posts: 7619
Since: 06.12.2004
#2

Aw: eprofil audio.php playlist

mh, wusste nicht das wir deine Leibeigenen sind.
Da du schon in einem anderen forum gepostet hast
und das ganze dadurch auch nicht schneller wird, wenn du es zigtausendmal postest, schlieese ich hier ab.
Wenn es dir zu langsam geht kannst du den kostenpflichtigen Support nehmen.
Alle hier machen das in ihrer Freizeit und nicht 24 Stunden am Tag.

Kaliber

"myXOOPs"-Neuling
Gepostet am:11.02.2011 13:04
Kaliber
Kaliber Offline (Show more)
"myXOOPs"-Neuling
Posts: 24
Since: 28.01.2011
#1

eprofil audio.php playlist

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
Diesen Thread durchsuchen:  1 Anonyme Benutzer

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