1

We added user points for provide points to user, when creating node, comments and likes.

We created view for display user points list (user name, Total points, and ranks). It working fine.

But we need to display the above based on the certain period.

Thanks in advance. Provide any idea...

example
--------
1) From Jan-2013 to March-2013
------------------------------------
Rank   - Points  -  Name
-------------------------------------
1      - 50      -  user2
2      - 48      -  user1
3      - 40      -  user3
-------------------------------------

2) From April-2013 to June-2013
------------------------------------
Rank   - Points  -  Name
-------------------------------------
1      - 55      -  user3
2      - 54      -  user2
3      - 40      -  user1
-------------------------------------

3) From July-2013 to September-2013
------------------------------------
Rank   - Points  -  Name
-------------------------------------
1      - 55      -  user2
2      - 54      -  user3
3      - 40      -  user1
-------------------------------------

1 Answer 1

0
  • In the contextual filter of the view add Userpoints Transactions: User
  • In views fields add Userpoints Transactions: Timestamp. I see that you do not want to display date in views, so mark it as Exclude from display.
  • In grouping setting of your view select Userpoints Transactions: Timestamp
5
  • sorry subhojit777. I not getting the solution. user name repeatedly coming in same time period Jan 30, 2013 at 10:37
  • What is your view format? Jan 30, 2013 at 11:00
  • View format is User Jan 31, 2013 at 5:57
  • I am not asking the view type. I asked the view format (table, grid, HTML list, etc.). And its good that you mentioned the view type, I am not sure whether you will get the contextual filter that I mentioned in answer in a view of user type. Or you can search that in relationships. Or try creating the view with userpoints type. Jan 31, 2013 at 6:12
  • Thanks friends.. I wrote raw php code this functionality. Feb 18, 2013 at 7:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.