Advertisement:

Author Topic: SCM Music Player for SMF  (Read 15848 times)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,117
    • StoryBB/StoryBB on GitHub
Re: SCM Music Player for SMF
« Reply #20 on: March 27, 2017, 03:54:12 AM »
You also need to be running 2.0.13.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

Nothing turns to hate so bitter as what once was love.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,702
  • Mod King
    • XPtsp.com Community
Re: SCM Music Player for SMF
« Reply #21 on: March 27, 2017, 09:49:58 AM »
Okey i am really excited about this mod but there is an error for me , it says this when i try to add track
Code: [Select]
Fatal error: Call to undefined function safe_serialize() in /home/nofaptur/public_html/Sources/Subs-SCMP_Admin.php on line 201
I was not aware that the safe_serialize function didn't exist before 2.0.12 (at least I think that statement is true, it might have existed earlier, but not by much).  I've changed the code to use the older serialize function if the safe_serialize function isn't available.

what i did was to find a  demo.mp3 file on internet and  copy paste  .mp3 link to the  song url part.  Was that wrong to do ?  It would be really helpfull if you be more specific about how to add songs . If this Works i will be super happy for my forum. I am waiting for your answer man
What you did is perfectly legit.

You have to upload a real track and not a link to it. On the setting page, see attachment below, you chose a music file from a location on your hard drive and then upload it.
While it is true that the mp3 file must be uploaded SOMEWHERE, it is not necessary that it be on the server that hosts your forum.  Be aware that the mp3 file just might disappear from other people's server and break your player.....

I should add that the image is taken form my 2.1 test forum, as I have not installed it on live site it might look a bit different.
It shouldn't make a difference on whether it is a live site or not.  It should look the same, even across the SMF 2.1 Beta and SMF 2.0.x lines....
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,702
  • Mod King
    • XPtsp.com Community
Re: SCM Music Player for SMF
« Reply #22 on: March 27, 2017, 05:34:11 PM »
Uploaded v1.3 - March 27th, 2017
o Added check to see if function safe_serialize exists before use.



@nofapturkiye:  Hopefully, this update solves the issue you reported.
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline nofapturkiye

  • Semi-Newbie
  • *
  • Posts: 44
Re: SCM Music Player for SMF
« Reply #23 on: March 28, 2017, 02:09:29 PM »
Thanks a lot man , it is working perfect now. I was trying to aembed other music players but they wont do it   :D :D :D

just 1 thing tho ,


Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,702
  • Mod King
    • XPtsp.com Community
Re: SCM Music Player for SMF
« Reply #24 on: March 28, 2017, 03:46:46 PM »
Thanks a lot man , it is working perfect now. I was trying to aembed other music players but they wont do it   :D :D :D

just 1 thing tho ,


I'll take a look at it; however, I'm not sure there is anything I can do about it, considering that the SCM Media Player script controls that....
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline Asadullah

  • Semi-Newbie
  • *
  • Posts: 29
Re: SCM Music Player for SMF
« Reply #25 on: March 29, 2017, 02:46:36 AM »
Hello,

Your mod is perfect. Its working fit n fine. But i have another idea in my mind. I am trying my best to make it possible. But i am not a pro in css/php. I need your help in it.

I have added a top bar in forum with button " about us ". I want to add a voice clip in that button. I mean, whenever someone will click that button, He'll hear the voice information. Which will tell about our forum.
Confusion is, How can i add that sound on the click of the button ? And it must not redirect to any other page. Just it'll play audio on the same page. Same as your mod. But its a bit different. I'll be glad if any of you'll give solution to it.

Thanks!

Offline nofapturkiye

  • Semi-Newbie
  • *
  • Posts: 44
Re: SCM Music Player for SMF
« Reply #26 on: March 29, 2017, 04:42:12 AM »
I have added a top bar in forum with button " about us ". I want to add a voice clip in that button. I mean, whenever someone will click that button, He'll hear the voice information. Which will tell about our forum.
Confusion is, How can i add that sound on the click of the button ? And it must not redirect to any other page. Just it'll play audio on the same page. Same as your mod. But its a bit different. I'll be glad if any of you'll give solution to it.

Maybe you can use   http://vocaroo.com/?upload  ,  after uploading there is a option for embedding.  i think it is very small  ,

other option is that:
when you click that button  scm player will start playing whatever song you want. we need to create link between scm and button.



Offline Asadullah

  • Semi-Newbie
  • *
  • Posts: 29
Re: SCM Music Player for SMF
« Reply #27 on: March 29, 2017, 08:53:13 AM »
I have added a top bar in forum with button " about us ". I want to add a voice clip in that button. I mean, whenever someone will click that button, He'll hear the voice information. Which will tell about our forum.
Confusion is, How can i add that sound on the click of the button ? And it must not redirect to any other page. Just it'll play audio on the same page. Same as your mod. But its a bit different. I'll be glad if any of you'll give solution to it.

Maybe you can use   http://vocaroo.com/?upload  ,  after uploading there is a option for embedding.  i think it is very small  ,

other option is that:
when you click that button  scm player will start playing whatever song you want. we need to create link between scm and button.
Thanks for your response.
1stly, have a look at what i have made. -> http://vcdw-vcmp.base.pk/ <-
There you'll find "about us" button on the top. I have placed a sample audio script for now. Just for testing purpose. When i click it, It redirects me to that audio. But i don't want this. As you that the 2nd option. When i click it, SCM player will start automatically, that's what i want. Whenever someones click it, SCM player should appear and start that voice in a new window. And member will also be able to shut that SCM player. with the close " x " button. But there isn't any such button. I want it.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,702
  • Mod King
    • XPtsp.com Community
Re: SCM Music Player for SMF
« Reply #28 on: March 29, 2017, 12:02:51 PM »
To do this with SCM Media Player would not be easy, and is beyond the scope of this mod!  You would need to write some Javascript that (1) sets the playlist, (2) sets the skin to something non-hidden, and (3) starts the playlist.  You would need to attach that Javascript to a <a href html tag.  Likewise, in order to close it, you would need to write some more Javascript to (1) stop the playlist and (2) set the skin to something hidden.
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline Asadullah

  • Semi-Newbie
  • *
  • Posts: 29
Re: SCM Music Player for SMF
« Reply #29 on: March 31, 2017, 01:07:59 AM »
To do this with SCM Media Player would not be easy, and is beyond the scope of this mod!  You would need to write some Javascript that (1) sets the playlist, (2) sets the skin to something non-hidden, and (3) starts the playlist.  You would need to attach that Javascript to a <a href html tag.  Likewise, in order to close it, you would need to write some more Javascript to (1) stop the playlist and (2) set the skin to something hidden.
i see. I'll try my best to make it happen. Thanks for your kind help both. :)

Offline Beowulf1976

  • Jr. Member
  • **
  • Posts: 121
  • Gender: Female
  • I'm a noob, and proud.
    • Beowulf1976 on Facebook
    • @Beowulf1976 on Twitter
    • Friends of Inigo
Re: SCM Music Player for SMF
« Reply #30 on: June 06, 2017, 11:43:18 PM »
OK, so I had some problems...


see this topic: https://www.simplemachines.org/community/index.php?topic=554047.50


after reinstalling my mods one by one, it's your mod that causes my issue with core features and not being able to use them.



“Them as can do has to do for them as can't. And someone has to speak up for them as has no voices.”

Offline Beowulf1976

  • Jr. Member
  • **
  • Posts: 121
  • Gender: Female
  • I'm a noob, and proud.
    • Beowulf1976 on Facebook
    • @Beowulf1976 on Twitter
    • Friends of Inigo
Re: SCM Music Player for SMF
« Reply #31 on: June 07, 2017, 07:44:11 PM »
(as I cannot edit) if you would like to "borrow" my spare admin account (that I give to people for testing or broken purposes) then pm me and I'll give you the details so that you can see the issue first hand. :)
“Them as can do has to do for them as can't. And someone has to speak up for them as has no voices.”

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,702
  • Mod King
    • XPtsp.com Community
Re: SCM Music Player for SMF
« Reply #32 on: July 05, 2017, 06:53:37 PM »
@Beowulf1976:  First, I apologize for not responding to your bug report in a timely manner.  Other projects, life, and a computer crash have all prevented me from dealing with mods for the past few weeks.  But I think most of it is behind me and I can start to deal with problems with my mods again....  (Particularly 2.1 Beta 3....  23 mods need fixing!  Ugh!)

Second, I've installed it on a clean 2.0.14 and I can confirm the bug report.  I'm a bit confused about why it is happening, but I'll try to figure it out soon!
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,702
  • Mod King
    • XPtsp.com Community
Re: SCM Music Player for SMF
« Reply #33 on: July 05, 2017, 07:05:32 PM »
Uploaded v1.4 - July 5th, 2017
o Fixed the hook that adds new section to the admin panel, which caused issues in Core Features.



@Beowulf1976:  The way the new admin section was being defined was the problem....  Weird....  Anyway, I fixed it!  Thank you for the bug report!
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline aegersz

  • Sophist Member
  • *****
  • Posts: 1,375
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: SCM Music Player for SMF
« Reply #34 on: August 09, 2017, 08:33:28 AM »
1.2 showed up on my Configuration Settings but no player bar was to be seen.

1.4 didn't redirect me and there are no options in Configuration Settings.

I know, I am a pain in the ass as i have too many mods on but i just thought i'd tell you anyway.
Linux CentOS VPS running SMF 2.0 with 140+ mods installed (the full h/w and s/w can be seen at http://forum.drugs-and-users.org/index.php/topic,3301)

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,702
  • Mod King
    • XPtsp.com Community
Re: SCM Music Player for SMF
« Reply #35 on: August 09, 2017, 10:33:11 AM »
Uploaded v1.5 - August 9th, 2017
o Removed debug code from main admin hook.



@aegersz:  Thank you for the bug report!  And no, you are not a pain in the ass....   I appreciate the bug reports, as I fix issues that users find with my mods!
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline aegersz

  • Sophist Member
  • *****
  • Posts: 1,375
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: SCM Music Player for SMF
« Reply #36 on: August 09, 2017, 05:48:23 PM »
that was better but i am still not seeing the bar anywhere - even on my vanilla system (2.0.11)
Linux CentOS VPS running SMF 2.0 with 140+ mods installed (the full h/w and s/w can be seen at http://forum.drugs-and-users.org/index.php/topic,3301)

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,702
  • Mod King
    • XPtsp.com Community
Re: SCM Music Player for SMF
« Reply #37 on: August 09, 2017, 06:08:36 PM »
Did you enable the bar and add tracks to the playlist?  If no, then you won't see it.  Also, autoplay must be checked if you expect it to start up automatically.....
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline aegersz

  • Sophist Member
  • *****
  • Posts: 1,375
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: SCM Music Player for SMF
« Reply #38 on: August 10, 2017, 03:03:06 AM »
how do I enable the bar ? it's either top or bottom - I checked most boxes and set the track URL to my site.

I really want this mod badly too. it's great.
Linux CentOS VPS running SMF 2.0 with 140+ mods installed (the full h/w and s/w can be seen at http://forum.drugs-and-users.org/index.php/topic,3301)

Offline aegersz

  • Sophist Member
  • *****
  • Posts: 1,375
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: SCM Music Player for SMF
« Reply #39 on: August 10, 2017, 07:37:58 AM »
Enable playing background music? option doesn't save in Firefox or Opera but if i copy the track URL to a new tab in Chrome then it plays in it's new tab.

why can't i save that ticked check box ?
Linux CentOS VPS running SMF 2.0 with 140+ mods installed (the full h/w and s/w can be seen at http://forum.drugs-and-users.org/index.php/topic,3301)