vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - xspf mp3 player for Vbulletin (https://vborg.vbsupport.ru/showthread.php?t=137296)

Cagonni 01-22-2007 10:00 PM

xspf mp3 player for Vbulletin
 
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:

Code:

<?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:

Code:

<script type="text/javascript" src="clientscript/vbulletin_global.js?v=$vboptions[simpleversion]"></script>
add above:

Code:

<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:

Code:

        <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:

Code:

<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:

Code:

<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

Quote:

Originally Posted by YeşiLMeN (Post 1165657)
Saol Arkadasım.. ;) Bakma Sen O Adama :D

"Installed"

interesting

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

Cagonni 01-23-2007 05:46 PM

Quote:

Originally Posted by Dark Cynicus! (Post 1165736)
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:

PHP Code:


//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:

Code:

//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

Quote:

Originally Posted by Cagonni (Post 1166219)
create your own playlist.xspf and upload it into your FTP.

In "xspf_player.as" you should edit:

Code:

//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...


All times are GMT. The time now is 07:34 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01437 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete