solved How to display Profile Statistics - Public visits

alt=
Luis456
@luis456
8 years ago
48 posts
Hello!

Could you please help with the code to display the profile statistics on users and artists profiles?

What I'm looking is to display the: Profile vies, profile music streams, profile downloads for the day and all the time.

Is it possible on Jamroom 5?

So far I was only able to show the profile views all the time, but it only shows the profile view for different artist while I'm only logged in as Admin.

When logged in as an Artist, the code does show the profile views, but only this artist.

If a different profile is viewed while logged in as an artist, it will only show his/her profiles views on profile being viewed.

I'm using the below code

  <h2>{jrCore_lang skin=$_conf.jrCore_active_skin id="1111" default="Visitas:"}</h2> {$_user.profile_view_count}<br>
Profiles_views.jpg
Profiles_views.jpg  •  8KB


updated by @luis456: 06/17/16 10:26:08AM
douglas
@douglas
8 years ago
2,793 posts
I don't think there is a way to get counts for a single day, at least not that I know of, but you can get counts for plays, views etc... by using the jrCore_get_count smarty function.

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


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
alt=
Luis456
@luis456
8 years ago
48 posts
Thank You that help.
I'm managed to display the hosted audio and profile plays.
How can I do for SoundCloud and Youtube?
Extra help for Downloads will be also great.
I tried this code, but it does not work.
{jrCore_get_count module="jrSoundCloud" name="SoundCloud_file_stream" profile_id=$_profile_id}<br>  
{jrCore_get_count module="jrYouTube" name="YouTube_file_stream" profile_id=$_profile_id}<br> 

updated by @luis456: 03/17/16 02:03:32PM
michael
@michael
8 years ago
7,744 posts
The docs for the counter are here:

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

If you could let me know what part needs more clarification that would be great.

Youtube and soundcloud are not streamed from your server, so the issue might be that that the streams are not recorded.

You can see what's been recorded in the jr_jrcore_count_ip table in the database. You can access that via
ACP -> DEVELOPER -> DEVELOPER TOOLS -> TOOLS -> DATABASE ADMIN
alt=
Luis456
@luis456
8 years ago
48 posts
Thanks Michael.. it worked.

Tags