Simple Machines Community Forum

SMF Support => Language Specific Support => EspaƱol (Spanish) => Topic started by: lean on March 08, 2010, 05:45:09 PM

Title: Eliminar los subforos del boardindex
Post by: lean on March 08, 2010, 05:45:09 PM
Hola gente, esa es la modificacion que quiero ver como hacerla. Eliminar los subforos que se ven en el boardindex.template.php

Obviamente que los subforos siguen estando pero no se ven en el indice de los foros.

Alguna ayuda?
Title: Re: Eliminar los subforos del boardindex
Post by: enik on March 08, 2010, 05:59:31 PM
Si no me equivoco tendrias que eliminar esta seccion en el boardindex.template:


foreach ($category['boards'] as $board)
            {
                echo '
                <tr 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'], '/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'], '/redirect.png" alt="*" title="*" />';
                // No new posts at all! The agony!!
                else
                    echo '
                            <img src="', $settings['images_url'], '/', $context['theme_variant'], '/off.png" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';

                echo '
                        </a>
                    </td>
                    <td class="info">
                        <a class="subject" href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a>';


Esperemos funcione recuerda hacer respaldo.

ciao.
Title: Re: Eliminar los subforos del boardindex
Post by: lean on March 08, 2010, 07:30:48 PM
solucionado!