closed statistic for the user

Bandwerkstatt
Bandwerkstatt
@bandwerkstatt
9 years ago
224 posts
Hello, Jamroom!

Some time ago I have received an interesting inquiry from a musician / customers. I find the idea brilliant. . . his contents:

- I would see as an artist of course with pleasure in my account where all my songs are in the charts. Which order they have topically and which song was up to now the highest one and worst in the charts. All this from the first sight listed, as well as the plays and downloads suitably in addition.

- how many likes I have received and have delivered even to which songs, videos etc. I which

- how often my songs, videos etc. were looked by users them not are logged in and also from logged in users, same with plays and downloads.

- which side, Blog etc. from me in the most user had visits

Is this possible and if so, how?

Many thanks!
Stefan
updated by @bandwerkstatt: 06/25/15 02:40:41PM
michael
@michael
9 years ago
7,715 posts
You might be able to get a lot of that stuff with the {jrCore_list} call with a search1 to limit it to the profile_id your after.

Perhaps put a new page in your site at:
site.com/my_stats

then use the user's profile id from the $_user array to get data specific to the artist.

$_user._profile_id is the profile_id of the user looking at the screen.

So something like
{jrCore_list module="jrAudio" search1="profile_id = `$_user._profile_id`" chart_field="audio_file_stream_count" chart_days="7"}

"Advanced Charts"
http://www.jamroom.net/the-jamroom-network/documentation/modules/274/advanced-charts

That would produce
{$item.chart_direction}
{$item.chart_change}
{$item.chart_new_entry}
{$item.chart_position}

Might be able to use that to get what your after. I haven't done what your trying to do, so just trying to provide some insite into how I would start to approach the problem.

If that failed, then I would build a custom module to be able to use the jrCore_db_search_items() function to get the data necessary, then use a custom smarty function to get the data to the template:

"Defining your own smarty function"
https://www.jamroom.net/the-jamroom-network/documentation/development/1569/defining-your-own-smarty-function
Bandwerkstatt
Bandwerkstatt
@bandwerkstatt
9 years ago
224 posts
@michael

Many THANKS for your answere. We will test it out!

But the idea that you could work on an module, maybe that might be easier and jamroom got a great module too?

:-)
Stefan
michael
@michael
9 years ago
7,715 posts
Gotcha. If you could put "Feature Requests" into this forum, it helps us understand whether its something you want to build or something you want us to build. :)


"Suggestions"
https://www.jamroom.net/the-jamroom-network/forum/suggestions

Tag it something like "Feature request: detailed user statistics"

With the info on how you want it to work and we'll try to get to it. :)

Tags