We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Simple Music Player in Board Stats
Topic Started: Nov 10 2010, 12:10 AM (3,586 Views)
Minato
Member Avatar
Let Me Be With You
[ *  *  *  *  * ]
Name: Simple Music Player in Board Stats
By: Minato
Notes: The music player itself isn't created by me. It's a Flash version I have on my own site that I incorporated into the script. This script puts the player and Song/Song by in your board statistics (Just above it.) There's only a few things that you'll need to edit. Other than that, it runs by itself.
Preview: http://s4.zetaboards.com/Shugo_Chara_Codes/index/ (The Board Stats area)

The Code:
Place this Below the Board

Code:
 
<script language="JavaScript" src="http://z4.ifrm.com/30085/73/0/p1035363/audio_player.js"></script>
<script>
//Simple Music Player in Board Stats
//By Minato of Zathyus Resources

//These are the variables. Change these.
var sectionName = "Podcast: Episode 22 - Shining Tears x Wind"; //This can be Song of the Week, Music Player, etc
var musicFile = "http://amgparadise.com/Podcast/AudioFiles/Episode_22_Shining_Tears_X_Wind.mp3";
var songName = "Shining Tears x Wind OP and ED";
var songBy = "Various Artists";
var musicImage = "http://z4.ifrm.com/static/1/f_new.png";

//DO NOT EDIT BELOW THIS
$('#stats table.forums tbody tr:contains("Board Statistics")').before('<tr><th colspan="2">' + sectionName + '</th></tr><tr><td class="c_mark"><div><img src="' + musicImage + '" alt="" /></div></td><td class="c_forum"><div style="float:left;width:50%;"><object type="application/x-shockwave-flash" data="http://z4.ifrm.com/30085/73/0/p1035364/player.swf" id="audioplayer1" height="24" width="290"><param name="movie" value="http://z4.ifrm.com/30085/73/0/p1035364/player.swf"><param name="FlashVars" value="playerID=1&soundFile=' + musicFile +'"><param name="quality" value="high"><param name="menu" value="false"><param name="wmode" value="transparent"></object></div><div style="float:left; width:50%;">Song: ' + songName + '<br />Song By: ' + songBy + ' </div></td></tr>');
</script>


Files supported by Flash Player: mp3

How to Change:

In the script, look for the comment (the //) that says The Variables, change these. Change those to your music file (You'll have to use a host for it, such as webs.com or a free host.) Change the song name, song by, and the Image that goes over to the far left (It's the users one right now.)
Can you edit? Only the variables. If you change anything else, let me know. Just make sure to keep the copyright there :)

Any questions/comments/concerns, post them :D
Edited by Minato, Nov 10 2010, 12:11 AM.
Offline Profile Quote Post Goto Top
 
Xero
Member Avatar
Member
[ *  *  *  * ]
Neat code. ^_^ Any way to have a playlist of songs instead of just one?
Offline Profile Quote Post Goto Top
 
Minato
Member Avatar
Let Me Be With You
[ *  *  *  *  * ]
Xero
Nov 10 2010, 12:19 AM
Neat code. ^_^ Any way to have a playlist of songs instead of just one?
As of right now, no. But that's one of my other projects that I want to tackle.
Offline Profile Quote Post Goto Top
 
dread4everyone
Member Avatar
Member
[ * ]
I want set auto play and repeat ?
Offline Profile Quote Post Goto Top
 
Minato
Member Avatar
Let Me Be With You
[ *  *  *  *  * ]
It's not an embed tag. It's flash. You have to click it to play it.
Offline Profile Quote Post Goto Top
 
Skrew
Member
[ *  * ]
its bad because if you click on anything on the page it stops
Offline Profile Quote Post Goto Top
 
Minato
Member Avatar
Let Me Be With You
[ *  *  *  *  * ]
It's in the board stats. It's not meant to be for switching pages.
Offline Profile Quote Post Goto Top
 
ERVMEDVAC
Member
[ * ]
do you know how to use it to stream live music from a site like KUPL.com?
Offline Profile Quote Post Goto Top
 
Suzikane-ZNR
Member
[ * ]
Minato
Nov 29 2010, 08:53 PM
It's in the board stats. It's not meant to be for switching pages.
I understand what you mean..but is there a way to make it...so you can listen to song or audio through the whole forum...

Thanks

Suzette
Offline Profile Quote Post Goto Top
 
Joshua J
Member Avatar
Member
[ *  *  * ]
How do i get metallica- one to play on my board can u help me?
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards Codes & Modifications · Next Topic »
Add Reply