Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Help:
JR5 - jrAudio chart listing functions
b360



Joined: 02 Feb 2011
Posts: 264

Posted: 09/06/13 20:10 
I have a chart list:


Code
{jrCore_list module="jrAudio" chart_field="audio_file_stream_count" chart_days="365" tpl_dir="jrN8Showcase" template="music_chart_row.tpl" require_image="audio_image" pagebreak=$_conf.jrN8Showcase_default_pagebreak page=$_post.p}


I would like to be able to sort my list via genre and or quota id

What are the function calls for this?


I tried the same ones used in jrCore_list :

Code
{jrCore_list module="jrAudio" chart_field="audio_file_stream_count" chart_days="365" tpl_dir="jrN8Showcase" template="music_chart_row.tpl" require_image="audio_image"  search1="profile_quota_id = 3" pagebreak=$_conf.jrN8Showcase_default_pagebreak page=$_post.p}


But I don't think they are the same.



Last edited by b360 on 09/07/13 03:23; edited 1 time in total
Back to top
Michael
Jamroom Team


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 09/06/13 22:47 
This is the chart list from Sage:
Code

{jrCore_list module="jrProfile" chart_field="profile_view_count" chart_days="365" search1="profile_quota_id in `$_conf.jrSage_artist_quota`" search2="profile_name like `$_post._1`%" template="artists_row.tpl" require_image="profile_image" pagebreak=$_conf.jrSage_default_artist_pagebreak page=$_post.p}


It uses profile_quota_id. any use?

--- edit --
mmm, that might not be of any use. Your wanting audio but separated via quota. but quotas aren't stored with the audio datastore.

Not sure how to get that. Anyone looked into this?


_________________
Michael Ussher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
b360



Joined: 02 Feb 2011
Posts: 264

Posted: 09/07/13 03:59 
Yes im trying to show the charts separated by quotas and also by genera when selected by the members. Is this something that I add to the advanced charts modules?

Back to top
Douglas
Jamroom Team


Joined: 08 Oct 2004
Posts: 6639
Location: Tornado Alley!

Posted: 09/07/13 08:32 

b360:
Yes im trying to show the charts separated by quotas and also by genera when selected by the members. Is this something that I add to the advanced charts modules?


The profile_quota_id is available for searching in the jrAudio list function, give this a try:


Quote:
{jrCore_list module="jrAudio" chart_field="audio_file_stream_count" chart_days="365" tpl_dir="jrN8Showcase" template="music_chart_row.tpl" require_image="audio_image" search1="profile_quota_id = 3" search2="audio_genre = rock" pagebreak=$_conf.jrN8Showcase_default_pagebreak page=$_post.p}


be sure to change the genre rock to the genre you want to search.

Hope this helps,
Douglas


_________________
Douglas Hackney
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Brian
Jamroom Team


Joined: 09 Jul 2003
Posts: 37583
Location: Seattle, WA

Posted: 09/07/13 08:52 
Yep - all jrCore_list calls support quota_id - you can even do:


Code

quota_id="5"


- no need to add it to search.

Hope this helps!

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation
Back to top
b360



Joined: 02 Feb 2011
Posts: 264

Posted: 09/07/13 17:10 
Many Thanks! Smile

Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Jamroom Help

 
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.