<td class="boardindex_board_stats">
<center>
<small>
', comma_format($board['posts']), ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], ' <br />
', $board['is_redirect'] ? '' : comma_format($board['topics']) . ' ' . $txt['board_topics'], '
</small>
</center>
</td>
Alright let me break the above code down for you after I formated it.(the above is not the solution). It is also hard to tell apart the double single quotes(') from a normal quote(").
This is the number of posts or if it is a redirect then this is the number of redirects:
', comma_format($board['posts']), '
This is saying if board is redirect then say "Redirects" after the number, OTHERWISE say "Posts".
', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], '
Now this statement is a bit tricky especially on these forums because double single quotes '' and quotes " look the same but... This is saying if the board is a redirect then output nothing because the number of redirects and text was already outputted in the above piece of code and redirects doesnt have 2 lines of stuff unlike posts and topics. So if it isnt a redirect then it outputs the number of topics along with the text "Topics".
', $board['is_redirect'] ? '' : comma_format($board['topics']) . ' ' . $txt['board_topics'], '
To break the above piece of code down a little further... The following would output for example "17 Topics". Notice it is joined by "."
comma_format($board['topics']) :: Number of topics
' ' :: Its a space
$txt['board_topics'] :: "Topics"
comma_format($board['topics']) . ' ' . $txt['board_topics']
Soooooooo.. What you need to do is use the same concept of the conditional statment(if)
', $board['is_redirect'] ? 'is redirect' : 'normal' ,'
Here is the fixed code that should work but it is untested.
ALSO, try writing the code yourself before opening the spoiler. Just use it to check your work.[spoiler]
<td class="boardindex_board_stats">
<center>
<small>
', $board['is_redirect'] ? '' : comma_format($board['posts']) . ' ' . $txt['posts'] ,' <br />
', $board['is_redirect'] ? '' : comma_format($board['topics']) . ' ' . $txt['board_topics'] ,'
</small>
</center>
</td>
Hope ya got it right
[/spoiler]