collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 218
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

NEED HELP? If you're looking for support with Simple Portal, look no further than the Support Board!

Author Topic: MP3 Player inside a block?  (Read 12548 times)

0 Members and 1 Guest are viewing this topic.

Offline Cyst

  • Semi Newbie
  • *
  • Posts: 31
MP3 Player inside a block?
« on: September 19, 2008, 06:03:58 AM »
Is there anyway way to add an mp3 player to a block? One which has the option to play, pause, skip files, and volume? It would obviously pull songs from something like /mp3s/examplealbum

Something like this: http://www.webresourcesdepot.com/open-source-flash-mp3-player/

That's a flash one though, but maybe something through JS would work? There is a Js one here: http://flash-mp3-player.net/players/js/

But it doesn't have skip file options.

My reason being it's talk like a pirate day and I want to surprise my users with some pirate songs!  :)

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: MP3 Player inside a block?
« Reply #1 on: September 19, 2008, 06:07:19 AM »
If you already have you own code, or you are using somebody else's code then you should be able to do it with a PHP or HTML block, by adding your own code into the block.

A HTML block is probably the best block. ;)
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline Cyst

  • Semi Newbie
  • *
  • Posts: 31
Re: MP3 Player inside a block?
« Reply #2 on: September 19, 2008, 06:12:58 AM »
I just had a look over those 2 links I posted again and they both seem not to offer a simple js script for it, hmm.

Seems that they both involve swf in some way. Do you know of any simple js codes for it, so I can try it out? :)
« Last Edit: September 19, 2008, 06:22:13 AM by Cyst »

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: MP3 Player inside a block?
« Reply #3 on: September 19, 2008, 06:47:37 AM »
Unfortionately I don't know much about Javascipt, but one of the other team members may have a solution. I'm sure that you will find one if you do a (google?) search.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline Cyst

  • Semi Newbie
  • *
  • Posts: 31
Re: MP3 Player inside a block?
« Reply #4 on: September 19, 2008, 06:57:05 AM »
I have been having a look on Google since I posted the thread, but no dice. They seem to all have .swf components, except for one which just caused an error in sportal.php.

It looks like it might not be possible!  :(

Offline Aw06

  • Full Member
  • ***
  • Posts: 238
  • Gender: Male
    • www.ShopinJA.com
  • SMF Version: 1.1.13
  • SP Version: 2.3.2
Re: MP3 Player inside a block?
« Reply #5 on: September 19, 2008, 10:20:47 AM »
I too would love something like this, couldnt this be used

http://flash-mp3-player.net/players/multi/

Offline asude

  • Jr. Member
  • **
  • Posts: 54
  • Gender: Female
Re: MP3 Player inside a block?
« Reply #6 on: September 19, 2008, 10:45:37 AM »
Download the source here:

http://flash-mp3-player.net/players/multi/download/

Create a new directory named "player" and upload the contents of the package you downloaded there.

Then create an HTML Block with these codes:

Code: [Select]
<object type="application/x-shockwave-flash" data="http://yoursite.com/player/template_multi/player_mp3_multi.swf" width="200" height="100">
<param name="movie" value="http://yoursite.com/player/template_multi/player_mp3_multi.swf" />
<param name="FlashVars" value="mp3=test.mp3|test.mp3|test.mp3&title=chanson 1|chanson 2|chanson 3" />
<p>Texte alternatif</p>
</object>

Change the FlashVars according to your needs.

Offline Aw06

  • Full Member
  • ***
  • Posts: 238
  • Gender: Male
    • www.ShopinJA.com
  • SMF Version: 1.1.13
  • SP Version: 2.3.2
Re: MP3 Player inside a block?
« Reply #7 on: September 19, 2008, 11:09:38 AM »
Download the source here:

http://flash-mp3-player.net/players/multi/download/

Create a new directory named "player" and upload the contents of the package you downloaded there.

Then create an HTML Block with these codes:

Code: [Select]
<object type="application/x-shockwave-flash" data="http://yoursite.com/player/template_multi/player_mp3_multi.swf" width="200" height="100">
<param name="movie" value="http://yoursite.com/player/template_multi/player_mp3_multi.swf" />
<param name="FlashVars" value="mp3=test.mp3|test.mp3|test.mp3&title=chanson 1|chanson 2|chanson 3" />
<p>Texte alternatif</p>
</object>

Change the FlashVars according to your needs.

works like a charm  >:-D :$$:

Offline Cyst

  • Semi Newbie
  • *
  • Posts: 31
Re: MP3 Player inside a block?
« Reply #8 on: September 20, 2008, 02:21:13 PM »
Download the source here:

http://flash-mp3-player.net/players/multi/download/

Create a new directory named "player" and upload the contents of the package you downloaded there.

Then create an HTML Block with these codes:

Code: [Select]
<object type="application/x-shockwave-flash" data="http://yoursite.com/player/template_multi/player_mp3_multi.swf" width="200" height="100">
<param name="movie" value="http://yoursite.com/player/template_multi/player_mp3_multi.swf" />
<param name="FlashVars" value="mp3=test.mp3|test.mp3|test.mp3&title=chanson 1|chanson 2|chanson 3" />
<p>Texte alternatif</p>
</object>

Change the FlashVars according to your needs.

Thanks for this :) Weirdly though, it isn't playing the test.mp3 for me.

Offline Sentinel [AF]

  • Semi Newbie
  • *
  • Posts: 25
  • Gender: Male
  • Mr Grumpy
    • Alternating Frequencies
  • SMF Version: 2 Beta 4
  • SP Version: 2.0.5
Re: MP3 Player inside a block?
« Reply #9 on: October 18, 2008, 08:43:17 PM »
Yah yah I think maybe this one is what you are looking for ...
It scans a specified folder on your server and automatically creates a playlist with the ones it finds.

It's free.
I've added it to the attachments.
The official website is HERE

Just upload your tunes via ftp into the mp3 folder and they will be automatically added to the playlist on refresh/reload page.
The files should be installed directly to where your forums index.php is.

Copy this code into a html block.

Code: [Select]
<!-- Script that embeds player. -->
<script language="javascript" type="text/javascript">
var so = new SWFObject("flashmp3player.swf", "player", "290", "247", "9"); // Location of swf file.
so.addParam("quality", "high");
so.addVariable("content_path","mp3"); // Location of a folder with mp3 files (relative to php script).
so.addVariable("color_path","default.xml"); // Location of xml file with color settings.
so.addVariable("script_path","flashmp3player.php"); // Location of php script.
so.write("player");
</script>

<br/>

<!--
Please place this link anywhere on the page that uses Flash MP3 Player.
You can style it anyway you want, but do not change or delete it.
Read the license! Thanks. :-)
-->
Powered by <a href="http://www.flashmp3player.org">Flash MP3 Player</a>


Easy enough !
0ot


Offline Aw06

  • Full Member
  • ***
  • Posts: 238
  • Gender: Male
    • www.ShopinJA.com
  • SMF Version: 1.1.13
  • SP Version: 2.3.2
Re: MP3 Player inside a block?
« Reply #10 on: October 19, 2008, 10:15:56 AM »
when you say install you mean jusst paste flashmp3player folder in my forum directory then add the songs to mp3 folder, casue im doing that but its not working

Offline Sentinel [AF]

  • Semi Newbie
  • *
  • Posts: 25
  • Gender: Male
  • Mr Grumpy
    • Alternating Frequencies
  • SMF Version: 2 Beta 4
  • SP Version: 2.0.5
Re: MP3 Player inside a block?
« Reply #11 on: October 28, 2008, 01:25:33 PM »
Errr no the flash player swf & files would have to be in your root folder.

Public_html via ftp.

Otherwise you'd have to edit the embed code for where you have the swf file.



<!-- Script that embeds player. -->
<script language="javascript" type="text/javascript">
var so = new SWFObject("mp3player/flashmp3player.swf", "player", "290", "247", "9"); // Location of swf file.
so.addParam("quality", "high");
so.addVariable("content_path","mp3"); // Location of a folder with mp3 files (relative to php script).
so.addVariable("color_path","default.xml"); // Location of xml file with color settings.
so.addVariable("script_path","flashmp3player.php"); // Location of php script.
so.write("player");
</script>

<br/>

<!--
Please place this link anywhere on the page that uses Flash MP3 Player.
You can style it anyway you want, but do not change or delete it.
Read the license! Thanks. :-)
-->
Powered by <a href="http://www.flashmp3player.org">Flash MP3 Player</a>
0ot


Offline jayman2

  • Just Registered
  • Posts: 1
Re: MP3 Player inside a block?
« Reply #12 on: November 25, 2008, 12:55:52 PM »
works like a charm  >:-D :$$:
I did everything in your post and setup the correct paths.  The player shows up perfectly and appears to function, but it wont play the test.mp3.  Do you have any ideas?

Thanks in advance.

Offline bmac

  • Semi Newbie
  • *
  • Posts: 27
    • Steelhead Notebook
Re: MP3 Player inside a block?
« Reply #13 on: November 26, 2008, 04:59:09 PM »
Quote
The player shows up perfectly and appears to function, but it wont play the test.mp3.

I had the same problem. :(

Offline Sentinel [AF]

  • Semi Newbie
  • *
  • Posts: 25
  • Gender: Male
  • Mr Grumpy
    • Alternating Frequencies
  • SMF Version: 2 Beta 4
  • SP Version: 2.0.5
Re: MP3 Player inside a block?
« Reply #14 on: November 30, 2008, 03:21:03 PM »
Best thing when it comes to players as I've found out on SMF is to install all the .swf and js files to your forums root.
If you using files as opposed to playlist then create a folder in the forum root say "mp3" and add all mp3 files there.

Code: [Select]
<object type="application/x-shockwave-flash" data="player_mp3_multi.swf" width="200" height="100">
<param name="movie" value="player_mp3_multi.swf" />
<param name="FlashVars" value="mp3=mp3/test.mp3|mp3/test.mp3|mp3/test.mp3&title=test 1|test 2|test 3" />
<p>Texte alternatif</p>
</object>

Of course you need a mp3 in there with the title of "test" or otherwise aye it won't play anything if it doesn't exist.

I've not tested this player mind.

I'm using a custom made one for me music system and for the portal page I am using dewplayer which is from alsacreations.

0ot


Offline Nabil

  • Full Member
  • ***
  • Posts: 110
  • SMF Version: 1.1.7
  • SP Version: 2.2.1
Re: MP3 Player inside a block?
« Reply #15 on: December 21, 2008, 11:45:04 AM »
This Code to embed the Windows Media Player , wmp is found in every Computer and it plays mp3 files as well you can add the code in a php block
Code: [Select]
<?php
echo '
<OBJECT ID="MediaPlayer" WIDTH="192" HEIGHT="40" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="test.mp3">
<PARAM name="autostart" VALUE="false">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="false">
<PARAM name="ShowDisplay" VALUE="false">
<EMBED TYPE="application/x-mplayer2" SRC="test.mp3" NAME="MediaPlayer"
WIDTH="192" HEIGHT="40" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </EMBED>
</OBJECT>'
;
?>

« Last Edit: December 27, 2008, 10:46:02 AM by Nabil »

Offline skary

  • Newbie
  • Posts: 3
Re: MP3 Player inside a block?
« Reply #16 on: December 29, 2008, 11:32:25 PM »
upload your songs somewhere. use this link http://www.mycodesplace.com/myspace-mp3-player/ to make your playlist and copy/paste the code into an HTML block

Offline susanleky

  • Just Registered
  • Posts: 1
    • ฟังเพลงใหม่
  • SMF Version: None
  • SP Version: None
Re: MP3 Player inside a block?
« Reply #17 on: June 09, 2010, 09:14:34 AM »
Thank you very much but i like informaiton to you. 8)