Quote from: I, Brian on June 01, 2003, 03:00:33 PM
Thanks, Daniel - that's a very much appreciated offer.
Okay, I have managed to implement this and tested it on my forum (You can see it at
www.familyties-tv.com/forum/, so you can see that I have understood you correctly).
First, to switch Topics and Posts on board index, open BoardIndex.php. Search for:
<td class="titlebg" width="6%" align="center"><b>' . $txt[330] . '</b></td>
<td class="titlebg" width="6%" align="center"><b>' . $txt[21] . '</b></td>
Replace that with:
<td class="titlebg" width="6%" align="center"><b>' . $txt[21] . '</b></td>
<td class="titlebg" width="6%" align="center"><b>' . $txt[330] . '</b></td>
Then, later in the same script, search for:
<td class="windowbg" valign="middle" align="center" width="6%">
' . $row_board['numTopics'] . '
</td>
<td class="windowbg" valign="middle" align="center" width="6%">
'. $row_board['numPosts'] . '
</td>
Replace that with:
<td class="windowbg" valign="middle" align="center" width="6%">
'. $row_board['numPosts'] . '
</td>
<td class="windowbg" valign="middle" align="center" width="6%">
' . $row_board['numTopics'] . '
</td>
Then, to switch Replies and Views for each board, open MessageIndex.php. Search for:
<td class="titlebg" bgcolor="' . $color['titlebg'] . '" width="4%" align="center">
<font size="2" class="text1" color="' . $color['titletext'] . '"><b>' . $txt[110] . '</b></font></td>
<td class="titlebg" bgcolor="' . $color['titlebg'] . '" width="4%" align="center">
<font size="2" class="text1" color="' . $color['titletext'] . '"><b>' . $txt[301] . '</b></font></td>
Replace that with:
<td class="titlebg" bgcolor="' . $color['titlebg'] . '" width="4%" align="center">
<font size="2" class="text1" color="' . $color['titletext'] . '"><b>' . $txt[301] . '</b></font>
</td>
<td class="titlebg" bgcolor="' . $color['titlebg'] . '" width="4%" align="center">
<font size="2" class="text1" color="' . $color['titletext'] . '"><b>' . $txt[110] . '</b></font></td>
And finally, search for:
<td class="windowbg" valign="middle" width="4%" align="center" bgcolor="' . $color['windowbg'] . '">
<font size="2">' . $mreplies . '</font></td>
<td class="windowbg" valign="middle" width="4%" align="center" bgcolor="' . $color['windowbg'] . '">
<font size="2">' . $views . '</font></td>
And replace that with:
<td class="windowbg" valign="middle" width="4%" align="center" bgcolor="' . $color['windowbg'] . '">
<font size="2">' . $views . '</font></td>
<td class="windowbg" valign="middle" width="4%" align="center" bgcolor="' . $color['windowbg'] . '">
<font size="2">' . $mreplies . '</font></td>
(I have removed a few indentations/tabs from the code in order to make it look acceptable when posting it here, so just disregard any opening tabs or spaces)
Done! As you can see, it's just a matter of moving around a few lines, so it's not much work at all.
I'd be happy to turn it into a mod if you like, although I'm sure you can handle doing these few changes yourself...