Forum topic view count

White Agency
White Agency
@white-agency
9 years ago
204 posts
On ning you could see how many times a topic had been viewed.

Is there a way to do this in JR ?

I've got the jrChart module installed but can't see anything for topic views like there there is for gallery image views.
updated by @white-agency: 07/02/15 06:26:28PM
paul
@paul
9 years ago
4,332 posts
The forum module doesn't support that. We would need to add it in the the module itself, or a custom module created that listened for 'topic views' and inserted/incremented a counter into the topic's datastore.


--
Paul Asher - JR Developer and System Import Specialist
White Agency
White Agency
@white-agency
9 years ago
204 posts
It would be a really useful if the functionality was there.

I'm currently putting together another Ning feature 'Leader Boards' using jrChart which the count could be used for.

I've got it working for images and members and could do with topic views as well.

Connected with this is there anyway of jrChart to do a combined chart of video, vimeo and youtube plays ?

Had a play with using Seemless but no luck as you can only pass in one count field.
michael
@michael
9 years ago
7,748 posts
The way the profile count gets created is this line in the footer of the skin:
/skins/jrElastic/profile_footer.tpl
{* setup counter for page view *}
{jrCore_counter module="jrProfile" item_id=$_profile_id name="profile_view"}

That is the counting system counting a page view. You might try adding that to the forum topics to get a count of them.

{* setup counter for forum views *}
{jrCore_counter module="jrForum" item_id=$item._item_id id name="forum_view"}

Need to check out what the variable for the item_id is in the location you want to use it in.

I would expect to see forum_view_count come back as one of the variables for that item. Use it however you like.
paul
@paul
9 years ago
4,332 posts
Quote: Connected with this is there anyway of jrChart to do a combined chart of video, vimeo and youtube plays ?
This is something that has been asked for a few times now and it is on out 'todo' list but tbh we haven't come up with an easy/clean solution as yet. I'll have another think about it today.


--
Paul Asher - JR Developer and System Import Specialist
White Agency
White Agency
@white-agency
9 years ago
204 posts
Cheers Michael !

Have got it working recording the topic views so I can display them where I want to but doesn't want to play ball with jrChart.
Just comes back with no records found. I am manually forcing the daily maintenance to run so the counts are being updated.
forum_like_count does not return anything either but forum_post_count does.

Paul - that would be great if that could be made to work but not a deal breaker as we still have the individual counts.

Tags