Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to use youtube plugin, mp3 plugin
#4
jrkishore4u Wrote:Thanks alienee2 for ur reply

how to integrate the Fancy Music Player V2.0 in GetSimple 3.1 can u give instructions to install in GetSimple?
pls

if you buy the player, then there are instructions for how to put it in a site; basically you first have to include the jquery files in the header; i seem to recall that it worked best to create a js folder for the scripts in the root and then include the files like below and not in the theme folder:

Code:
<link rel="stylesheet" type="text/css" href="<?php get_theme_url(); ?>/css/jquery.fancyMusicPlayer-white.css" />
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script src="/js/soundmanager2-nodebug-jsmin.js" type="text/javascript"></script>
<script src="/js/jquery.fancyMusicPlayer.min.js" type="text/javascript"></script>

in the footer of the template you have to put this:

Code:
<script type="text/javascript">
    $(document).ready(function(){
        $('#fancyMusicPlayer').fancyMusicPlayer({playlistHeight:130,playlistInitOpen:true,swfFolder:'/swf/',trackColorNormal: '#0D0E10', trackColorHover: '#aeaec6', trackColorSelected: '#625A71'});
    });
</script>

and specify the location of the swf folder after the swfFolder: ... again i think it works best if that is relative to the root;

then you can setup the players like this:

Code:
<div id="fancyMusicPlayer">
  <a href="path/to/mp3/file.mp3" title="Audio File Title" target="path/to/mp3/file.mp3"></a>
   ...here you can keep adding files and the will all appear in the playlist.... (repeat the anchor code)
</div>

you might find it easier to use yahoo web player if that is too complex;

for each playlist, i created a component for each playlist - this is easier to maintain and the code doesn't get messed up in the editor; so then you can call the audio players in your site using the dynpages plugin..

-marc
Reply


Messages In This Thread
how to use youtube plugin, mp3 plugin - by alienee2 - 2012-04-25, 02:41:15



Users browsing this thread: 4 Guest(s)