NEOCROME
Forums > Seditio > Plug-ins and modifications > [RELEASE] Mp3 Player Version 013
display a mp3 / video player on each user profile
 
Author Message

urlkiller


Members
Online status (Green = Online)


Location: --- Behind you
Occupation: Pulling a Knife
Age:
368 posts
    Split
22-08-2008 14:35 GMT   #125820
Mp3 Player Version 013 --

    Some of you forum dwelers requested a mp3 player for the userprofile connected with the pfs folder system, right? ok i've done such thing fast from scratch here and offer it for free download.

    put this in user.profile.tpl and activate EXTRA1 in administration > configuration > users > make extra 1 editable and rename it Folderid

    Code:
    <tr>
    <td style="width:20%;">{USERS_PROFILE_EXTRA1_TITLE}</td>
    <td>{USERS_PROFILE_EXTRA1}</td>
    </tr>




    put this in user.details.tpl
    Code:
    {MP3PLAYER}



    copy plugin to server, install it, edit width/height in settings of plugin.
    when at the settings and you only want to use it as a mp3 player you need to set the height of the playlist as high as the whole player and subtract 20px as 20px is the height of the controlbar.

    order your users to enter the folderid, wich need to be public and to enter the id in the extra1 field in their profile (id means the unique id number of a folder, not the name!). all mp3, flv files in this folder will be displayed in a playlist under the player. a description that is entered at a mp3 file will be displayed in playlist too.

    description should have the following format:
    <description text>|<some url>

    if its not working 100% right and the player keep saying "cant find" you should take a look at the inc/playlist.php and change the #$domain = "<your domain here>"; to $domain = "<your domain here>"; while you should insert you main domain in that field.

    here are some key facts:

      * supports pfs folders (not user folders!!! not the data/users/1/filname.mp3 thing)
      * supports mp3 files
      * supports flash video files
      * folder need to be at least set to public access
      * auto playlist generation
      * preview images in playlists
      * you can add yourlogo in the top corner

    have fun!...


Try and Download --

I WOULD LIKE TO SEE SOME SITES USING IT!

This post was edited by urlkiller (16-09-2008 18:08 GMT, 715 days ago)

Magnus_Kingsley


Resellers
Online status (Green = Online)

http://www.x-ecutionerz.com
Location: Netherlands
Occupation:
Age:
455 posts
    Split
22-08-2008 15:08 GMT   #125821
Woo.. it works pretty well on my localhost..

Have to organize my live site a bit, coz I am already using all user extra fields. Will send you a pm when i have finished organizing, ok?

Got one question though.. is it mandatory to use pfs folders? If so, it'll mean that I have to reset my complete site :S

urlkiller


Members
Online status (Green = Online)


Location: --- Behind you
Occupation: Pulling a Knife
Age:
368 posts
    Split
22-08-2008 15:26 GMT   #125822
i think it would be more appreciated by all users to use the pfs system.
if you can do some little php you could change to only query a specific folder.

edit just uploaded a new version. headpost is updated.

Magnus_Kingsley


Resellers
Online status (Green = Online)

http://www.x-ecutionerz.com
Location: Netherlands
Occupation:
Age:
455 posts
    Split
22-08-2008 15:41 GMT   #125823
I agree, unfortunatly I didn't set it to pfs folders when I set up the site.. But does it matter for the plugin if it isn't set to pfs folder?

urlkiller


Members
Online status (Green = Online)


Location: --- Behind you
Occupation: Pulling a Knife
Age:
368 posts
    Split
22-08-2008 15:45 GMT   #125824
uhm... it doesnt really matter. you just have to edit the query to search in a specific folder on the server...

or did you meant the datas/users/1/lskdfls.mp3, then its not supported, yet. right... bleh. damn function. it only querys the datas/users/1-mp3file.mp3

Magnus_Kingsley


Resellers
Online status (Green = Online)

http://www.x-ecutionerz.com
Location: Netherlands
Occupation:
Age:
455 posts
    Split
22-08-2008 15:48 GMT   #125825
cool! that means I can implement it right away.. will do that this weekend.

urlkiller


Members
Online status (Green = Online)


Location: --- Behind you
Occupation: Pulling a Knife
Age:
368 posts
    Split
22-08-2008 15:49 GMT   #125826
and it filters the userid-filname.mp3 part out.

draeghonov


Members
Online status (Green = Online)


Location: Netherlands
Occupation: car painter
Age: 35
55 posts
    Split
23-08-2008 09:25 GMT   #125850
whoa!!!!
it works like a dream!
I hope my members will also like it

I just have a few questions about it:

-can it be used as a standalone player; popup player, so that you can continiue to listen to the music when you're browsing the entire site?
-can the main source for the music files also be in the site pfs, so everyone can upload to it who has the right privileges?

urlkiller


Members
Online status (Green = Online)


Location: --- Behind you
Occupation: Pulling a Knife
Age:
368 posts
    Split
23-08-2008 12:06 GMT   #125854
Quote

#125850 draeghonov :
whoa!!!!
it works like a dream!
I hope my members will also like it

I just have a few questions about it:

-can it be used as a standalone player; popup player, so that you can continiue to listen to the music when you're browsing the entire site?
-can the main source for the music files also be in the site pfs, so everyone can upload to it who has the right privileges?



thank you, thank you! it could be theoretical made to an popup player too. but atm it isnt really supported. maybe ill do this later on. nice idea.

it depends. you need to enter a folderid, from this folder, pfs, or site pfs, will the mediafiles get read out. so basicly it is a simple rights thing.


btw.: if you like that i would like a cool airbrush at my car and iam, more or less, near you.

This post was edited by urlkiller (23-08-2008 12:27 GMT, 740 days ago)

draeghonov


Members
Online status (Green = Online)


Location: Netherlands
Occupation: car painter
Age: 35
55 posts
    Split
23-08-2008 14:54 GMT   #125862
thanks for the hint, urlkiller
I have set a new folderid, so everyone can use that folder

About the airbrush:
I haven't touched one of those since we've had to switch to water based paints
So it's been like 9 years ago, and to be honest, my airbrush skills are as good as my scripting abilities

Magnus_Kingsley


Resellers
Online status (Green = Online)

http://www.x-ecutionerz.com
Location: Netherlands
Occupation:
Age:
455 posts
    Split
25-08-2008 14:23 GMT   #125898
I can't get it to work.

It keeps on saying that the {MP3PLAYER} tag is missing. I tested it on 1.20 and 1.25 both with the same results (both on my localhost)

Followed your instructions to the letter, still no music


*edit: forgot to mention that the player does show. changed the #$domain too*

This post was edited by Magnus_Kingsley (25-08-2008 14:31 GMT, 738 days ago)

urlkiller


Members
Online status (Green = Online)


Location: --- Behind you
Occupation: Pulling a Knife
Age:
368 posts
    Split
26-08-2008 15:06 GMT   #125934
maybe its better suited for you if you dont use the #$domain thingy.
its because i encounterd some problems when the host is not directly the site e.g.: http://www.hakozaki.info/mysite/mydirectoryofseditio/ in that case you would need to uncomment the $domain thing and enter it directly.

the other problem. hmm not sure. did you check the tags in mp3player.php? are they the same? it may be that i was a little bit fast with the docu on this.

musiconly


Premium members
Online status (Green = Online)

http://www.gitare.info
Location: Croatia ZG
Occupation: Guitars
Age:
207 posts
    Split
01-09-2008 16:56 GMT   #126033
I've been on my holiday so I was away from PC..
Nice work urlkiller!

Live example can be seen on http://www.gitare.info/users.php?m=details&id=229

NOTE: It won't be working on this skin, now it's just there for testing purposes.

Once again, thanks for an outstanding job!

Magnus_Kingsley


Resellers
Online status (Green = Online)

http://www.x-ecutionerz.com
Location: Netherlands
Occupation:
Age:
455 posts
    Split
12-09-2008 05:35 GMT   #126184
@ url

I've put the player on my live site..

with or without the domain thingy, it still doesn't work.

If you have the time, could you take a closer look at it? thx

This post was edited by Magnus_Kingsley (12-09-2008 15:43 GMT, 720 days ago)

urlkiller


Members
Online status (Green = Online)


Location: --- Behind you
Occupation: Pulling a Knife
Age:
368 posts
    Split
15-09-2008 13:30 GMT   #126239
do you have media files in a pfs folder and set it to public? did you maybe forget to enter the folderid in your profile?

cant check it out because i cant upload anything to the pfs...

Magnus_Kingsley


Resellers
Online status (Green = Online)

http://www.x-ecutionerz.com
Location: Netherlands
Occupation:
Age:
455 posts
    Split
15-09-2008 14:07 GMT   #126240
for the first 2 questions: yes.

Folder is music, public: yes gallery: no
folderid is in my profile.

Gave your group some filespace, so now you should be able to upload.

urlkiller


Members
Online status (Green = Online)


Location: --- Behind you
Occupation: Pulling a Knife
Age:
368 posts
    Split
16-09-2008 18:06 GMT   #126257
hmmm... i took a look at your source and it says for the folder id "music" folderid means the NUMBER of the folder.... fixing that will most likely fix your error...

it is:
Code:
s1.addVariable("file","plugins/mp3player/inc/playlist.php?fid=music&domain=http://www.x-ecutionerz.com/site");


and it should be:

Code:
s1.addVariable("file","plugins/mp3player/inc/playlist.php?fid=<FOLDER ID NUMBER>&domain=http://www.x-ecutionerz.com/site");


just saw the error. try to comment out the domain thingy again...

This post was edited by urlkiller (16-09-2008 18:19 GMT, 715 days ago)

Magnus_Kingsley


Resellers
Online status (Green = Online)

http://www.x-ecutionerz.com
Location: Netherlands
Occupation:
Age:
455 posts
    Split
16-09-2008 18:31 GMT   #126258
I corrected that, and now it shows the files..

get an error though #2032.. a streaming error. Will check what's causing that..

urlkiller


Members
Online status (Green = Online)


Location: --- Behind you
Occupation: Pulling a Knife
Age:
368 posts
    Split
16-09-2008 19:09 GMT   #126259
not 100% sure but maybe its the missing slash at the end of the .com/site ... / ...

do you commented out the domain thing or not? is it active or not...

Magnus_Kingsley


Resellers
Online status (Green = Online)

http://www.x-ecutionerz.com
Location: Netherlands
Occupation:
Age:
455 posts
    Split
16-09-2008 19:30 GMT   #126261
yeah! it works

thx for your patience..

urlkiller


Members
Online status (Green = Online)


Location: --- Behind you
Occupation: Pulling a Knife
Age:
368 posts
    Split
17-09-2008 16:43 GMT   #126288
if you only have some mp3 files it may be better making some own images that are shown for the mp3 and video files.

the small 32x32 icon looks a bit scary at this size ;)

Magnus_Kingsley


Resellers
Online status (Green = Online)

http://www.x-ecutionerz.com
Location: Netherlands
Occupation:
Age:
455 posts
    Split
17-09-2008 16:45 GMT   #126289
wel, I have uploaded an .swf file, but it doesn't show.. or is that the wrong kind of extension?

urlkiller


Members
Online status (Green = Online)


Location: --- Behind you
Occupation: Pulling a Knife
Age:
368 posts
    Split
17-09-2008 16:47 GMT   #126290
uhm. it shows mp3 and flv for sure. about swf. i think i filterd that out because of my gallery supports more media types... and can be used for single users in their profile

Magnus_Kingsley


Resellers
Online status (Green = Online)

http://www.x-ecutionerz.com
Location: Netherlands
Occupation:
Age:
455 posts
    Split
17-09-2008 16:48 GMT   #126291
about that, are you planning to extend the supported extension? Sed itself support mpeg, etc too.

I was planning to do something with the images.. but haven't got to it yet..

urlkiller


Members
Online status (Green = Online)


Location: --- Behind you
Occupation: Pulling a Knife
Age:
368 posts
    Split
17-09-2008 16:51 GMT   #126292
hmm. i think it isnt really usefull. this projects is as free as a bird and can be modified to fit your needs. so if you want it to support swf you sould take it on by yourself.

so no. but as i said my usergal supports besides mp3 and flv also divx, avi, mpeg, pdf, swf and all web-able image formats. check it out here: http://hakozaki.info/projects/usergal/users.php?m=details&id=2 or here: http://hakozaki.info/projects/usergal/plug.php?e=usergal&s=viewfolder&id=17

Magnus_Kingsley


Resellers
Online status (Green = Online)

http://www.x-ecutionerz.com
Location: Netherlands
Occupation:
Age:
455 posts
    Split
17-09-2008 16:54 GMT   #126294
k, will do that.. thx for the plugin anyways. Hope it will be used alot..

apaxucuhka


Members
Online status (Green = Online)

hhh
Location: Latvia Riga
Occupation: Student
Age:
7 posts
    Split
27-10-2008 22:08 GMT   #127351
sorry, but on seditio v 121 it works?

Magnus_Kingsley


Resellers
Online status (Green = Online)

http://www.x-ecutionerz.com
Location: Netherlands
Occupation:
Age:
455 posts
    Split
27-10-2008 23:43 GMT   #127354
jep, also on 1.25

apaxucuhka


Members
Online status (Green = Online)

hhh
Location: Latvia Riga
Occupation: Student
Age:
7 posts
    Split
28-10-2008 15:48 GMT   #127368
omg.. I dont try 125
It normally works or it is necessary to complete more many

b00ka


Members
Online status (Green = Online)


Location: Russia Saint Petersburg
Occupation: GSM engineer
Age: 28
220 posts
    Split
11-05-2009 17:12 GMT   #130475
what about mp3 player for pages?