Music Mod?

Started by MaryLouW, December 12, 2016, 06:05:04 PM

Previous topic - Next topic

MaryLouW

Is there such a thing as a mod that will play music that can be turned on/off by the member?  I would like to add some Christmas music to go along with our theme and thought this would be a nice touch.  Our group really gets into the holiday spirit by changing their avatars for the season, and of course the forum is all decked out for the holidays too. 

I would search the mods area but not sure what to search for.  If there's not a mod, is there possible a script that I could add to the headers?  Am I asking for the impossible here?  :)

dougiefresh

#1
Try this mod: Play Media In Header

Steve

Can that be centered Dougie?
DO NOT pm me for support!

MaryLouW

I installed it and it passed all the tests, etc but I can't find it.  Where do I go to configure it?  It looks like exactly what I wanted.

dougiefresh

Quote from: MaryLouW on December 15, 2016, 07:18:09 PM
I installed it and it passed all the tests, etc but I can't find it.  Where do I go to configure it?  It looks like exactly what I wanted.
3 new settings are available in Admin => Configuration => Features and Options => General:
o Enable playing background music?
o URL to audio file to play
o Supported media file to report to browser

Quote from: Steve on December 15, 2016, 05:43:07 PM
Can that be centered Dougie?
I guess.....

MaryLouW

Thanks!!!  That is awesome and it works perfectly!!  Those who don't want to hear it can turn it off.   It would be nice if it just played all the songs in the folder.  :)

Thanks for the nice mod and the help too!! :)

MaryLouW

Unfortunately, this mod did not work out for us.  The problem is, it re-starts the song every time you open a new thread.  Since we're a pretty active board, the song is restarting constantly.  The second problem is, you cannot turn it off.  Well, you can, but as soon as you click on another link, it turns back on again. 

At first, everyone LOVED it but the love died down because of the things I just mentioned. I don't suppose there's any  way around those things?

Kindred

The wha smf loads, it would be difficult... because every page is a brand new page load.

To do what you ask, younwould essentially have to open a pop up window with the player and play the music in there... and thencheck to see if it is already open as you load eac subsequent page
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

MaryLouW

Hmmm.... I guess that makes sense.   Years back, on my web page, I had a selection of Christmas songs where one could play what they wanted.  It did pop up a little player in a separate window but the same song kept playing,  I remember that I used a script in my html code.  Now that I think of it, if I can find that script again, I could set up a single html page and a link to it on the forumso people could still play  Christmas music.  That's a sort of work-around but it could work.


dougiefresh

#9
Hmmm....  Let me look into it again....

EDIT:  Hmmm...  I like a challenge....  ::)  This Javascript code might be part of the answer to the question you are seeking....

MaryLouW

Thanks!!!  I will look into that one even though it says it won't work on Firefox.   I did find a few others that I'm thinking MIGHT work but no time right now to check them out.  Santa is going to arrive before I'm ready for it!!  :)

MaryLouW

I found the perfect solution!   Thanks for suggesting a script. That got me to start looking around.  I found one that I put in my global headers and it follows me wherever I go.  I'm here in a new tab but I can still hear the music playing in my forum tab. It puts a bar all the way across the top of my screen and in a color of my choice.   It even has a drop down menu with a play list. 

<!-- SCM Music Player http://scmplayer.net -->
<script type="text/javascript" src="http://scmplayer.net/script.js"
data-config="{'skin':'skins/aquaBlue/skin.css','volume':50,'autoplay':true,'shuffle':false,'repeat':1,'placement':'top','showplaylist':false,'playlist':[{'title':'Jingle Bell Rock','url':'http://pirc-forum.com/music/jingle-bell-rock.mp3'},{'title':'Let it Snow','url':'http://pirc-forum.com/music/let-it-snow.mp3'},{'title':'Little Drummer Boy','url':'http://pirc-forum.com/music/little-drummer-boy.mp3'},{'title':'Winter Wonderland','url':'http://pirc-forum.com/music/winter-wonderland.mp3'},{'title':'White Christmas','url':'http://pirc-forum.com/music/white-christmas.mp3'},{'title':'Silent Night','url':'http://pirc-forum.com/music/silent-night.mp3'},{'title':'Silver Bells','url':'http://pirc-forum.com/music/silver-bells-2.mp3'},{'title':'Oh Christmas Tree','url':'http://pirc-forum.com/music/oh-christmas-tree.mp3'},{'title':'Oh Holy Night','url':'http://pirc-forum.com/music/oh-holy-night.mp3'},{'title':'Frosty the Snowman','url':'http://pirc-forum.com/music/frosty-the-snowman.mp3'}]}" ></script>
<!-- SCM Music Player script end -->

I will have fun with this one as I can play spooky music when I open our Halloween theme, etc.

Thanks again for the help!!    A little encouragement from you folks goes a long way. 

Merry Christmas!!!!!   (sorry, I am not a politically correct person).   :)

dougiefresh

Nice find!!  I'll incorporate it into the music mod I created, so that everybody can enjoy music on their website.....

dougiefresh

Quote from: MaryLouW on December 19, 2016, 02:53:27 PM
Merry Christmas!!!!!   (sorry, I am not a politically correct person).   :)
O:) Who cares about political correctness?  ::)  Merry Christmas to you, too!

Kindred

To be clear, there is nothing politically incorrect about wishing someone merry Xmas...   
the only ones who shouldn't do so are governmental employees while they are at the job..

;)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

dougiefresh

#15
What I've got for the next version so far:  (pic attached)

Planned:
> Ability to add more tracks to the playlist without submitting the form.
> Ability to choose the skin CSS that the player will use.
> MAYBE: Ability to pull a local copy of the SCM Music Player for site usage.

Also, mod name changed to "SCM Music Player for SMF v1.0.1"....

EDIT:  This new version is almost entirely hook-based.....  So only 1 file-edit!  Yay!

MaryLouW

That's looking great!!!  I think the worse problem with it was that it constantly restarted the song ever time you replied to a post, went to a new section, etc.   Will you be fixing that in your new version?  I like that the song choices can easily be edited.

The one I'm currently using does work perfectly but I have to put it in the global headers.  Will be looking forward to a new installable version.

lurkalot

Quote from: dougiefresh on December 19, 2016, 08:45:10 PM
What I've got for the next version so far:  (pic attached)

Planned:
> Ability to add more tracks to the playlist without submitting the form.
> Ability to choose the skin CSS that the player will use.
> MAYBE: Ability to pull a local copy of the SCM Music Player for site usage.

Also, mod name changed to "SCM Music Player for SMF v1.0.1"....

EDIT:  This new version is almost entirely hook-based.....  So only 1 file-edit!  Yay!

Nice.  Liking those ideas.  In the past I've been used the SCM Music Player script in a portal block, which to be fair is easy enough, but I like your idea for adding new tracks etc.  ;)

MaryLouW

Is there any way we can be notified when the new version is out?  I'd give it a try simply because it's easier to install a mod than to keep editing my global news thing.

dougiefresh

Quote from: MaryLouW on December 20, 2016, 07:07:48 PM
Is there any way we can be notified when the new version is out?  I'd give it a try simply because it's easier to install a mod than to keep editing my global news thing.
I'll post the update here in this thread.

Quote from: MaryLouW on December 20, 2016, 04:20:12 PM
That's looking great!!!  I think the worse problem with it was that it constantly restarted the song ever time you replied to a post, went to a new section, etc.   Will you be fixing that in your new version?  I like that the song choices can easily be edited.

The one I'm currently using does work perfectly but I have to put it in the global headers.  Will be looking forward to a new installable version.
I'm using the music player that you mentioned a few posts back for the new version.  The only difference between what you mentioned and my new mod is the fact that everything is customizable through the admin panel.  Btw, it looks a lot better than the one I made  :P

MaryLouW

I will keep this thread sending me notices then because I really do want to try your new version. Being able to change the song list from within the program is a great plus!!  My users like the way the bar opens - the color scheme fits right within the forum colors.  Good luck with yours!!

dougiefresh

SCM Media Player for SMF has been upgraded to v1.0.1.  Thank you for the feedback!

Attached are pics of the new mod in action....

EDIT:  Wrong link posted....  Sorry....

MaryLouW

Thanks!!!!  I will download and install it tomorrow.... it's way past my bedtime. Am most anxious to see it working on my forum!!!  :) :) :)

MaryLouW

Decided not to get some sleep - had to try this but.. .alas.. it doesn't work for me. I did the setup, enabled music, picked my music player and added one song.  Pressed the save button and it returns a solid white screen.  I went back to look to make sure I had saved it and all of my settings had been removed.

I tried it a second time, thinking maybe I forgot to save it.  But.. got the same results.  So.. where do we go from here?  I am going to uninstall it for now. and put the old one back in.

dougiefresh

Huh....  That's really weird, because it works just fine on my localhost forum.....  What mods do you have installed?

MaryLouW

I have quite a few mods installed - the list is attached.  Maybe someone else can try this to see if it's just me or whatever?

dougiefresh

Sorry to have replied so late to this topic.  After removing all the hooks in my test forum and reinstalling the mod, I saw the bugs you are talking about, and I'm pretty sure I've fixed the mod.  I've also addressed some issues that the Customization Team found, as well.....

I've uploaded version 1.0.2 to my website here.....

MaryLouW

Thank you!!!  I'll download it and see if it works for me now.  Appreciate you taking the effort !! :) :) :)

MaryLouW

This one works perfectly!!  It's playing on my board right now in another window.  You know the old saying, a woman is NEVER satisfied, right?   Well.. it's true! 

I have one more request for this mod.
It would be nice if I could create song groups.  That is, songs for St. Pat's day, Patriotic, Christmas, New Years, Easter, Valentines, etc.  In each category, I could put songs related to that category, then when I change my board skin for the event, I could also select the song category to go with the theme.

For example, when I install my Christmas theme, I would like to select a list that played only Christmas songs.
When I install the St. Patrick's Day theme, would like to select only Irish music to be played.

Would be good if people could create their own categories and then put the music in the corresponding "folders" on the server. 

Is this possible without a ton of work?

dougiefresh

Sure, it'd be possible.  A lot of work?  Unsure about that.  I would think that much of the work has already been done....

MaryLouW

Well, if you should decide to do it, that would be cool!  Otherwise, I certainly appreciate this mod!  My users complained before that the music interfered with the board (2 of them didn't like the music) but I never had a problem with it, neither did anyone else.  This time, I have it hiding on the bottom but not on Auto play. So.. will see if they even notice. I suspect not.  I enjoy a little soothing music when I'm reading the posts.

Thanks for this cool music mod!!!

dougiefresh

SCM Music Player for SMF mod has been approved!  Please direct all mod support requests to the mod thread!  Thank you!

Irisado

Soñando con una playa donde brilla el sol, un arco iris ilumina el cielo, y el mar espejea iridescentemente

dougiefresh


Advertisement: