Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: isopharius commentedComment #2
Richard Blackborder CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: Richard Blackborder commentedViews support for badge weight is now in the dev version and will appear in the next main release (D6 only).