MyBB Community Forums

Full Version: Mediaplayer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
I search a Music Player for my myBB forum. Can somebody help me? it must bea java player
Do you mean a media player as in, someone enters some MyCode and it shows up in posts?

Why must it be Java based?
I mean a page on my forum, where you can play music. It can be all but it must play music...

Sry for my english i am German... Hope you can understand me

Styler



Why no answer...
What page on your forum, specifically?

Usually, you just add the HTML code to the appropriate template.
//EDITED: just download and install this plugin: MP3 MyCode

styler2go Wrote:I mean a page on my forum, where you can play music. It can be all but it must play music...

You can try something like this.

In ACP - Custom My Code create new code:

MyCode title:
Simple MP3 Player
MyCode description:
Play mp3 from mp3music dir
Regular expression:
\[mp3\](.*?)\[/mp3\]
Replacement:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="150" height="20" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">
    <param name="movie" value="mp3player/mp3player.swf?showDownload=false&autoStart=false&file=mp3music/$1" />
    <param name="wmode" value="transparent" />
    <embed wmode="transparent" width="150" height="20" src="mp3player/mp3player.swf?showDownload=false&autoStart=false&file=mp3music/$1" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

After that, download this attach and upload it in your root forum:


There is 2 folders:
/mp3player = where is your mp3 player
and
/mp3music = where you must to upload some .mp3 files

-------
To use it, just create a new post in your forum with next tag:
[mp3]namesong.mp3[/mp3]
where "namesong.mp3" = "http://www.yourforum/mp3music/namesong.mp3"

I don't know if this help you, but you can try. This is a nice mp3 player in flash.

//Later: See this DEMO
[attachment=8978]
Ehm.. nothing.. i dont see anything (http://styler2go.bplaced.net/music.php
is it possible to add to it so that mp3's can be linked to from other url's?
[mp3]http://someforum.moc/music/song.mp3[/mp3]

nice mod, works fine for me Smile
styler2go Wrote:Ehm.. nothing.. i dont see anything (http://styler2go.bplaced.net/music.php

This is because "Custom My Code" works just for posts in mybb forum (or in template), not in other php file. Where is your mybb ?
corny Wrote:is it possible to add to it so that mp3's can be linked to from other url's?
[mp3]http://someforum.moc/music/song.mp3[/mp3]

I test this code with other mp3 file hosted on http://www.youshare.com
(just for test Smile)

and it works.
So... just use in your forum posts this tag:
[mp3]http://someforum.moc/music/song.mp3[/mp3]

If you have problem and don't play mp3 files from another site, just replace:

Replacement
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="150" height="20" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">
    <param name="movie" value="mp3player/mp3player.swf?showDownload=false&autoStart=false&file=mp3music/$1" />
    <param name="wmode" value="transparent" />
    <embed wmode="transparent" width="150" height="20" src="mp3player/mp3player.swf?showDownload=false&autoStart=false&file=mp3music/$1" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

with:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="150" height="20" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">
    <param name="movie" value="http://yoursite.com/mp3player/mp3player.swf?showDownload=false&autoStart=false&file=mp3music/$1" />
    <param name="wmode" value="transparent" />
    <embed wmode="transparent" width="150" height="20" src="http://yoursite.com/mp3player/mp3player.swf?showDownload=false&autoStart=false&file=mp3music/$1" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

where http://yoursite.com/mp3player/mp3player.swf is link to your mp3 player.
ehm my forum is in /fourm/ and the music file too, thta was a wrong link sry
http://styler2go.bplaced.net/forum/music.php
Pages: 1 2 3