solved A Page specifically for Free Audio Downloads

alt=
@kayskeem
10 years ago
200 posts
I know how to come up with a page for my Jamroom website. However, I'd like to learn how to go about showing a page with only free audio downloads. What I mean is every audio that an artist or producer as set to free. Everyones not just a specific artist or producer. Of course I would like to have the jrAudio player display this but is this even possible ? Thanks.
updated by @kayskeem: 04/27/14 07:19:08PM
paul
@paul
10 years ago
4,323 posts
Putting this in your new template would be a good starting point -

{jrCore_list module="jrAudio" search="audio_file_item_price = 0"}

Pa


--
Paul Asher - JR Developer and System Import Specialist
alt=
@kayskeem
10 years ago
200 posts
Thanks @paul it didnt work nothing shows up I think its because the price on jamroom cant be set to 0 it has to be 0.01 minimum. My prices for free download is blank. what to do then ? Also when i use your code and put a price for a song i'm selling on my site it shows !! I was happy to see that its just 0 doesnt work if i never set a price to begin with
updated by @kayskeem: 03/20/14 06:26:10PM
alt=
@kayskeem
10 years ago
200 posts
@paul i updated what i said above so please look over it.
michael
@michael
10 years ago
7,646 posts
The problem is your trying to look for a value that might not be there 'audio_file_item_price'.

Not sure there is currently a syntax to search the database for something that isn't there.
paul
@paul
10 years ago
4,323 posts
This should work - Note that you'll need jrCore 5.1.30 or above for this to be supported.

{jrCore_list module="jrAudio" search="audio_file_item_price not_like %__%"}

Pa


--
Paul Asher - JR Developer and System Import Specialist
alt=
@kayskeem
10 years ago
200 posts
@paul that worked ! I have another question. i have created a special member download in form desinger with the label "vip artist download" and the name "'audio_vip_downloadable" it works like the free downloads thats already in jamroom. How do i make it search for just those songs checked for vip artist download ? They are free as well but for vip artist download only. I tried everything and I cant get it.
paul
@paul
10 years ago
4,323 posts
Assuming the custom field is a checkbox,

{jrCore_list module="jrAudio" search="audio_vip_downloadable = on"}


--
Paul Asher - JR Developer and System Import Specialist
michael
@michael
10 years ago
7,646 posts
Got this added into the docs for jrCore_list

"jrCore_list"
https://www.jamroom.net/the-jamroom-network/documentation/development/89/jrcore-list
alt=
@kayskeem
10 years ago
200 posts
worked thanks !! @paul

Tags