Profile view count start end

amwproductions
@amwproductions
7 years ago
185 posts
Hello

I would add on my site a counter for Profiles view count.....

I found with site builder profile view counts, list numerical desc...and how i can set start profile count ex. 2017/01/04. end profile count 2017/01/05 is there a option

And how i see the output in listing? I see only profile image, profile bio no profile counts?

And how works the counts? Can one ip visit 200 times a day and counts 200 for them? Or exists a way to set per ip counts every day hour etc?


updated by @amwproductions: 07/20/17 09:04:21AM
amwproductions
@amwproductions
7 years ago
185 posts
I use audio pro template
michael
@michael
7 years ago
7,744 posts
These are the docs you are after:

Docs: "{jrCore_counter}"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/779/jrcore-counter

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

You put it in your templates and views will start to be counted.

Audio pro already counts the "profile_view" in profile_footer.tpl

Their IP address along with other criteria are used to try to count actual views, not one user viewing multiple times.
amwproductions
@amwproductions
7 years ago
185 posts
Hi michael thank you

And how i set a time to count? Me interessts to start this year to count me shows alltime views
amwproductions
@amwproductions
7 years ago
185 posts
I use this

jrCore_get_count module="jrProfile" item_id=$_profile_id name="profile_view"

How i ad here start count date and end count date?
michael
@michael
7 years ago
7,744 posts
The count time is stored along with the count data, but the function does not allow for returning data over a period of time.

It could be added, I'll add it as a suggestion.
amwproductions
@amwproductions
7 years ago
185 posts
Ah ok hope you can create some tool to select this with the site builder
michael
@michael
7 years ago
7,744 posts
After a second look it doesn't work like I thought it worked. All the unique views are stored in the jr_jrcore_count_ip When the count is recorded but then the {jrCore_get_count} function does not re-tally the count when the count is requested, it just retrieves the current count.

This makes it much faster, but also means you can't ask for a different version of the count.

If you need a different version of the count a custom smarty function would need to be created to re-tally the unique values in the count_ip table.

Docs: "Defining your own SMARTY function"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/1569/defining-your-own-smarty-function

Tags