|
Ok,
I didn't get any help on the site so I decided to look into it today (finally had some free time).
You can see the result at eq2dream.com/eqdkp (certain classes not showing because we don't have those classes on raids, hence being hidden).
The solution boiled downed to editing two files, maybe not the cleanest solution but it was a quick fix.
First file was eqdkp/pluskernel/include/dkplus.class.php, look for the following code and modify it:
global $eqdkp, $db, $tpl, $SID, $conf_plus, $htmlPlus, $filter, $dkpplus, $html, $pdc;
to
global $eqdkp, $db, $tpl, $SID, $conf_plus, $htmlPlus, $filter, $dkpplus, $html, $pdc, $columncountforme;
====================================================
// create the header row $tpl->assign_block_vars('classheader_row', array( 'ICON' => get_ClassIcon($class_row['class_id']), 'ROW_CLASS' => $eqdkp->switch_row_class(), 'NAME_ENG' => get_classColorChecked($class_row['class_name']), 'NAME' => $class_row['class_name'], 'PERCENT' => 100/$clas_count, 'ROW' =>$eqdkp->switch_row_class(), )); $j++;
to
$columncountforme++; if($columncountforme < 13) { // create the header row $tpl->assign_block_vars('classheader_row', array( 'ICON' => get_ClassIcon($class_row['class_id']), 'ROW_CLASS' => $eqdkp->switch_row_class(), 'NAME_ENG' => get_classColorChecked($class_row['class_name']), 'NAME' => $class_row['class_name'], 'PERCENT' => 100/$clas_count, 'ROW' =>$eqdkp->switch_row_class(), )); $j++; }else { // create the header row $tpl->assign_block_vars('classheader_row_two', array( 'ICON' => get_ClassIcon($class_row['class_id']), 'ROW_CLASS' => $eqdkp->switch_row_class(), 'NAME_ENG' => get_classColorChecked($class_row['class_name']), 'NAME' => $class_row['class_name'], 'PERCENT' => 100/$clas_count, 'ROW' =>$eqdkp->switch_row_class(), )); $j++; }
=========================================================
}else { $tpl->assign_block_vars('classheader_row.classlist_row', array( 'NAME' => $row['rank_prefix'] . (( $row['member_status'] == '0' ) ? '<i>' . get_coloredLinkedName($row['member_name']) . '</i>' : get_coloredLinkedName($row['member_name'])) . $row['rank_suffix'], 'CURRENT' => runden($row['member_current']), 'C_CURRENT' => color_item(runden($row['member_current'])), 'U_VIEW_MEMBER' => 'viewmember.php' . $SID . '&' . URI_NAME . '='.$row['member_name'])); $membercount++; }
to
}else if($columncountforme < 13) { $tpl->assign_block_vars('classheader_row.classlist_row', array( 'NAME' => $row['rank_prefix'] . (( $row['member_status'] == '0' ) ? '<i>' . get_coloredLinkedName($row['member_name']) . '</i>' : get_coloredLinkedName($row['member_name'])) . $row['rank_suffix'], 'CURRENT' => runden($row['member_current']), 'C_CURRENT' => color_item(runden($row['member_current'])), 'U_VIEW_MEMBER' => 'viewmember.php' . $SID . '&' . URI_NAME . '='.$row['member_name'])); $membercount++; }else { $tpl->assign_block_vars('classheader_row_two.classlist_row', array( 'NAME' => $row['rank_prefix'] . (( $row['member_status'] == '0' ) ? '<i>' . get_coloredLinkedName($row['member_name']) . '</i>' : get_coloredLinkedName($row['member_name'])) . $row['rank_suffix'], 'CURRENT' => runden($row['member_current']), 'C_CURRENT' => color_item(runden($row['member_current'])), 'U_VIEW_MEMBER' => 'viewmember.php' . $SID . '&' . URI_NAME . '='.$row['member_name'])); $membercount++; }
second file is eqdkp/templates/default/listmembers_leaderboard.html
look for
<!-- BEGIN classheader_row --> <td align="center" nowrap="nowrap" valign="top" class="{classheader_row.ROW_CLASS}"> <table width="100%" class="borderless" border="0" cellspacing="0" cellpadding="2"> <tr> <th colspan="2"><a href='listmembers.php?s=&filter={classheader_row.NAME}' class="{classheader_row.NAME_ENG}" >{classheader_row.ICON} {classheader_row.NAME} </a></th> </tr> <!-- BEGIN classlist_row --> <tr onmouseover="this.className='rowHover';" onmouseout="this.className='{classheader_row.classlist_row.NAME_ENG}';"> <td align="left"><a href="{classlist_row.U_VIEW_MEMBER}">{classheader_row.classlist_row.NAME}</a></td> <td class="{classheader_row.classlist_row.C_CURRENT}" align="right">{classheader_row.classlist_row.CURRENT}</td> </tr> <!-- END classlist_row --> </table> </td> <!-- END classheader_row --> </tr>
and add after it
<tr> <!-- BEGIN classheader_row_two --> <td align="center" nowrap="nowrap" valign="top" class="{classheader_row_two.ROW_CLASS}"> <table width="100%" class="borderless" border="0" cellspacing="0" cellpadding="2"> <tr> <th colspan="2"><a href='listmembers.php?s=&filter={classheader_row_two.NAME}' class="{classheader_row_two.NAME_ENG}" >{classheader_row_two.ICON} {classheader_row_two.NAME} </a></th> </tr> <!-- BEGIN classlist_row --> <tr onmouseover="this.className='rowHover';" onmouseout="this.className='{classheader_row_two.classlist_row.NAME_ENG}';"> <td align="left"><a href="{classlist_row.U_VIEW_MEMBER}">{classheader_row_two.classlist_row.NAME}</a></td> <td class="{classheader_row_two.classlist_row.C_CURRENT}" align="right">{classheader_row_two.classlist_row.CURRENT}</td> </tr> <!-- END classlist_row --> </table> </td> <!-- END classheader_row_two --> </tr>
|