Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[BLOCK] MP3 Player
Missing or invalid ID.
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2008-04-22 22:36:16
ok thought this might be of use to someone so posting it for everyone........



[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=2334"]MP3_Player_Block.rar[/url]

to add tracks is easy just place the mp3's in the mp3 folder and edit the list.xml file which looks like

<?xml version="1.0"?>

<list>

<url1>mp3/House of The Rising Sun.mp3</url1>

</list>


just add another line for each track

Quote:
<url1>mp3/SONG TITLE.mp3</url1>

as easy as that, enjoy..... :)
MP3_Player.jpg
MP3_Player.jpg
MP3_Player_Block.rar
Download
Unknown User
2008-04-23 09:31:13
Looks great, thanks
Unknown User
2008-04-23 23:02:52
Hi

I used this hack to play my stream server.

but on the field that should appear the name, appears the address.

How to set a different title??

How to set autostart = false?

EDIT:

If i'm browsing one page, and the change to another, the music stops, and the load increase....

how to set the music in a "fixed" place to play continued? I know that I could use a popup window... But some users have popup blokers...

thanks
Unknown User
2008-04-24 08:40:12
ok heres a modified player.swf that doesn't auto start playing just replace the old one

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=2338"]player.rar[/url]

as to the .swf reloading when going to dif pages on the site nothing i can do about that all i can suguest i add a link to a fixed size browser window with the player somewhere on your site rather than having the block on your site and as to the url rather than song name the player will read id3 tags from a track but only if they on same server as far as i can tell.......
player.rar
Download
Unknown User
2008-04-24 09:35:54
can you add files. m3u which are internet radio ???
Unknown User
2008-04-24 10:35:54
not sure you can try but i guess it'll display url instead of songname again if you want a radio block you could try something like

<?

begin_block("Radio");

echo "<object classid=\"clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6\" id=\"mediaplayer\" name=\"mediaplayer\" height=\"180\" width=\"160\">\n";

echo "<param name=\"AUTOSTART\" value=\"false\">\n";

echo "<param name=\"URL\" value=\"HTTP://WWW.YOUR-RADIO.URL.COM\">\n";

echo "<param name=\"VOLUME\" value=\"100\">\n";

echo "<param name=\"PLAYCOUNT\" value=\"10\">\n";

echo "<param name=\"ENABLECONTEXTMENU\" value=\"0\">\n";

echo "<embed name=\"mediaplayer\" src=\"HTTP://WWW.YOUR-RADIO.URL.COM\"  autostart=\"false\" showstatusbar=\"1\" playcount=\"10\" enablecontextmenu=\"0\" height=\"180\" width=\"160\">\n";

echo "</object>\n";

end_block();

?>

swap   [url="http://HTTP//WWW.YOUR-RADIO.URL.COM"]HTTP://WWW.YOUR-RADIO.URL.COM[/url]   for your radio stream url then save as Radio_block.php and place in blocks dir and active in admin cp

i just put that on my test tracker if you want to see what it's like....

[RE-EDIT]

this code now works ok with firefox although you may need to install the wmp11 plugin for firefox....
Unknown User
2008-04-24 18:36:28
"Nikkbu, post: 41778":
not sure you can try but i guess it'll display url instead of songname again if you want a radio block you could try something like



<?

begin_block("Radio");

echo "<object classid=\"clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6\" id=\"mediaplayer\" name=\"mediaplayer\" height=\"180\" width=\"160\">\n";

echo "<param name=\"autoStart\" value=\"false\">\n";

echo "<param name=\"URL\" value=\"HTTP://WWW.YOUR-RADIO.URL.COM\">\n";

echo "<param name=\"VOLUME\" value=\"50\">\n";

echo "<param name=\"PLAYCOUNT\" value=\"10\">\n";

echo "<param name=\"ENABLECONTEXTMENU\" value=\"0\">\n";

echo "<embed name=\"mediaplayer\" src=\"HTTP://WWW.YOUR-RADIO.URL.COM\"  autostart=\"false\" showstatusbar=\"1\" playcount=\"10\" enablecontextmenu=\"0\" height=\"180\" width=\"160\">\n";

echo "</object>\n";

end_block();

?>

swap   [url="http://HTTP//WWW.YOUR-RADIO.URL.COM"]HTTP://WWW.YOUR-RADIO.URL.COM[/url]   for your radio stream url then save as Radio_block.php and place in blocks dir and active in admin cp

i just put that on my test tracker if you want to see what it's like....

[RE-EDIT]

this code now works ok with firefox although you may need to install the wmp11 plugin for firefox....


I tested that code, but in FF i have some  problems...

First, I visited your test tracker, and installed the plugin. Everything worked fine in FireFox.

Then, I installed this hack on my tracker, but the plugin doesn't function... In IE works fine, but in FF doesn't.

can you help me? cause in your site it works very well
Unknown User
2008-04-24 18:56:27
the code i'm using on my site is

<?

begin_block("Radio");

echo "<object classid=\"clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6\" id=\"mediaplayer\" name=\"mediaplayer\" height=\"180\" width=\"160\">\n";

echo "<param name=\"AUTOSTART\" value=\"false\">\n";

echo "<param name=\"URL\" value=\"http://206.51.233.231/007HipHop_64k\">\n";

echo "<param name=\"VOLUME\" value=\"100\">\n";

echo "<param name=\"PLAYCOUNT\" value=\"10\">\n";

echo "<param name=\"ENABLECONTEXTMENU\" value=\"0\">\n";

echo "<embed name=\"mediaplayer\" src=\"http://206.51.233.231/007HipHop_64k\"  autostart=\"false\" showstatusbar=\"1\" playcount=\"10\" enablecontextmenu=\"0\" height=\"180\" width=\"160\">\n";

echo "</object>\n";

end_block();

?>


i've left the url's in for station so you just need to edit that bit and should be ok....
Unknown User
2008-04-24 19:31:43
have you put another code in index.php?

cause my blocks say that i don't have the plugin installed.

Your site sayed this too, but when i clicked on it, it downloaded the plugin
Unknown User
2008-04-24 19:48:08
rodriquesp i have posted the radio mod in it's own thread now so you post anything reguarding the radio code there...... ty :)
Unknown User
2008-04-24 20:33:37
moved to the correct topic
Unknown User
2008-09-29 23:24:41
I have one problem...

The music does not touch upon the site ...

Appears in the player but the name does not ring, do not hear anything.
Unknown User
2008-09-30 01:51:27
here is what i have and works perfect.

MP3_block.php

<?
if (!$site_config["MEMBERSONLY"] || $CURUSER["class"] >"3") {

begin_block("VIP MP3 Player");

echo "<center>\n";

echo "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"150\" height=\"141\" id=\"clock\" align=\"middle\">\n";

echo "<param name=\"movie\" value=\"mp3/player.swf\" />\n";

echo "<param name=\"quality\" value=\"high\" />\n";

echo "<param name=\"scale\" value=\"exactfit\" />\n";

echo "<param name=\"wmode\" value=\"transparent\" />\n";

echo "<param name=\"menu\" value=\"true\">\n";

echo "<embed src=\"mp3/player.swf\" quality=\"high\" scale=\"exactfit\" wmode=\"transparent\" width=\"150\" height=\"141\" name=\"clock\" align=\"middle\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />\n";

echo "</object>\n";

end_block();

}

?>

then add the mp3 folder with its context inside too root

my list.xml  looks like this

<?xml version="1.0"?>
<list>

<url1>mp3/House of The Rising Sun.mp3</url1>

<url2>mp3/still dre.mp3</url2>

<url3>mp3/california love.mp3</url3>

<url4>mp3/minola.mp3</url4>

<url5>mp3/Track 2.mp3</url5>

<url6>mp3/dmx party up.mp3</url6>

<url7>mp3/Snoop Doggy Dogg - Gin and Juice.mp3</url7>

<url8>mp3/Fairytails.mp3</url8>

<url9>mp3/Can't get enough.mp3</url9>

<url10>mp3/Scream 2002.mp3</url10>

<url11>mp3/Maniac.mp3</url11>

<url12>mp3/EMPTY SLOT</url12>

<url13>mp3/EMPTY SLOT</url13>

<url14>mp3/EMPTY SLOT</url14>

<url15>mp3/EMPTY SLOT</url15>

<url16>mp3/EMPTY SLOT</url16>

<url17>mp3/EMPTY SLOT</url17>

<url18>mp3/EMPTY SLOT</url18>

<url19>mp3/EMPTY SLOT</url19>

<url20>mp3/EMPTY SLOT</url20>

</list>

i made mine vip only so they can listen to what they like aslong as you have the mp3, got to put  /mp3/titlehere.mp3 without /mp3 it will not work. also you will need which some members find annoying the media player plug in for firefox, i have used both of these ok.

[url="http://port25.technet.com/pages/windows-media-player-firefox-plugin-download.aspx"]http://port25.technet.com/pages/windows-me...n-download.aspx[/url]

or

[url="https://addons.mozilla.org/en-US/firefox/addon/446"]https://addons.mozilla.org/en-US/firefox/addon/446[/url]
Unknown User
2008-10-02 23:18:15
Still does not work ...

I have the tracker in this folder: www.mysite.com / torrents

The folder mp3 here: www.mysite.com/torrents/mp3

The block. Php this folder of other blocks.

why not work?
Unknown User
2008-11-02 20:57:49
thanks
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728