PDA

View Full Version : Miscellaneous Hacks - xspf mp3 player for Vbulletin


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

mktrilogy
01-23-2007, 09:17 AM
Will try this one out. :)

Feedback Later.

YeşiLMeN
01-23-2007, 09:30 AM
Saol Arkadasım.. ;) Bakma Sen O Adama :D

"Installed"

Dark Cynicus!
01-23-2007, 01:24 PM
im confused... where do i upload da files?

Atakan KOC
01-23-2007, 01:37 PM
Saol Arkadasım.. ;) Bakma Sen O Adama :D

"Installed"
interesting

İlgin? bir bakış a?ısı ;)

Cagonni
01-23-2007, 05:46 PM
im confused... where do i upload da files?

where you want in FTP.

kidyangsta
01-24-2007, 12:04 AM
I have just installed this plugin but i cant seem to get my plugin to load. Everytime the player loads it goes to this "http://hideout.com.br/tests/hideout2325.xspf" playlist instead of mine. I edited the the fields:



//constants
DEFAULT_PLAYLIST_URL = "http://someurl.com/my-playlist.xspf";
DEFAULT_WELCOME_MSG = "HideOut mp3 Player";



Is this where i am suspose to edit in the "xspf_player.as"

Screen Shot:
http://www.discountcarsofhickory.com/err.jpg

Cagonni
01-24-2007, 05:12 AM
create your own playlist.xspf and upload it into your FTP.

In "xspf_player.as" you should edit:

//constants
DEFAULT_PLAYLIST_URL = "http://hideout.com.br/shows/allshows.xspf";

Please try to edit the playlist file in attachments and upload it.

kidyangsta
01-25-2007, 06:54 PM
create your own playlist.xspf and upload it into your FTP.

In "xspf_player.as" you should edit:

//constants
DEFAULT_PLAYLIST_URL = "http://hideout.com.br/shows/allshows.xspf";

Please try to edit the playlist file in attachments and upload it.

I tried it and redownload the ziped file and upload to the ftp but i still keep getting your playlist inside of getting mine. Do i have to edit the xspf_player.fla?

Can you please reupload your ziped file again i dont understand why i have this problem.
Thz

kidyangsta
01-26-2007, 09:50 PM
bump...

Cagonni
01-27-2007, 03:27 AM
i have some exams now and im not at home.
add me please i will help you on monday.
samet@hitportal.net

Konstantinos
12-28-2007, 01:31 PM
i am using xspf as in memberprofile, for single song, so users can choose a song to autoplay in their profile its cool

TCE Killa
12-28-2007, 05:48 PM
^How do you get it in the user profile?

I really want this mod but only in members profile on autoplay. Thanks.

Btw, does this work for 3.6.8?

Konstantinos
01-15-2008, 07:06 AM
create 2 custom fields like described there (https://vborg.vbsupport.ru/showthread.php?t=166271)

then download this zip and extract it and after upload it to your server in public_html/xspf

then put this in memberinfo



<if condition="$post[field16]">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
<td class="alt2" style="border-bottom:0px solid $stylevar[tborder_bgcolor]" width="200" colspan="2"><center>
<object type="application/x-shockwave-flash"
data="http://www.YOURSITE.com/xspf/xspf_player_slim.swf?song_url=$post[field16]&autoplay=true&autoload=true&repeat=true&info_button_text=Artist Info&song_title=$post[field17]"
width="400" height="15">
<param name="movie"
value="http://www.YOURSITE.com/xspf/xspf_player_slim.swf?song_url=$post[field16]&autoplay=true&autoload=true&repeat=true&song_title=$post[field17]" />
</object></center>

</td></tr></table></if>





make sure u change the url to the correct one and the custom fields ids to correspond to your custom fields u created.

Am i using the single song mode but u can make it work with playlists and also change some settings, for more info on this check



http://musicplayer.sourceforge.net/

TCE Killa
01-15-2008, 10:41 AM
Thanks alot man, it works now.

mixhard
01-17-2008, 02:34 AM
I tried it and redownload the ziped file and upload to the ftp but i still keep getting your playlist inside of getting mine. Do i have to edit the xspf_player.fla?

Can you please reupload your ziped file again i dont understand why i have this problem.
Thz

im having this same issue
any fix for it?