News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SCM Music Player for SMF

Started by dougiefresh, January 10, 2017, 04:22:47 AM

Previous topic - Next topic

nofapturkiye

Hi ; can you explain me how can i use the musics in my own hosts? I can succesfully add .mp3 files from internet. But most of the upload sites are not providing direct and stabil link to the mp3. So that is a problem . They might be deleted or might be low quality. To solve this i want to use the mp3 files which i host them on my server. But what should i write to  song url part? 

dougiefresh

Quote from: nofapturkiye on December 28, 2017, 04:36:15 PM
Hi ; can you explain me how can i use the musics in my own hosts? I can succesfully add .mp3 files from internet. But most of the upload sites are not providing direct and stabil link to the mp3. So that is a problem . They might be deleted or might be low quality. To solve this i want to use the mp3 files which i host them on my server. But what should i write to  song url part? 
Well, if your forum is at http://www.duh.com/board/, and you have a directory underneath called music, then you would use http://www.duh.com/board/music/{mp3_filename}.mp3 (where {mp3_filename} is the name(s) of the mp3 file(s) you want to play from your server.  Note that most Unix-based servers are CASE SENSITIVE, meaning Blah.mp3 is different from blah.mp3 and Blah.MP3.  Windows-based servers really don't care that much....

nofapturkiye

thanks a lot it works perfectly : )


nofapturkiye

Hi dougiefresh , Your modification works perfectly ... It is so good and well integrated . Thank you for this again .
I was wondering if it is possible to set time for autoplaying? For example my site has a lot of users online at midnight. I want to  autoplay mode to be enabled  between 11 pm and 2 am.
  Could you kindly lead me to the correct way for this? 

dougiefresh

Uploaded v1.9 - January 7th, 2018
o Added time parameters for restricting autoplay setting.




@nofapturkiye:  Hopefully this update will take care of your feature request!  Thank you!

nofapturkiye

Quote from: dougiefresh on January 07, 2018, 10:03:23 PM
Uploaded v1.9 - January 7th, 2018
o Added time parameters for restricting autoplay setting.




@nofapturkiye:  Hopefully this update will take care of your feature request!  Thank you!


are you real mate?  I was scared to ask you because you seem busy with all modifications. Thank you for that  ;D

dougiefresh

Well, I can't fulfill feature requests and fix bugs if nobody tells me about them, now can I? ::). Anyways, you're welcome!

nofapturkiye

Hello it is me again : )
i have another request which  i think is more usefull then my last request.
  is it possible to create multiple playlist and activate and deactivate them ?  for examle  1 songlist for slow music  , second for hard rock . In this version ş believe we can create 1 playlist only.  people are listening mettallica one moment and suddenly mozart comes in  : )   how hard is it ?

dougiefresh

Good question.  I've got most of the "underbody" support built in the mod.  I just need to complete the GUI for making multiple playlists, and I'm having trouble trying to get things done lately....  Also, the "underbody" might change, depending on how the GUI develops....

nofapturkiye

Quote from: dougiefresh on February 03, 2018, 12:10:24 PM
Good question.  I've got most of the "underbody" support built in the mod.  I just need to complete the GUI for making multiple playlists, and I'm having trouble trying to get things done lately....  Also, the "underbody" might change, depending on how the GUI develops....

I will be the first to try it when it is ready :)

-Rock Lee-

I had some doubts in some translations that is why I approached it as much as possible to Spanish and others left it like this because I think it would be wrong to translate them ... Then I'm translating more of your mod :P if I'm going to be bothering you for a while @dougiefresh


Regards!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

dougiefresh

Uploaded v1.10 - February 12th, 2018
o Added translators section to the readme.txt file.
o Added Spanish Latin translation, courtsey of Rock Lee.
o Added LICENSE file to the mod, to clarify licensing terms.




@Rock Lee:  Thank you for the translation!  It's been included in this version!

nofapturkiye

Quote from: dougiefresh on February 03, 2018, 12:10:24 PM
Good question.  I've got most of the "underbody" support built in the mod.  I just need to complete the GUI for making multiple playlists, and I'm having trouble trying to get things done lately....  Also, the "underbody" might change, depending on how the GUI develops....

any luck we get this any time soon?:D :D

dougiefresh

Quote from: nofapturkiye on February 23, 2018, 04:05:23 AM
any luck we get this any time soon?:D :D
Sorry about the wait!  I just started working on it.

nofapturkiye

Quote from: dougiefresh on February 27, 2018, 11:35:55 AM
Quote from: nofapturkiye on February 23, 2018, 04:05:23 AM
any luck we get this any time soon?:D :D
Sorry about the wait!  I just started working on it.

no problem take your time  ;) 

where did you learn to code like this? 

dougiefresh

#75
Uploaded v2.0 - February 28th, 2018
o Added ability to add multiple playlists.
o Admin can choose which playlist gets played by every user.




@Everybody:  I've tried to test this new version out throughly, however, I may have missed something.  Please let me know if you run into any issues!  Thanks!

Quote from: nofapturkiye on February 28, 2018, 07:24:06 AM
where did you learn to code like this?
First, the SCM Music Player isn't my creation.  I've just written up some PHP code to integrate the music player into the forum, and control the options avaiable through the Javascript code.  Tried to make it look pretty, functional, and whatever else is required....

Second, I've come by most of my programming skills on my own.  I attended Middle Tennessee State University (MTSU) and tried to get a degree in computer science, but dammit, college is BORING!!!  Yup, my attention span is not so good...  O:)   So I dropped out.

Third, I have to give credit to Simple Machines Forum's Customization Team.  They really helped me to understand that it isn't just whether the code works, but whether others can read it and understand the code.  They've helped me learn data sanitation techniques and better coding methods.  So a big shoutout to the Customization Team!!!  Thanks!

aegersz

#76
who needs Soundcloud or whatever ?

that's right and thanks to dougie's fabulous idea, a little source page viewing, i can now display this page of music (i can post this non-SSL media link in facebook using my site only and without explicitly revealing my dodgy URL to friends (with a little help with some subtle .htaccess considerations)):

click here

with this PHP-free zone (/private/index.html):


</html>
<head>
<title>private playlist</title>
</head>
<body>

<h4>[./private/index.html] testing ...<h1>

<h2>real DJs:</h2>
</br>
<a href="https://hearthis.at/djrobdavis/180208-dj-rob-davis-so-******in-soul-deep/"> DJ Rob Davis - So ******in... Soul Deep</a>
</br>
</br>
<a href="http://www.markalsop.com"> DJ Mark Alsop's Podcasts</a>
</br>
</br>
</br>

<h4>... and me and my DAW:</h4>
<h4>Narcotic Thrust vs. ? [my technically ok oldie mashup done on a NI Kontrol-S4 before it died]</h4>
<audio controls="controls" >
<source src="http://128.199.200.202/NarcThrustMash.mp3" type="audio/mpeg">
</audio>

<h4>Take Control (,Kate) - an old totally reworked soul track that i cherry picked & dropped in a sample on the 3rd bar (just to F*#k with ya)</h4>
<audio controls="controls" >
<source src="http://128.199.200.202/TakeControl.mp3" type="audio/mpeg">
</audio>

<h4>Dab Hands - Do Your Own Thing vs. Ma.mp3</h4>
<audio controls="controls" >
<source src="http://128.199.200.202/DYOTvsMa.mp3" type="audio/mpeg">
</audio>

<h4>Back in Time (an acapella overlay - DRUGGED mix)</h4>
<audio controls="controls" >
<source src="http://128.199.200.202/BackInTime.mp3" type="audio/mpeg">
</audio>


<h4>Thats_a_bit_mixed_up.mp3</h4>
<audio controls="controls" >
<source src="http://128.199.200.202/Thats_a_bit_mixed_up.mp3" type="audio/mpeg">
</audio>

<h4>some experimental percussive thing that just doesn't flow right</h4>
<audio controls="controls" >
<source src="http://128.199.200.202/Percussive.mp3" type="audio/mpeg">
</audio>

<h4>I also messed up this *great* Mark Alsop Splashback track:</h4>
<audio controls="controls" >
<source src="http://128.199.200.202/My.Mate.Slam.mp3" type="audio/mpeg">
</audio>
</body>
</html>
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

nofapturkiye


Quote
@Everybody:[/b]  I've tried to test this new version out throughly, however, I may have missed something.  Please let me know if you run into any issues!  Thanks!


dougie thank a lot for your efforts , hwoever i couldnt make it work  .There is a default list. and i have 2 other  playlist. but when i choose one and press save it doesnt work . playlist remains same . songs wont change.  I thought it may be cache issue but with different browser i get same results

aegersz

Quote from: dougiefresh on February 28, 2018, 10:26:04 PM
{snip}
Third, I have to give credit to Simple Machines Forum's Customization Team.  They really helped me to understand that it isn't just whether the code works, but whether others can read it and understand the code.  They've helped me learn data sanitation techniques and better coding methods.  So a big shoutout to the Customization Team!!!  Thanks!
{snip}

i feel ya, i could do with a complete sanitaztion myself  :o

i have never felt the need to look at your code because i never questioned it nor have had to.

please write lots of comments

at least i have managed to fix every mod conflict, right ?

it was nice of you to give credit where  it's due. none of us are alone in this.
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

nofapturkiye

cant choose second playlist , anyone else ?

Advertisement: