Charts top song / video / artist badges

Eddy
Eddy
@eddy
10 years ago
479 posts
Just an idea that crossed my mind but would love to have something like this on my site.

Where top song / video / artist on the charts for any given Week / Month / Year would have a badge added to the song / video / profile :).

To better this idea, would be to put a time stamp on the badge like Week / Month / Year :).
updated by @eddy: 04/05/14 02:40:49AM
MAD
MAD
@madc
10 years ago
600 posts
+1


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion
Eddy
Eddy
@eddy
10 years ago
479 posts
JR member b360 had left a comment on this topic over night stating he had done this for his site, but by the time I came in this morning his post was gone, guess he had second thoughts about it.
Eddy
Eddy
@eddy
10 years ago
479 posts
I don't have a clue of how to do that you said on the other topic Brian, even a simple version of it, so will wait and see what happens.
Developer Networks
Developer Networks
@developer-networks
10 years ago
566 posts
I deleted my post from earlier as I went in and converted my work over to a module.

You can check out my module here. https://www.jamroom.net/b360/networkmarket/122/profile-badges

Hope this helps you out.


updated by @developer-networks: 03/03/14 09:49:36AM
Eddy
Eddy
@eddy
10 years ago
479 posts
Though similar, it's not exactly what I am looking for, I wanted something that worked with the charts alone, my site is free for everyone so I wanted the badges for top songs/videos only.
brian
@brian
10 years ago
10,148 posts
If you just want to show something on a profile page when their song is #1 on the charts, we need to find out IF their song is number 1. We can do that with a jrCore_list call:

https://www.jamroom.net/the-jamroom-network/documentation/howto/1080/howto-using-jrcore-list-in-a-template-step-by-step

i.e. something like:

{capture name="row_tpl" assign="tpl"}
{literal}
{$items[0]._profile_id}
{/literal}
{/capture}
{jrCore_list module="jrAudio" chart_days=7 limit=1   ... (other params you need) ... template=$tpl assign="top_spot"}
{if $top_spot == $_profile_id}
    ... show your badge as this spot has the top song right now ...
{/if}

You will need to play with it a bit, and please reference the documentation we have online so you can modify it to suit your needs.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 03/04/14 06:55:26AM

Tags