Hello, I have a custom field which is used to add points to each user (sort of like user points) I built a view with User Name and my custom field and sorted by the custom field Desc. I am using Global: View result counter to display user rank and it is working as it is suppose to, but is there anyway to show individual user with their rank using Global: View result counter.
For example:

Rank User Points
1 Ua 50
2 Ub 40
3 Uc 30

I want to pull out the rank of user Ub. I know I can use contextual filters and I'm already doing that but if I get only one result in the view than the rank becomes 1, but the rank should be 2 as per points for user Ub. I hope I stated my problem clear enough. Thank you.

Comments

ff1’s picture

I have a very similar requirement.

I have a view listing teams in a league table. On each team's page, I'd like to say: 'Current league position: X'. So the value X needs to come from the view ranking.

dawehner’s picture

Category: support » feature

Well the handler doesn't support field tokens at the moment but it should be possible to do it in the future.

Let's call it a feature request.

khanz’s picture

Version: 7.x-3.0-rc3 » 7.x-3.x-dev

I too have a similar feature request, would this be implemented in near future by any chance?

dawehner’s picture

You know most people simply don't have a lot of freetime and they priorize to fix bugs for people first.

rickharington’s picture

I might misunderstand the question but if you use the uid argument you will be able to customize your view to pull only the data from the currently logged in user or on the current user page/profile.

ConradFlashback’s picture

Issue summary: View changes

sub, this is also my problem?
Is not possible to simulate a ranking "Current position: X" with a contextual filter?

Acertijo’s picture

hi friends, has anyone got a solution for this?