Customizing SMF > SMF Coding Discussion
How to remove the words "posts" and "topics" from child board indexes
Krash.:
Attach your MessageIndex.template.php.
Groovystar:
Thanks so much. Here it is:
Krash.:
Ok, no way to test this but .....
Find this:
--- Code: ---
<td class="windowbg2b" valign="middle" align="center" style="width: 8ex;">
<p>', comma_format($board['posts']), ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], ' <br />
</p>
</td>
<td class="windowbg2b" valign="middle" align="center" style="width: 8ex;">
', $board['is_redirect'] ? '' : comma_format($board['topics']) . ' ' . $txt['board_topics'], '
</p>
</td>
--- End code ---
Change to this:
--- Code: ---
<td class="windowbg2b" valign="middle" align="center" style="width: 8ex;">
<p>', comma_format($board['posts']), ' ', $board['is_redirect'] ? $txt['redirects'] : ' ' , ' <br />
</p>
</td>
<td class="windowbg2b" valign="middle" align="center" style="width: 8ex;">
', $board['is_redirect'] ? '' : comma_format($board['topics']) . ' ' . ' ' , '
</p>
</td>
--- End code ---
Groovystar:
I now have a test site environment. I tried this and it worked ! Thank you!
Navigation
[0] Message Index
[*] Previous page
Go to full version