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

isopharius’s picture

Version: 6.x-1.5 » 6.x-1.x-dev
Richard Blackborder’s picture

Maybe 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.

isopharius’s picture

ok sounds like a fine solution, I must give rules a try asap

thank you for a great module and support

Richard Blackborder’s picture

Rules is a fantastic module in my opinion. After CCK and views, it seems to be one of those "fixes everything" modules.

Richard Blackborder’s picture

Status: Active » Fixed

Views support for badge weight is now in the dev version and will appear in the next main release (D6 only).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.