Cagonni
01-22-2007, 10:00 PM
This Mp3 Player is free for use and very basic for your users :)
.zip file contents:
xspf_player.as - actionscript file for your configuration.
xspf_player.swf - your player.
xspf_player.fla - for editing the player.
mp3player.html - your html page if you use popup
First of All edit your xspf_player.as and mp3player.html
You can use "http://hideout.com.br/shows/allshows.xspf" file for playlist.It contains 115 songs from other servers.So it doesnt use your bandwidth :)
How can you do your own playlists?
Here is an example:
<?xml version="1.0" encoding="UTF-8" ?>
<playlist version="0" xmlns="http://xspf.org/ns/0/">
<title>Hitportal Mp3 Player</title>
<annotation>http://www.hitportal.net</annotation>
<creator>Cagonni</creator>
<info>http://webjay.org/by/hideout/allshows</info>
<location>http://webjay.org/by/hideout/allshows.xspf</location>
<license>http://creativecommons.org/licenses/by-sa/1.0/</license>
<trackList>
<track>
<location>http://www.startimerecords.com/mp3s/supercuts/ambulance_countrygentleman.mp3</location>
<image>http://ec1.images-amazon.com/images/P/B000E8N8ZW.01._AA240_SCLZZZZZZZ_.jpg</image>
<annotation>Ambulance LTD - Country Gentleman</annotation>
<info>http://indoorfireworks.blogspot.com/2005_05_01_indoorfireworks_archive.html</info>
</track>
Template Changes:
you can do it with a popup :)
in headinclude template find:
<script type="text/javascript" src="clientscript/vbulletin_global.js?v=$vboptions[simpleversion]"></script>
add above:
<script type="text/javascript">
function openpopup(popurl){
var winpops=window.open(popurl,"","width=500px,height=250px,status")
}
</script>
in navbar template:
The code you edit and write in template:
<td class="alt2" valign="top" nowrap="nowrap">
<a href="javascript:openpopup('http://www.yoursite.com/mp3player.html')"><center><img src="winamp.gif" alt="Yoursite Mp3 Player" border="0"><br>Mp3 Player</a></center>
</td>
if you want only registered users see this player you can add the code above:
<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">
if you want guest see this player you can add the code above:
<if condition="$show['member']">
td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">
Here is a Demo : www.hitportal.net
Its my first thread sorry for mistakes :o
.zip file contents:
xspf_player.as - actionscript file for your configuration.
xspf_player.swf - your player.
xspf_player.fla - for editing the player.
mp3player.html - your html page if you use popup
First of All edit your xspf_player.as and mp3player.html
You can use "http://hideout.com.br/shows/allshows.xspf" file for playlist.It contains 115 songs from other servers.So it doesnt use your bandwidth :)
How can you do your own playlists?
Here is an example:
<?xml version="1.0" encoding="UTF-8" ?>
<playlist version="0" xmlns="http://xspf.org/ns/0/">
<title>Hitportal Mp3 Player</title>
<annotation>http://www.hitportal.net</annotation>
<creator>Cagonni</creator>
<info>http://webjay.org/by/hideout/allshows</info>
<location>http://webjay.org/by/hideout/allshows.xspf</location>
<license>http://creativecommons.org/licenses/by-sa/1.0/</license>
<trackList>
<track>
<location>http://www.startimerecords.com/mp3s/supercuts/ambulance_countrygentleman.mp3</location>
<image>http://ec1.images-amazon.com/images/P/B000E8N8ZW.01._AA240_SCLZZZZZZZ_.jpg</image>
<annotation>Ambulance LTD - Country Gentleman</annotation>
<info>http://indoorfireworks.blogspot.com/2005_05_01_indoorfireworks_archive.html</info>
</track>
Template Changes:
you can do it with a popup :)
in headinclude template find:
<script type="text/javascript" src="clientscript/vbulletin_global.js?v=$vboptions[simpleversion]"></script>
add above:
<script type="text/javascript">
function openpopup(popurl){
var winpops=window.open(popurl,"","width=500px,height=250px,status")
}
</script>
in navbar template:
The code you edit and write in template:
<td class="alt2" valign="top" nowrap="nowrap">
<a href="javascript:openpopup('http://www.yoursite.com/mp3player.html')"><center><img src="winamp.gif" alt="Yoursite Mp3 Player" border="0"><br>Mp3 Player</a></center>
</td>
if you want only registered users see this player you can add the code above:
<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">
if you want guest see this player you can add the code above:
<if condition="$show['member']">
td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">
Here is a Demo : www.hitportal.net
Its my first thread sorry for mistakes :o