Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Social Activity - Point in the Configuration
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.
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.
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.
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.
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.
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.
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?
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?
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.
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.
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.
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.
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 --
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
Can you try setting that property in your portal-ext with a value of -1?
/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?
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
Hmm -- ok , then the next thing I would try is something really big like 99999. Can you try that and report back?
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™