Feature Request: Two New Stats Needed on Profile Page

Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
Right now, one of the stats is the number of blogs I have started and how many photos I have uploaded.

I want two more Stats that I think every Ningster is going to want:

1) A count of the number of Group discussions I have started and/or participated in and when clicking on that number seeing them listed in newest first order.

2) A count of the number of Forum discussion I have started and/or participated in and when clicking on that number seeing them listed in newest order first.

BTW - these are useful diagnostic tools for Ningsters to work with Paul to unearth data migration problems. I have one member on Ning in 471 discussions and only 1 of them is visible on my JR community.
updated by @claygordon: 03/03/15 02:23:10AM
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
It turns out that the code to do this is already written and it's on this page. It's the number of posts - the last line under the member's photo. It's already in every forum post/comment.

Just a matter of surfacing it in the stats area?
michael
@michael
9 years ago
7,715 posts
Those items that come out on the stats section are there because the modules registered the value thats being counted in their _init() function.

'profile_stats'

eg, the audio modules _init():
jrCore_register_module_feature('jrSearch', 'search_fields', 'jrAudio', 'audio_title,audio_genre,audio_album', 52);

Is it just comments count your after to be registered by the jrGroup module?

--edit--
sorry, don't have a jrGroup module setup or comments to just go look at.
updated by @michael: 01/26/15 09:36:44PM
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
No, not just comments. Forum posts created and forum posts commented on.
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
thechocolatelife:
No, not just comments. Forum posts created and forum posts commented on.

-Forums in Groups, and ALSO Forums in the Forum section, right Clay?


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
Strumelia:
thechocolatelife:
No, not just comments. Forum posts created and forum posts commented on.

-Forums in Groups, and ALSO Forums in the Forum section, right Clay?

Ideally, yes.
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
Even though it might not be perfect, what would it take to insert the equivalent of this URL

http://www.thechocolatelife.com/forum/activity/userID/membername

Into the stats section in a button that looks like the other buttons?
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
I have a member - Brad Churchill - that I thought was missing all of their Forum contributions - over 440.

I searched for his name and only get one Forum search result as can be seen in the attached screen shot. When I click through to the forum discussion and then on the ### posts under his profile photo I get the following display of all 449 posts :

http://www.thechocolatelife.com/forum/activity/1057/brad-churchill

That's a lot to ask for anyone to look around and find what a member has contributed. This is why I want a ### Forum Posts in the Stats section. Plus, if we're only going to display only a single Forum result in the search page, that's okay (though 3-5 is better), but there should be a link that says "All XXX" in the header bar above.

I could do this myself, but I feel real strongly that this is something that every Ningster is going to want that it should be a part of the skin.

Also - as @Strumelia points out - there should also be a parallel capability for Group discussion posts.
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
With Michael's help I modified the Stats block inside profile_sidebar.tpl to add the "all" to the end of the jrGallery module call inside the foreach to modify the URL to show all images, not duplicate the functionality of the Galleries menu item.

{foreach $_stats as $title => $_stat}
{jrCore_module_url module=$_stat.module assign="murl"}
<div class="stat_entry_box"{if $_stat.module == "jrGallery"}
     onclick="window.location='{$jamroom_url}/{$profile_url}/{$murl}/all'"><span class="stat_entry_title">{$title}:</span> <span class="stat_entry_count">{$_stat.count|default:0}</span></a>
{else}
     onclick="window.location='{$jamroom_url}/{$profile_url}/{$murl}'"><span class="stat_entry_title">{$title}:</span> <span class="stat_entry_count">{$_stat.count|default:0}</span></a>
{/if}   
</div>
{/foreach}

Inside the if statement inside the div "stat_entry_box" I can test e.g., {if $_stat.module == "jrForum"}, and get the number of posts/comments there and format them using the same structure as the on.click handler?

I can use the same for jrGroupDiscuss?

Tags