Customizing SMF > SMF Coding Discussion
How to remove the words "posts" and "topics" from child board indexes
Groovystar:
This is what I want to remove:
http://i251.photobucket.com/albums/gg308/wynnyelle/lose-these-words.jpg
It's already up top that they are the numbers of posts and threads, the words down there with the numbers on every single one are redundant, so I want to take those out. Would anyone know how?
Thank you!
Krash.:
That looks like a custom theme, so don't know if this will help, but in Curve the child board post/topic info is in MessageIndex.template.php, here -
--- Code: ---
// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="stats windowbg">
<p>', comma_format($board['posts']), ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], ' <br />
', $board['is_redirect'] ? '' : comma_format($board['topics']) . ' ' . $txt['board_topics'], '
</p>
--- End code ---
Groovystar:
Thanks; would removing any of that cause errors, though? I went through major errors when trying to do similar cosmetic cleanup work on threads and posts last year.
Marcus Forsberg:
As long as you remove them correctly without messing up the PHP syntax, you won't run in to any errors at all. It's just a simple edit.
Krash.:
If you just remove the $txt variables, it shouldn't affect anything else. You can even change a letter - $txt['board_topicx'] - and the text will disappear without changing the formatting.
Navigation
[0] Message Index
[#] Next page
Go to full version