How to add BH in Stats List ?

Posts from previous Beta sessions

How to add BH in Stats List ?

Postby KaguraS » Tue Jun 03, 2008 12:51 am

Is there any possibility that in the Stats List where you see Armor, HP, Int, Stam, etc of each member, add the Bonus Healing or Spell Dmg?
User avatar
KaguraS
WR.net Apprentice
WR.net Apprentice
 
Posts: 40
Joined: Wed Feb 20, 2008 8:44 am

How to add BH in Stats List ?

Postby zanix » Tue Jun 03, 2008 3:01 am

Yes
Edit addons/memberslist/guild/statslist.php

Edit the main SQL statement to include the db fields you need

Add $FIELD arrays as needed for the new data
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

How to add BH in Stats List ?

Postby PleegWat » Tue Jun 03, 2008 3:42 am

There should be some documentation on the format in the docs dir of the memberslist addon. You can also easily create new pages, or use the lib in another addon (see keys for an example of that).
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

How to add BH in Stats List ?

Postby KaguraS » Tue Jun 03, 2008 4:48 am

I made it :D ty ty zanix n pleeg ^^ , didnt notice the doc :P
User avatar
KaguraS
WR.net Apprentice
WR.net Apprentice
 
Posts: 40
Joined: Wed Feb 20, 2008 8:44 am

Re: How to add BH in Stats List ?

Postby tuigii » Wed Jun 11, 2008 8:18 am

Hey, didn't know that it was that simple to realize that one :shock:
Open statslist.php.
Insert on line on line 68:
Code: Select all
    '`players`.`spell_healing`, '

Insert on line 214:
Code: Select all
$FIELD['spell_healing'] = array(
    
'lang_field' => 'spell_healing',
    
'order' => array( '`spell_healing` DESC' ),
    
'order_d' => array( '`spell_healing` ASC' ),
    
'js_type' => 'ts_number',
//    'display' => $addon['config']['stats_heal'], // Now CP setting for this, so...
    
'display' => 3// we hard-code for now
); 


and you up and running......

Is the number being showed really important ? Is this the famous "Heal Bonus" ? (I'm a warrior, I don't give a f*ck about their specs, I just want them to heal..... :D :lol:

Edit : PS : I really love the way how the coding is done in this WowRoster project, some guys have really thought about this all - it's just great.
Last edited by tuigii on Wed Jun 11, 2008 8:25 am, edited 3 times in total.
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

How to add BH in Stats List ?

Postby PleegWat » Wed Jun 11, 2008 3:58 pm

The fields system isn't actually new. It was introduced by zanix (i think) in 1.6.0. It's had some updates for 2.0, including splitting it off to a class, and adding the javascript sort/filter abilities. Stuff like adding fields and such was already possible in 1.6.x and 1.7.x.

The only reason altmonitor used a copy was because it needed to render alts, although I think I worked some changes into 1.7.0 to keep the changeset for altmonitor for that file as small as possible.
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


Return to Archived

Who is online

Users browsing this forum: No registered users and 0 guests

cron