Doch, du kannst statt den 2 Stunden, mehrere Stunden Zeitunterschied eingeben - so wie es dann mit der Zeit hier in Dtl. ausschaut.
Beiträge von Christof
-
-
Nimm mal meine leicht veränderte song.php
PHP
Alles anzeigen<?php /** * * Currently Hearing Example PHP Implementation * * How to use this file on your site: * * First, include this file from another. * include('dir/song.php'); * * Then run the function * $song_info = showSong('dir/song.txt', '-', 'Nothing', '3', '0', '1'); * * Then simply echo the $song_info variable at any time. * **/ function showSong($filename, $separator, $default, $history='1', $next='0', $track='1') { /** * filename: The textfile containing the song info that was uploaded by CurrentlyHearing * separator: The character you would like placed between Artist and Title (ie: 'Test - This', separator is -) * default: What to output on error or when nothing is playing (ie: Nothing) * history: Number of songs to display as previously heard (this number should be either 0, 3, 5 or 10 depending on your plugin setting) * next: Show next track? 0 = No, 1 = Yes * track: Show track number out of total? 0 = No, 1 = Yes * * Note: filename might need to contain directory information if this file is a different dir than the text file * **/ /** * Open the file, read it, save its contents for use * **/ $file = $filename; // The file $open = @fopen($file, 'r'); // Open the file (read-only) $read = @fread($open, @filesize($file)); // Read the file @fclose($open); // Close the file /** * * Now begin the song extraction from the file contents * **/ $song_info = ($read == '') ? ($song_info = $default) : ($song_info = $read); // If the was an error reading file, pretend your listening to nothing $additional = $song_info; if ($song_info != $default) { // As long as there wasn't an error, begin formatting $exp1 = explode('SONG:', $song_info); // Get rid of everything before the song info $exp2 = explode(':SONG', $exp1[1]); // Get rid of everything after the song info $song_info = $exp2[0]; // The song if ($song_info != 'Nothing') { // If there's a song (ie: Winamp is not off) $exp3 = explode(' - ', $song_info); // Get rid of the separator so we can use ours $artist = $exp3[0]; // The artist $title = $exp3[1]; // The title $song_info = $artist . ' ' . $separator . ' ' . $title; // Put it together with our separator in between if ($history != '0') { if (($history == '3') || ($history == '5') || ($history == '10')) { // History (if enabled) // Customize this output if you wish $prevstat = ' ' . 'Die letzten ' . $history . ' Titel' . ': '; for ($i=1; $i<=$history; $i++) { $prevtrack = explode('P' . $i . ':', $additional); $prevtrack = explode(':P' . $i, $prevtrack[1]); $prevtrack = $prevtrack[0]; if ($i == '1') { if ($prevtrack == '') { $prevstat .= '... sieht so aus, als ob ich mein Winamp eben erst angeschmissen hätte oder ich schaue einfach nur einen Film.'; break; } else { $prevstat .= $prevtrack . ' '; } } else { if ($prevtrack != '') { $prevstat .= $prevtrack . ' '; } } } } } if ($next == '1') { // Next Track (if shuffle isn't on only) $nexttrack = explode('NS:', $additional); $nexttrack = explode(':NS', $nexttrack[1]); $nexttrack = $nexttrack[0]; if ($nexttrack == '') { $nexttrack = 'Nothing'; } // Customize this output if you wish $nextstat = ' ' . 'Next: ' . $nexttrack; } if ($track == '1') { // Track Number (out of) Total Playlist Count $trackno = explode('S:', $additional); $trackno = explode(':S', $trackno[1]); $trackno = $trackno[0]; $totalno = explode('T:', $additional); $totalno = explode(':T', $totalno[1]); $totalno = $totalno[0]; // Customize this output if you wish $trackstat = ' ' . 'Track ' . $trackno . ' of ' . $totalno; } // Put together all the bling-bling $song_info = $song_info . $trackstat . $nextstat . $prevstat; } else { $song_info = $default; // There was no song playing } } /** * * Return the song info -- all done! * **/ return $song_info; } ?>Wenn das nicht hilft bin auch ich überfragt...
-
Jo, nimm mal das "http://www.eyetag.de/weblog/" aus den beiden Pfaden raus, dann sollte es funktionieren.
Sprich:
-
Ich habe gelesen, dass es eventuell Probleme mit installierten Plugins geben könnte.
-
PHP
[*] <h2>Winamp</h2> <ul> [*]<?php include("music/song.php"); ?><?php $song_info = showSong('music/song.txt', '-', 'Soll ja auch mal vorkommen, mein Winamp ist aus - aber nimmer lange! ', '3', '0', '0'); ?> <?php echo "$song_info"; ?> [/list]
Das solltest du dir irgendwo dazwischenklatschen.Du müsstest aber auch darauf achten, dass deine song.php und song.txt in folgendem Verzeichnis liegen: "deinedomain.de/music/".
Das Plugin für Winamp ansich hast du ordentlich installiert bekommen?
-
Wohl eher das hier:
[Blockierte Grafik: http://www.spongeblog.de/images/renzler.jpg]hrenzler
Vielleicht wäre ein Stückchen Quelltext nützlich. -
Du selbst bindest damit doch keine Audiodateien ein, es wird lediglich deine Playlist (in Textform) von deinem Winamp online gestellt.
Und das verlinken von Internet-Radio-Stationen dürfte nicht das Problem sein... -
Das meinte ich:
[Blockierte Grafik: http://www.spongeblog.de/images/drizzit.jpg] -
Ich finds ja ganz schick, obwohl ich eigentlich überhaupt kein hellblau auf auf Websiten ab kann.
Schaut auch abgesehen von der Sidebar noch sehr nach Kubrick aus - ich würde die Sidebar auch in der einzelnen Beitragansicht anzeigen lassen... ist einfach komfortabler beim surfen.
Und, bei den Fotos ist der Inhalt um ein paar Pixel nach rechts verrutscht... sieht ungewollt aus.
Ja, mit Gemeckere kannst du glaub ich mehr anfang als ausschließlich mit Lob. ;)
-
Zitat von eyetag
hi! ich kann mp3wp nicht mehr finden, der autor hat außerdem keine kontaktmöglichkeit auf seiner site angegeben. hat irgendwer das ding noch irgendwo?
gibt es in dieser art mittlerweile weitere plugs?dank&gruß!
Probier doch mal dieses aus.
Ansonsten ist auch google.de sehr hilfreich.
20:32 Uhr, Edit: Hab soeben oben genanntes Plugin bei mir eingebaut, funktioniert supi, guckst du hier.
-
Ahm, ich sehe keine Unterschiede zwischen Firefox und dem IE...
-
Du hast zwar allen möglichen Schnick Schnack dazu aber auch die von dir gewünscht Anzeige.
Siehe in meinem Blog rechts unten, über dem Kalender...
-
Hast du in deinem Stammverzeichnis eventuell einen Ordner liegen der "2005" heißt?
Dieser könnte die Permalinks stören! -
-
-
Wie wäre es mit "ich bin so dumm"?
-
Dann schick mir mal dein gewünschtes Bildche, aber fix. ;)
Mailadresse gibt es hier. -
Stimmt, sieht komisch aus. ;)
Mach ich demnäst vll mal anders... -
Du solltest in der single.php die Sidebar einbinden.
-
Wie wäre es mit diesem feinen Plugin?
[Blockierte Grafik: http://mudbomb.com/images/wysi2.gif]