Social Activity - Point in the Configuration

Dinesh M, modified 7 Years ago. Junior Member Posts: 43 Join Date: 5/27/15 Recent Posts
Dear All,

We are working on the Message Board & we want to know the details about the points that can enabled in the Configuration --> Social Activity.
We have more confusion after enabling the Points. Is there any document / pointer related to this was available over the Internet.
thumbnail
Andrew Jardine, modified 7 Years ago. Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts
Hi Dinesh,

What is it you are looking for exactly? How to set the ranks and thresholds? How a user gets points? I did some work with the social API about a year ago so I am fairly familiar with how it all comes together -- sadly at the time I didn't find much in the way of documentation and in the end dedicated time to just reading the source and understanding the flow. If you have a more specific question though, I might be able to help.
Dinesh M, modified 7 Years ago. Junior Member Posts: 43 Join Date: 5/27/15 Recent Posts
hi andrew,

Yes we are setting up the points system & we wanted to view in the User Statistics portlet (but this portlet also show only if the message board has active users). Can we get some pointers how have look deep into detail.
thumbnail
Andrew Jardine, modified 7 Years ago. Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts
Hi Dinesh.,

Sorry, but I'm not really understanding your question. Can you try to give me some detailed steps of what you have done so that I can reproduce it on my side -- and then tell me once more what is missing that you want to see?
Dinesh M, modified 7 Years ago. Junior Member Posts: 43 Join Date: 5/27/15 Recent Posts
hi andrew

After enabling the Social Activity points, we are able see the points through the User Statistics Portlet available.
These points are getting increased & rank for the user was shown in the User Statistics Portlet.
Let us say we are not using the Site for a month (i.e., Not posting any Message Thread) the rank disappears & the User Statistics Portlet becomes blank. Is this the behavior of Portlet & also we don't option select the period to show case the data.
thumbnail
Andrew Jardine, modified 7 Years ago. Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts
Hi Dinesh,

Ok, now I understand -- I believe there is a setting that let's you specify the retention period or something like that and it defaults to 30 days. I am having a hard time tracking it down right now though -- if I find it I will let you know. But yes, there is a setting, or there used to be at least.
thumbnail
Andrew Jardine, modified 7 Years ago. Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts
Hmm -- I think I know how the records are pulled. If you look at the liferay portal source

/modules/apps/collaboration/social/social-user-statistics-web/src/main/resources/META-INF/resources/user_display.jsp

you will find the following code in the scriptlet --

	<%
	for (SocialActivityCounter activityCounter : activityCounters.values()) {
		if (!activityCounter.isActivePeriod(SocialActivityCounterConstants.PERIOD_LENGTH_SYSTEM)) {
			activityCounter.setCurrentValue(0);
		}
	%>


the constant there is the secret. Instead of using SocialActivityCounterConstants.PERIOD_LENGTH_SYSTEM you want it to use SocialActivityCounterConstants.PERIOD_LENGTH_INFINITE. I can't find anything in the UI for changing this, but there is this (default) portal.properties setting

##
## Social Activity
##

    #
    # Set the length of the counter period for social activities. The value is
    # in a number of days or the special keyword "month" to specify a month.
    #
    social.activity.counter.period.length=month


Can you try setting that property in your portal-ext with a value of -1?
Dinesh M, modified 7 Years ago. Junior Member Posts: 43 Join Date: 5/27/15 Recent Posts

Hi Andrew 

We tried  setting the property as -1 but we are not able see any change in the statistics output.

Thanks for your reply 

 

 

thumbnail
Andrew Jardine, modified 7 Years ago. Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts

Hmm -- ok , then the next thing I would try is something really big like 99999. Can you try that and report back?