solved audio charts

alt=
@dim
9 years ago
167 posts
I want to create some audio charts by an audio genre. Ie should be a rock chart, trance chart, country music charts, etc.
Where do I find the functions for this?

Thanks!
updated by @dim: 03/22/15 08:18:14AM
paul
@paul
9 years ago
4,326 posts
Charts are generated by adding the chart parameters to the jrCore_list call in the templates, e.g. -

{jrCore_list module="jrAudio" chart_field="audio_file_stream_count" chart_days="7" tpl_dir="jrFlashback" template="music_chart_row.tpl" require_image="audio_image" pagebreak=$_conf.jrFlashback_default_pagebreak page=$_post.p}

So to make it genre specific, just add in a search parameter -

{jrCore_list module="jrAudio" search="audio_genre = Rock" chart_field="audio_file_stream_count" chart_days="7" tpl_dir="jrFlashback" template="music_chart_row.tpl" require_image="audio_image" pagebreak=$_conf.jrFlashback_default_pagebreak page=$_post.p}

hth


--
Paul Asher - JR Developer and System Import Specialist
alt=
@dim
9 years ago
167 posts
@paul,
That'S Perfect! Thank U!

Tags