Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
User Site Design, Integration and Customization:
Nova Players in Projam2
Mrmeme



Joined: 28 Mar 2011
Posts: 26

Posted: 06/04/12 14:08 
hello
i have the projam2 template and swap the flash players over to the nova players because i had access to the source files.

i simply renamed the swfs to match the projam one and uploaded the .as file.
i have modded the .tpl file which loads the player to allow the embed code to work what i need now is for a download link to appear.
so for instance on this page http://www.kllo-radio.co.uk/HALFDECENT/ the track "film star remix" is available for download so i would like a download button to appear. I have tried which is why there is two buy now buttons ( i renamed the instances and mc of the buy now button near the album artwork in the attempt to sort it myself)

any advise on where i should be editing and applying code etc is very much appreciated.

Back to top
daddysylem
DS Flash Players


Joined: 30 Mar 2005
Posts: 4086
Location: Southern California

Posted: 06/04/12 16:25 

Mrmeme:
hello
i have the projam2 template and swap the flash players over to the nova players because i had access to the source files.

i simply renamed the swfs to match the projam one and uploaded the .as file.
i have modded the .tpl file which loads the player to allow the embed code to work what i need now is for a download link to appear.
so for instance on this page http://www.kllo-radio.co.uk/HALFDECENT/ the track "film star remix" is available for download so i would like a download button to appear. I have tried which is why there is two buy now buttons ( i renamed the instances and mc of the buy now button near the album artwork in the attempt to sort it myself)

any advise on where i should be editing and applying code etc is very much appreciated.


The Nova Players didn't have a Download button.
So adding one will not be easy to explain...... Sad

You can use a copy of the Buy Button to make a download button if you want, but you will need to change the name of the MC and also the instance of the MC. You will also need to edit the “as” file and add the action script coding to pull the existing download link from the playlist file (pro2.default.tpl) and also the coding to create the download link action in the player. Basically your creating a button in the player that will pull the link code from the playlist and then activate it when pushed.

Sorry, but Flash is not an easy thing to explain,
Greg -


_________________
I have no idea why I do this..................
Email: daddysylem[at]dsplayerskins.com
DSPlayerSkins.com
GCFireSprinkler.com
Back to top
Mrmeme



Joined: 28 Mar 2011
Posts: 26

Posted: 06/05/12 05:49 
hello
thanks for the reply really appreciate it.

in my pro2.default.tpl file i have the following:

Code
 {if $_media.lofi_download == 'yes'}
    <download>{$JAMROOM_URL}/download.php?mode=song_lofi&band_id={$_media.band_id}&song_id={$_media.song_id}</download>
    {else}
    <download></download>
    {/if}


just above the "advise" section on the music player.

in my .as file i have the following:


Code
//download button   
   if(playlist_array[track_index].vault!=undefined){
      download_mc._visible = true;
      display_txt2._visible = false;
      download_mc.download_btn.onPress = function(){
         getURL(playlist_array[track_index].download,"_blank")
      }
   }else{
      download_mc._visible = false;
      display_txt2._visible = true;
   }


just underneath the vault button code.

i also have:

Code
if(track_child.nodeName=="download"){
track_obj.download = track_child.firstChild.nodeValue
}


within the playlist loaded section also near the vault button code.

and this is near the top of the .as file:


Code
//download button
download_mc._visible=false;
display_txt2._visible = true;
if(!info_button_text){
   info_button_text = DEFAULT_INFOBUTTON_TXT;
}
download_mc.display_txt.text = info_button_text;



i have renamed the instances and mc names to download.

any pointers would be great.

Back to top
daddysylem
DS Flash Players


Joined: 30 Mar 2005
Posts: 4086
Location: Southern California

Posted: 06/05/12 06:58 
If your using the Projam2 "pro2.default.tpl" file, and you've made all those changes to the Nova "as" file, then the only thing you should need to do is copy the Buy button and change the MC name to match "download_mc" and change the instance name to something else.

Greg -


_________________
I have no idea why I do this..................
Email: daddysylem[at]dsplayerskins.com
DSPlayerSkins.com
GCFireSprinkler.com
Back to top
Mrmeme



Joined: 28 Mar 2011
Posts: 26

Posted: 06/05/12 09:25 
thanks once again for your reply.

im totally lost and confused now Sad .

think it will be better if i just buy a projam2 player set from you. will save a lot of time Very Happy

Back to top
daddysylem
DS Flash Players


Joined: 30 Mar 2005
Posts: 4086
Location: Southern California

Posted: 06/05/12 10:20 

Mrmeme:
thanks once again for your reply.

im totally lost and confused now Sad .

think it will be better if i just buy a projam2 player set from you. will save a lot of time Very Happy


I'm sorry I can't be more help.......... Sad
But its really hard to tell what could be wrong without actually doing it myself.

Greg -


_________________
I have no idea why I do this..................
Email: daddysylem[at]dsplayerskins.com
DSPlayerSkins.com
GCFireSprinkler.com
Back to top
Mrmeme



Joined: 28 Mar 2011
Posts: 26

Posted: 06/05/12 12:37 
hello
no worries.

thanks for your time and help anyway Smile
i understand what its like i often have to get a client to send me a file or get access to understand what the issue is.

Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
User Site Design, Integration and Customization

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.