News:

Join the Facebook Fan Page.

Main Menu

Post indicator icon's

Started by lazylivin, October 13, 2010, 10:17:09 PM

Previous topic - Next topic

lazylivin

Does anyone know where I could find the code to remove the new post indicator icon's to the left of each board? Perhaps the theme index.css?

Here is a picture of what I would like to hide.

Many Thanks


Oldiesmann

Themes/default/BoardIndex.template.php

Find
                echo '
                <tr id="board_', $board['id'], '" class="windowbg2">
                    <td class="icon windowbg"', !empty($board['children']) ? ' rowspan="2"' : '', '>
                        <a href="', ($board['is_redirect'] || $context['user']['is_guest'] ? $board['href'] : $scripturl . '?action=unread;board=' . $board['id'] . '.0;children'), '">';

                // If the board or children is new, show an indicator.
                if ($board['new'] || $board['children_new'])
                    echo '
                            <img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'on', $board['new'] ? '' : '2', '.png" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" />';
                // Is it a redirection board?
                elseif ($board['is_redirect'])
                    echo '
                            <img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
                // No new posts at all! The agony!!
                else
                    echo '
                            <img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'off.png" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';

                echo '
                        </a>
                    </td>


Replace
                echo '
                <tr id="board_', $board['id'], '" class="windowbg2">


If you want to do the same for child boards, apply the same code changes to MessageIndex.template.php.
Michael Eshom
Christian Metal Fans

lazylivin

Thank you very much! Really appreciate the support and quick response.

Advertisement: