PHPBB3 JW MP3 PLAYER

Discussion forum for MOD Writers regarding MOD Development.
Jume
Registered User
Posts: 198
Joined: Tue Jun 22, 2004 9:29 am

Re: PHPBB3 JW MP3 PLAYER

Post by Jume »

This is very nice, but somehow the player can only be shown once on a page (otherwise you'll get the "get flashplayer" message). Therefore it is not possible to have 2 mp3 files on one page (even when the second link is given in a reply message).

Do you think there might be a solution for this problem?
princejp1
Registered User
Posts: 16
Joined: Thu Sep 27, 2007 9:30 pm

Re: PHPBB3 JW MP3 PLAYER

Post by princejp1 »

how would we use it to embed their video, or do you think it would support any video format??
Rstratton
Registered User
Posts: 22
Joined: Wed Oct 11, 2006 7:21 pm
Location: UK
Contact:

Re: PHPBB3 JW MP3 PLAYER

Post by Rstratton »

Hi,

I have installed this Mod on my site and it works perfectly thanks! But what i am after is, Can you do it so you can choose what playlist to look at... so if you have a few playlists, on the site can you choose which playlist to open?

Thanks
Rstratton
Tarabass
Registered User
Posts: 44
Joined: Mon Mar 31, 2008 7:45 pm
Location: Elburg, Gelderland, The Netherlands
Contact:

Re: PHPBB3 JW MP3 PLAYER

Post by Tarabass »

Looks like a great mod to put on my producer forum, where I can upload songs from users. But I wil only do that if the user has the option to shift (prev-next) between number so they dont have to listen to songs they don't like. Is that allready possible or can you make that possible? Or can you maybe put more mp3's at your demo to check this function?
BeyondHelp
Registered User
Posts: 82
Joined: Wed Feb 13, 2008 4:29 pm

Re: PHPBB3 JW MP3 PLAYER

Post by BeyondHelp »

Code is wrong. Filename in archive is not mp3player, but mediaplayer. Fixed code below.

Code: Select all

<p id="player3"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
   var s3 = new SWFObject("mediaplayer.swf", "line", "240", "20", "7");
   s3.addVariable("file","{URL}");
   s3.addVariable("repeat","true");
   s3.addVariable("showdigits","false");
   s3.addVariable("showdownload","true");
   s3.addVariable("width","240");
   s3.addVariable("height","20");
   s3.write("player3");
</script>
sprtn
Registered User
Posts: 25
Joined: Wed Oct 26, 2005 1:07 am

Re: PHPBB3 JW MP3 PLAYER

Post by sprtn »

BeyondHelp wrote:Code is wrong. Filename in archive is not mp3player, but mediaplayer. Fixed code below.

Code: Select all

<p id="player3"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
   var s3 = new SWFObject("mediaplayer.swf", "line", "240", "20", "7");
   s3.addVariable("file","{URL}");
   s3.addVariable("repeat","true");
   s3.addVariable("showdigits","false");
   s3.addVariable("showdownload","true");
   s3.addVariable("width","240");
   s3.addVariable("height","20");
   s3.write("player3");
</script>
You downloaded the wrong one.

Also, it isnt working for me, it says to download flash player. I have uploaded the script to the overall header but it isnt working.
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 4259
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.
Contact:

Re: PHPBB3 JW MP3 PLAYER

Post by thecoalman »

Jume wrote:This is very nice, but somehow the player can only be shown once on a page (otherwise you'll get the "get flashplayer" message). Therefore it is not possible to have 2 mp3 files on one page (even when the second link is given in a reply message).

Do you think there might be a solution for this problem?
Hint: I-Frame
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
HitByLife
Registered User
Posts: 17
Joined: Sun Dec 30, 2007 9:04 pm

Re: PHPBB3 JW MP3 PLAYER

Post by HitByLife »

Is there not a way to give a new id to each instance of the player?

Code: Select all

 var s3 = new SWFObject("mediaplayer.swf", "line", "240", "20", "7");
   s3.addVariable("file","{URL}");

Code: Select all

 var s4 = new SWFObject("mediaplayer.swf", "line", "240", "20", "7");
   s4.addVariable("file","{URL}");
etc

The would solve the restriction on only one instance of the player (as right now they get the same id ("3") because that is what the code renders).
HitByLife
Registered User
Posts: 17
Joined: Sun Dec 30, 2007 9:04 pm

Re: PHPBB3 JW MP3 PLAYER

Post by HitByLife »

If prefer the SWFObject flash embed, but since there cannot be more than one instance of the player with the same id, I suggest to use the <embed> tag:

Code: Select all

<embed
src="mediaplayer.swf"
width="300"
height="20"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="height=20&width=300&file={URL}"
/>
D3FCON
Registered User
Posts: 22
Joined: Thu Jul 24, 2008 12:26 am

Re: PHPBB3 JW MP3 PLAYER

Post by D3FCON »

your god, the best and the easiest mp3 code iv'e seen, Thank you so much, hooah
User avatar
ameisez
Registered User
Posts: 1166
Joined: Sun Nov 04, 2007 7:04 am

Re: PHPBB3 JW MP3 PLAYER

Post by ameisez »

Is there any working sample for this one with playlist?

Also, I am wondering what will be displayed on the screen if it is only playing mp3?

Is there an option to show playlist and click the title of the song to play it

Thanks
PHPBB on HOSTGATOR SERVER. MY PERSONAL CHOICE ;)
Need phpBB images and buttons? HIRE ME
my MOD: BB3 Media Player | a phpbb based media player
Tarabass
Registered User
Posts: 44
Joined: Mon Mar 31, 2008 7:45 pm
Location: Elburg, Gelderland, The Netherlands
Contact:

Re: PHPBB3 JW MP3 PLAYER

Post by Tarabass »

ameisez wrote:Is there any working sample for this one with playlist?

Also, I am wondering what will be displayed on the screen if it is only playing mp3?

Is there an option to show playlist and click the title of the song to play it

Thanks
http://www.hardcoreproducerforum.nl/

On the right ;)

Code: Select all

<script type="text/javascript">
    var s0 = new SWFObject('player/player.swf','mpl','233','155','8');
    s0.addParam('allowscriptaccess','always');
    s0.addParam('allowfullscreen','true');
    s0.addVariable('height','156');
    s0.addVariable('width','233');
    s0.addVariable('file','player/mp3/playlist.xml');
    s0.addVariable('frontcolor','0x1A1A1A');
    s0.addVariable('lightcolor','0xAA0000');
    s0.addVariable('screencolor','0xAA0000');
    s0.addVariable('displaywidth','0');
    s0.addVariable('searchbar','false');
    s0.addVariable('overstretch','fit');
    s0.addVariable('showicons','false');
    s0.addVariable('showeq','true');
    s0.addVariable('showstop','true');
    s0.addVariable('autoscroll','false');
    s0.addVariable('thumbsinplaylist','false');
    s0.write('player2');
</script>
User avatar
ameisez
Registered User
Posts: 1166
Joined: Sun Nov 04, 2007 7:04 am

Re: PHPBB3 JW MP3 PLAYER

Post by ameisez »

That's a good looking one. I'll try it as soon as I can.

THanks ;)
PHPBB on HOSTGATOR SERVER. MY PERSONAL CHOICE ;)
Need phpBB images and buttons? HIRE ME
my MOD: BB3 Media Player | a phpbb based media player
User avatar
ameisez
Registered User
Posts: 1166
Joined: Sun Nov 04, 2007 7:04 am

Re: PHPBB3 JW MP3 PLAYER

Post by ameisez »

Tarabass wrote:
ameisez wrote:Is there any working sample for this one with playlist?

Also, I am wondering what will be displayed on the screen if it is only playing mp3?

Is there an option to show playlist and click the title of the song to play it

Thanks
http://www.hardcoreproducerforum.nl/

On the right ;)

Code: Select all

<script type="text/javascript">
    var s0 = new SWFObject('player/player.swf','mpl','233','155','8');
    s0.addParam('allowscriptaccess','always');
    s0.addParam('allowfullscreen','true');
    s0.addVariable('height','156');
    s0.addVariable('width','233');
    s0.addVariable('file','player/mp3/playlist.xml');
    s0.addVariable('frontcolor','0x1A1A1A');
    s0.addVariable('lightcolor','0xAA0000');
    s0.addVariable('screencolor','0xAA0000');
    s0.addVariable('displaywidth','0');
    s0.addVariable('searchbar','false');
    s0.addVariable('overstretch','fit');
    s0.addVariable('showicons','false');
    s0.addVariable('showeq','true');
    s0.addVariable('showstop','true');
    s0.addVariable('autoscroll','false');
    s0.addVariable('thumbsinplaylist','false');
    s0.write('player2');
</script>
I took a deeper look at your post and it isn't a bbcode, how will I add something like what you have on your site?

Can I add multiple instance of that kind in same page?

Thanks
PHPBB on HOSTGATOR SERVER. MY PERSONAL CHOICE ;)
Need phpBB images and buttons? HIRE ME
my MOD: BB3 Media Player | a phpbb based media player
Tarabass
Registered User
Posts: 44
Joined: Mon Mar 31, 2008 7:45 pm
Location: Elburg, Gelderland, The Netherlands
Contact:

Re: PHPBB3 JW MP3 PLAYER

Post by Tarabass »

ameisez wrote: I took a deeper look at your post and it isn't a bbcode, how will I add something like what you have on your site?

Can I add multiple instance of that kind in same page?

Thanks
Did only show you the example of how it look's with playlist and multiple mp3's. Not how to be used with bb-code. But what I can think of, is using the post-id for every instance. So you replace 's0' with 's<?php $post-id ?>' and replace 'player2' with 'player<?php player<?php $post-id ?>', or use a iframe for every instance like said before. I can't help you with that, sorry..
Locked

Return to “[3.0.x] MOD Writers Discussion”