Sign Up! Login: Password: New User? Forgot? Support
Top Mods!
Wowhead Search
by sonofsamedi
Digital Clock
by Wolfar15
Admin Forums
Welcome to the GuildPortal Help Community! These forums are for admin-to-admin help.
Available Forums
Forums : Voodoo Tech and Scripter's Den of Scriptniquity > CSS Class Additions - WoW Roster
Aaron Lewis (Blue Collar) 9/17/2010 12:16 PM EST : CSS Class Additions - WoW Roster
GuildPortal Dev
Aaron Lewis
Posts: 1979
Zomgawsh Poster

I'm working on a support ticket right now having to do with the display of some data on the add-on populated roster for WoW, and I noticed some custom CSS to change the display of one of the header cells for the table that is rendered. It was using selectors based upon the position of the header cell in the sequence, and since I'm usually refactoring when I go through existing code, I went ahead and added the following classes, to make customizations with that roster easier (they will go live with tonight's code push):

Table Header (table > thead > tr > th's):

.wowRNameHeader - Header cell, Character Name
.wowRLevelHeader - Header cell, Level
.wowRClassHeader - Header cell, Class
.wowRRankHeader - Header cell, Rank
.wowRNotesHeader - Header cell, Notes
.wowRDkpHeader - Header cell, DKP

Note that the table itself has an ID of tblAutoRoster, so it can be selected in CSS (or jQuery) using #tblAutoRoster.

Row for each toon has a class of either NormGridRow or AltGridRow, and the following 7 cells (table > tbody > tr > td's):

.wowRIcon - Icon for their class, and a span before it to indent
.wowRToon - Character name/link to view profile, listing of any site medals earned, will open 3D character model viewer and other info when clicked (if the service is available at the moment)
.wowRLevel - Level of the toon
.wowRClass - Toon's class
.wowRNotes - Public notes
.wowRDkp - Current DKP/Raid points the member has

This change shouldn't break any custom CSS already out there for the WoW roster, just make it easier to do selections that will work if stuff does need to be added later, say once Cataclysm is released.
Aaron Lewis,

Admins Online
There are   members online.
So-and-so has logged on!