Sorting by Guild Level and then by Class

Requests, feedback, and general discussion about WoWRoster
DO NOT post topics about WoWRoster AddOns here!

Sorting by Guild Level and then by Class

Postby Marticus » Thu Jan 04, 2007 12:35 am

Hello. I just recently upgraded from 1.6.0. Overall, I am extremely happy with what I have seen. Kudos to the team of testers and developers. I have but one issue regarding the sorting mechanism. Before the update, the roster page had each level in its own section as well as sorted by Class within each section. Now, I seem to be able to only sort by Level or by Class, but not both. As it is now, each section is sorted by name. As appearance is everything to the clients, is there an easy way to accomplish this?

Best wishes and happy new year!


Cheers!

Marticus

[Edit for clarity]
Last edited by Marticus on Thu Jan 04, 2007 12:37 am, edited 1 time in total.
Marticus
WR.net Apprentice
WR.net Apprentice
 
Posts: 9
Joined: Tue Jan 02, 2007 7:16 pm

Sorting by Guild Level and then by Class

Postby PleegWat » Thu Jan 04, 2007 2:56 am

I don't think this has ever been a standard feature. You could mod it in by editing the field definitions in index.php
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: Sorting by Guild Level and then by Class

Postby NurMut » Thu Jan 04, 2007 5:21 am

Hey, I think some editing in memberslist.php should fix your Problem.

Code: Select all
/************************
 * Set up the default secondary sorting
 * This is what everything will be sorted by after the first sort specified in the arrays
 * DO NOT leave this blank, at least one sort must be here
************************/
$always_sort '`members`.`level` DESC, `members`.`name` ASC';
 


This indicates how your characters are sortet after looking up the choosed config of maybe level or guild_title. I think you choosed Level in your Rosterconfig.
You'll only need to add another sortindicator to that line in memberslist.php

Code: Select all
/************************
 * Set up the default secondary sorting
 * This is what everything will be sorted by after the first sort specified in the arrays
 * DO NOT leave this blank, at least one sort must be here
************************/
$always_sort '`members`.`class` ASC, `members`.`level` DESC, `members`.`name` ASC';
 


This one should do what you would like it to look like :D

Greetings NurMut
Image
User avatar
NurMut
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Wed Jul 12, 2006 7:15 pm
Location: Germany

Sorting by Guild Level and then by Class

Postby Marticus » Fri Jan 05, 2007 12:22 am

Thank you very much. I really appreciate it :) the sql code I understand, I'll play with it.
Marticus
WR.net Apprentice
WR.net Apprentice
 
Posts: 9
Joined: Tue Jan 02, 2007 7:16 pm


Return to General Support & Feedback

Who is online

Users browsing this forum: No registered users and 1 guest

cron