Help - Search - Members - Calendar
Full Version: removing columns from listmembers
forums.eqdkp.com > EQdkp Support > Template & Style Support
Ravenwing
Hello,

I'm using EQdkp 1.3.1 and I wanted to remove some columns from the DKP page, thinking a simple cut from the listmembers.html file would sort that out...for some reason I can't figure out why it didn't and can't find on here.

So if someone has an idea as to why that did not work (I could have sworn that's how I'd done it in older versions of EQDKP).

RW.
Mulleboy
Hello Ravenwing!
It's actually quite easy to remove some "unessecery" colums like the "Last Raid" and such.
I used the help of my old Dreamweaver MX to make my site http://www.mulleboy.se/arg/eqdkp a lot smaller and with less columns.

Simply open the listmembers.html file in the /template/default folder inside your EQDKP folder on your computer.
Alter it in the forms of the colums, remove some and change the lenght of the columns, whatever you want.

This is how my code looks on my listmembers.html file:
CODE
<table width="500" border="0" cellspacing="0" cellpadding="2">
<tr>
<th align="center" width="20" nowrap="nowrap">&nbsp;</th>
<th align="left" width="35" nowrap="nowrap">&nbsp;</th>
<th align="left" width="100%"><a href="{U_LIST_MEMBERS}o={O_NAME}{URI_ADDON}">{L_NAME}</a></th>
<th align="left" width="100"><a href="{U_LIST_MEMBERS}o={O_RANK}{URI_ADDON}">{L_RANK}</a></th>
<th align="left" width="40" nowrap="nowrap"><a href="{U_LIST_MEMBERS}o={O_LEVEL}{URI_ADDON}">{L_LEVEL}</a></th>
<th align="left" width="100" nowrap="nowrap"><a href="{U_LIST_MEMBERS}o={O_CLASS}{URI_ADDON}">{L_CLASS}</a></th>
<th align="left" width="80" nowrap="nowrap"><a href="{U_LIST_MEMBERS}o={O_CURRENT}{URI_ADDON}">{L_CURRENT}</a></th>
<th align="left" width="70" nowrap="nowrap"><a href="{U_LIST_MEMBERS}o={O_LASTRAID}{URI_ADDON}">{L_LASTRAID}</a></th>


Notice the words in the end of every line. "L_CURRENT", "L_CLASS". Those indicates what shows in what columns.
Remove the lines of what name you wish and that column will disappear. Of course you do not need Dreamweaver or any other software
for that, simply use the notepad for such an issue. Dreamweaver still gives a good visiual of the site, so i'd recommend going with that.

If you got any further questions, please dont hesitate to ask.
// Mulleboy of DARKSORROW EU WOW
Ravenwing
Hi mulleboy thanks for your reply, thats exactly what I thought as well before i tried this...and I did try that. However it didnt work the columns were still there after I had removed them sad.gif I thought it might be something to do with this EQDKP version differ from previous ones as I can't think of anything else that would not make it work. Got an idea?

edit: managed to sort it, not only did I have to remove the {L_....} stuff I had to edit the entire page where there was more code connected to the {L_....} tags.

RW. (Draenor EU)
dracon32
To help clarify a little, there are two sets of code for each column, lets take Level for example. There is the row across the top that displays, Name, Rank, Class, etc, lets call this the Title Row.

Mulleboy's example shows how to remove the name out of the Title Row, but the actual displayed data still remains (in-turn making your column data off). Look at the next table in the listmembers.html, here is where you would remove the line to not display the actual (corresponding) data.

In the first table (or block of code) in listmembers.html, we could comment out or delete the line:
CODE
<th align="left" width="40" nowrap="nowrap"><a href="{U_LIST_MEMBERS}o={O_LEVEL}{URI_ADDON}">{L_LEVEL}</a></th>

Below that, in the next table (under where it says <!-- BEGIN members_row -->) you would need to comment out or delete the corresponding data line, which would be:
CODE
<td width="40" nowrap="nowrap">{members_row.LEVEL}</td>

And ta, da! No more Level column! Keep in mind you want to edit the file listmembers.HTML, NOT the .php file!! You will find this in your ~/eqdkp/templates/<templatename>/ directory (e.g. /home/example/mydkpsite.com/eqdkp/templates/default).
Example: http://sob.dracon32.net/sobdkp/listmembers.php
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.