Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: trekkie2444 - elokuu 09, 2013, 05:19:14 AP

Otsikko: Removing the posts column on the board index?
Kirjoitti: trekkie2444 - elokuu 09, 2013, 05:19:14 AP
Where it says "posts" and "topics" I was wondering if there was a way to remove the column that says posts and has the number? It probably wouldn't take too much code modification to do so.
Otsikko: Re: Removing the posts column on the board index?
Kirjoitti: kat - elokuu 09, 2013, 05:46:15 AP
It says "Posts" and "Topics", in a few places.

Where do you mean, exactly?

If you mean where I THINK you mean, you'll need to edit MessageIndex.template.php

Now, before I post the actual edit, I have to stress that I HAVEN'T CHECKED THIS!!! So, keep a copy of the original file, as a backup, in case I've goofed, OK?

Find this block of 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>
</td>
<td class="lastpost">';


and remove it. :)