solved Show Downloads count on MediaPro Skin

paatie
@paatie
8 years ago
36 posts
Hi the

Will you please help with some customization on Mediapro skin. I would like to show the downloads count of the songs on the charts and also on the media player.

Thanks

updated by @paatie: 06/09/17 11:36:23AM
paul
@paul
8 years ago
4,335 posts
You'll need to modify the appropriate template(s). The audio variable you need to use is 'audio_file_download_count' so in the templates this is likely part of the $item array, so by adding something like this to the template where you want the count to show -

Downloads: ($item.audio_file_download_count|default:0}

Note that the '|default:0' part forces a zero to be displayed if there are no audio downloads as yet.
hth
Paul


--
Paul Asher - JR Developer and System Import Specialist
paatie
@paatie
8 years ago
36 posts
Hi Paul

Thanks a lot it works great I was able to add it to index_top_singles_rating_row.tpl. I just need your help, how do I add this to the player. I'm just not sure which template is for the player and it's gonna take me forever to check each template.
paatie
@paatie
8 years ago
36 posts
@paul no need to worry I found it /modules/audio/item_details.tpl
paul
@paul
8 years ago
4,335 posts
Cool - Glad its sorted.


--
Paul Asher - JR Developer and System Import Specialist

Tags