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

Advertisement: