« Zurück zu Portlets

Top Users portlet

The Top Users portlet shows the social equity scores and ranks of users within a community. The ranking is competition style, so don't be surprised to see a ranking such as 1,2,2,4.

The ranks are calculated on a daily basis, but the scores are real time, so there can be some discrepancies. The ranking is done by adding the contribution and participation scores, so it is based on personal equity.

The portlet only shows users who has a rank greater than zero, which means that a user will not be shown in the portlet on the first day he/she gets the first equity score.

1 Anhang
16098 Angesehen
Durchschnitt (2 Stimmen)
Die durchschnittliche Bewertung ist 4.0 von max. 5 Sternen.
Antworten im Thread Autor Datum
I am desperately trying to give users rankings... Puj Z 2. Dezember 2010 14:04
Hi i have some user in top list ..... how can... Kristian Umek 2. Juni 2011 07:53

I am desperately trying to give users rankings according to their social equity. For this, I used this method to get the scores in my jsp:
<%@ page import="com.liferay.portlet.social.service.SocialEquityUserLocalServiceUtil" %>

But it throws NullPointerException at this line when trying to use the dynamic query to get the projectionList:

DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass( SocialEquityUser.class);

The Exception:

15:03:35,406 ERROR [jsp:154] java.lang.NullPointerException
at org.hibernate.criterion.DetachedCriteria.forClass(DetachedCriteria.java:88)
at com.liferay.portal.dao.orm.hibernate.DynamicQueryFactoryImpl.forClass(DynamicQue­ryFactoryImpl.java:35)
at com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil.forClass(DynamicQueryF­actoryUtil.java:23)
at com.liferay.portlet.social.service.impl.SocialEquityUserLocalServiceImpl.getEqui­tyValue(SocialEquityUserLocal

Am I missing anything? Should I set something somewhere beforehand?
The socialEquityLog is active and the top user portlet shows my user with c-score 10 and p-score 5 already (I checked socialEquityLog table and there are two actions added for this user too).

Is there any other way to request the c-score and p-score of a specific user?
Gepostet am 02.12.10 14:04.

i have some user in top list ..... how can remove (reset a rank) user from top users list ???

I delete a user which was in top list ... and now have a blank photo with no data in list ... how can delete this blank space in top users list ?????


Gepostet am 02.06.11 07:53.