Last visit was: less than a minute ago

It is currently 20 Jun 2013, 22:54

Preview of the next bbDKP Release.

bbdkp discussion that doesn't fit in another category.
Twizted
Lord Baron
User avatar
Posts: 146
Joined: 08 Dec 2008, 02:15
Location: Eau Claire, WI

Re: Preview of the next bbDKP Release.

Postby Twizted » 11 Dec 2008, 02:48

ohhhhh you dirty tease!!! lol... nice work guys...

Hey I was wondering, Is it possible to set the default view for the roster page to Rank?
If not maybe that could be "hacked" into this release....
Top

Malfate
Former Team member
User avatar
Posts: 496
Joined: 23 Dec 2007, 23:19
Location: Texas

Re: Preview of the next bbDKP Release.

Postby Malfate » 11 Dec 2008, 03:39

Quick hack, you can do this with any version of bbDKP that has Roster installed. (Old and the new one about to be released)
in roster.php
look for
Code: Select all
$sort_order = array(
    0 => array('member_name', 'member_name desc'),
    1 => array('member_class', 'member_class desc'),
    2 => array('member_rank', 'member_rank desc'),
    3 => array('member_level', 'member_level  desc')
);

So in your case it would become
Code: Select all
$sort_order = array(
    0 => array('member_rank', 'member_rank desc'),
    1 => array('member_name', 'member_name desc'),
    2 => array('member_class', 'member_class desc'),
    3 => array('member_level', 'member_level  desc')
);


Then you would need to change styles/prosilver/template/dkp/roster.html to reflect this new order. (so when the click the links to sort it will sort the right item).
Code: Select all
    <th align="center">
    <a href="{U_LIST_MEMBERS0}">{L_NAME}</a> -
    <a href="{U_LIST_MEMBERS1}">{L_CLASS}</a> -
    <a href="{U_LIST_MEMBERS2}">{L_RANK}</a> -
    <a href="{U_LIST_MEMBERS3}">{L_LVL}</a>
    </th>


So in your example it would become

Code: Select all
    <th align="center">
    <a href="{U_LIST_MEMBERS0}">{L_RANK}</a> -
    <a href="{U_LIST_MEMBERS1}">{L_NAME}</a> -
    <a href="{U_LIST_MEMBERS2}">{L_CLASS}</a> -
    <a href="{U_LIST_MEMBERS3}">{L_LVL}</a>
    </th>
If you like what we have done, keep the project alive and feel free to donate Via Paypal: Here
Please Use the Search Button and look for your problems on our boards before posting.
"The bigotry of the nonbeliever is for me nearly as funny as the bigotry of the believer."
-Albert Einstein
Top

Twizted
Lord Baron
User avatar
Posts: 146
Joined: 08 Dec 2008, 02:15
Location: Eau Claire, WI

Re: Preview of the next bbDKP Release.

Postby Twizted » 11 Dec 2008, 10:38

That was amazingly simple.. I am dumb for not having looked in the main roster php script :oops:

Thanks...
Top

Ocnarian
Craftsperson
Posts: 38
Joined: 19 Nov 2008, 18:19

Re: Preview of the next bbDKP Release.

Postby Ocnarian » 13 Dec 2008, 23:54

Any Updates? Would really like to get it installed
Top

Kapli
Retired Developer
Posts: 213
Joined: 28 Dec 2007, 18:22
Location: Norway

Re: Preview of the next bbDKP Release.

Postby Kapli » 14 Dec 2008, 00:15

It's basically done, release probably tomorrow.
Top

Twizted
Lord Baron
User avatar
Posts: 146
Joined: 08 Dec 2008, 02:15
Location: Eau Claire, WI

Re: Preview of the next bbDKP Release.

Postby Twizted » 14 Dec 2008, 00:25

W00t!!!! Thank you for the update!@!!
Top

Previous

Return to bbdkp discussion

Who is online

Users browsing this forum: Internet Archive [Bot] and 0 guests

  • Advertisement