closed Artist Media Streams

infinityssm
infinityssm
@makande
10 years ago
53 posts
I'm setting up a stats area on the artist profile main page. I figured out how to display Profile views and Audio/Video count totals. I'm having problems displaying Total Comment count and Audio/Video Stream count. The following gives me Site total Audio streams.

{jrCore_get_count module="jrAudio" name="audio_file_stream_count"}

{jrCore_get_count module="jrAudio" profile_id=$_profile_id name="audio_file_stream_count"}

--------------------------------
What I want is Profile Artists Total Audio streams. What am I missing?

Thanks
updated by @makande: 07/31/14 05:24:09AM
brian
@brian
10 years ago
10,148 posts
The profile view count is already part of the profile data - just use the direct variable - i.e.

{$profile_view_count}

For the others, you're not missing anything - I assumed profile_id was supported in the jrCore_get_count, but just checked out the code and don't see, so that will need to be updated.

Note that if you are looking to get counts of items (i.e. number of audio files for a profile) that too is part of the profile data - i.e.

{$profile_jrAudio_item_count}

Just change "jrAudio" to whatever module directory you want to get counts for.

I will check out the changes needed for jrCore_get_count.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
michael
@michael
10 years ago
7,746 posts
profile_id has been added to {jrCore_get_count} in the next core release 5.2.9.

Docs:

"{jrCore_get_count}"
https://www.jamroom.net/the-jamroom-network/documentation/development/773/jrcore-get-count