to show how many times a blog was viewed(read)

boplive
@boplive
10 years ago
345 posts
Hi guys,

Any chance any of these below will work to show how many times a blog was viewed(read) or am I even close :)

{$item.blog_count})

{$item.blog_view_count}

{$item.blog_view_count|default:0}
updated by @boplive: 04/22/14 02:34:06PM
douglas
@douglas
10 years ago
2,791 posts
You might be able to use the {jrCore_counter}

https://www.jamroom.net/the-jamroom-network/documentation/development/779/jrcore-counter

and {jrCore_get_count}

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

functions to get what your after. I have not tried this, but it should work.

EDIT--
I just tried this and it does work.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

updated by @douglas: 03/11/14 07:31:39PM
boplive
@boplive
10 years ago
345 posts
ahhh ok...{jrCore_counter} is set in the footer of the profile templates so counts can be retrieved in the header. - I guess this part I have to put in the footer... :(

I had a problem the other day with the footer in my site when I added something and it went blank...hmmm...I'll see what happens

name="profile_view" - do I still need this part in the function or remove it or leave this part in there and rename it name="blog_view"
douglas
@douglas
10 years ago
2,791 posts
boplive:

name="profile_view" - do I still need this part in the function or remove it or leave this part in there and rename it name="blog_view"

Yes, you'll need to leave that in and rename it to blog_view.

Hope this helps,
Douglas


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

Tags