Play List
-
Ok for the ones that are self hosting there site I have created a way to do a playlist that will not slow your system down using Audio Album and a plugin called Code Snippets Extended. Using these 2 plugins you can create a song list or album that will load ALL the songs in a directory on your hard-drive and give the option to play a single song from that list.
Demo go to [link removed] to see my Remix list and how it works. I will let you know when I finally have it refined to get the tags from the files to list it better.
First get and install Audio Album, then get Code Snippets at https://ww.wp.xz.cn/plugins/code-snippets-extended/
now in code snippet create 2 snippits like this.
1 plays the music I named mine Play Songs
<?php
$title=$_POST[“title”];
$writer=$_POST[“writer”];
$fname=$_POST[“fname”];
?><?php echo do_shortcode(‘[audiotrack autoplay=”on” mp3=”http://www.pegasussal.com/remixs/’.$fname.'” title=”‘.$title.'” songwriter=”‘.$writer.'”]’);?>
second one I names Remix songs( this one you just change the directoy location for the one you want in this listing.
<table><tbody>
<?php
$id = “0”;
/* Change this to the drive and directory of you songs for that album*/$dir = ‘E:\Club Music\DJ Music\Remix\Up Beat Dance Songs’;
$files1 = scandir($dir);
foreach ($files1 as $value) {
($id=$id+’1′);
if ($id > ‘2’){?>
<tr><td><?php echo $value?></td><td><form action=”../playing-your-song” method=”post”><input name=”title” type=”hidden” value=”<?php echo $value?>” /><input name=”writer” type=”hidden” value=”<?php echo $value?>” /><input name=”fname” type=”hidden” value=”<?php echo $value?>” /><input type=”submit” value=”Play” /></form></td></tr>
<?php ;}
}
?>
</tbody></table>Now just create a page for the song list and one I call Now playing
Put the first snippet in the (Now Playing) page and the second one in the page that is going to show your play list. Now every time you add or remove a song from that song directory, it will automatically be added or removed.
The topic ‘Play List’ is closed to new replies.