Closed (fixed)
Project:
User Badges
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Aug 2009 at 05:26 UTC
Updated:
21 Sep 2009 at 21:10 UTC
I am looking for a simple way to sort a user listing view by each badge weight*, right now i must put a number in front of the badge name to order them correctly
*an option to change a badge id(bid) would also work
I need this for a clan roster with ranks, if I change a user's badge/rank the view should update properly
here's an example i'm working on: http://tactiqc.com/roster
Comments
Comment #1
isopharius commentedComment #2
Richard Blackborder commentedMaybe you should use the profile module to assign the ranks, and use the rules module to assign the appropriate badge whenever the user's profile is updated (does profile allow you to set fields the user themselves cannot change?). Then you can order the view based on the rank in the profile field.
That's my suggestion for your situation. I'll probably add badge weight as a sort option, too. It can't hurt.
Comment #3
isopharius commentedok sounds like a fine solution, I must give rules a try asap
thank you for a great module and support
Comment #4
Richard Blackborder commentedRules is a fantastic module in my opinion. After CCK and views, it seems to be one of those "fixes everything" modules.
Comment #5
Richard Blackborder commentedViews support for badge weight is now in the dev version and will appear in the next main release (D6 only).