The mod already excists for
1.5.1Rc1B44 (I installed it a few days ago on
yabb.nl), but I have a question about implementing this in combination with the different category icons mod :
I have to do this :
<search for>
// if this is a new category
if ($row_board['ID_CAT'] != $curcat)
{
$curcat=$row_board['ID_CAT'];
echo "<tr> <td colspan=\"5\" class=\"catbg\" height=\"18\">\n";
echo "<a name=\"$row_board[ID_CAT]\"><b>$row_board[catName]</b></a></td>\n</tr>\n";
}
</search for>
<replace>
// if this is a new category
if ($row_board['ID_CAT'] != $curcat)
{
$curcat=$row_board['ID_CAT'];
echo "<tr> <td colspan=\"5\" class=\"catbg\" height=\"18\">\n";
if (($row_board['isCollapsable']) && ($username != 'Guest'))
{
if (!isset($collapseInfo[$row_board['ID_CAT']]))
{
echo '<img src="'.$imagesdir.'/cat_collapse.gif" alt=""><a name="'.$row_board['ID_CAT'].'"> </a><a href="'.$scripturl.'?action=collapsecat;cat='.$row_board['ID_CAT'].'">';
}
else
{
echo '<img src="'.$imagesdir.'/cat_expand.gif" alt=""><a name="'.$row_board['ID_CAT'].'"> </a><a href="'.$scripturl.'?action=expandcat;cat='.$row_board['ID_CAT'].'">';
}
echo '<b>'.$row_board['catName'].'</b></a>';
}
else
{
echo '<a name="'.$row_board['ID_CAT'].'"><b>'.$row_board['catName'].'</b></a>';
}
echo "</td>\n</tr>\n";
}
</replace>
Where there is in BoardIndex.php :
// if this is a new category
if ($row_board['ID_CAT'] != $curcat)
{
$curcat=$row_board['ID_CAT'];
// Begin Diff Cat Icon Mod
if ($row_board[iconon] == "") $row_board[iconon] = "on.gif";
$on = "<img src=\"$imagesdir/$row_board[iconon]\" alt=\"$txt[333]\" border=\"0\">";
if ($row_board[iconoff] == "") $row_board[iconoff] = "off.gif";
$off = "<img src=\"$imagesdir/$row_board[iconoff]\" alt=\"$txt[334]\" border=\"0\">";
if($modSettings['iconsEnable'])
{
echo '<tr>';
if($row_board[iconon] != "on.gif" && $row_board[iconoff] != "off.gif")
{
echo "<td colspan=\"2\" class=\"catbg\" bgcolor=\"$color[catbg]\" height=\"18\"><a name=\"$row_board[ID_CAT]\"><font size=\"2\"><b>$row_board[name]</b> </font></td>\n";
echo "<td nowrap colspan=\"2\" class=\"catbg\" bgcolor=\"$color[catbg]\" height=\"18\"><font size=\"1\">$on $txt[333]</font></td>\n";
echo "<td nowrap class=\"catbg\" bgcolor=\"$color[catbg]\" height=\"18\"><font size=\"1\">$off $txt[334]</font></td>\n";
}
else
{
echo "<td colspan=\"6\" class=\"catbg\" bgcolor=\"$color[catbg]\" height=\"18\"><a name=\"$row_board[ID_CAT]\"><font size=\"2\"><b>$row_board[name]</b></font></td>\n";
}
echo "</tr>\n";
}
else
{
echo "<td colspan=\"6\" class=\"catbg\" bgcolor=\"$color[catbg]\" height=\"18\"><a name=\"$row_board[ID_CAT]\"><font size=\"2\"><b>$row_board[catName]</b></font></td>\n";
}
// End Diff Cat Icon Mod
Is there anybody who can help me out here ?
I already asked this in the German section, but there has been no reply yet