Ajutor Forum SMF


manelarul


Salut ! As vrea sa scot si eu acea " sectiune " , adica sa nu o mai afiseze pe pagina principala, nu sa o scot de tot..si nu gasesc unde pot face asta. Ma poate ajuta cineva ?
bogdanar
Poti sa setezi cine vrei sa vada sau sa aiba acces la sectiunea respectiva din Admin, boards, click pe "modify" din dreptul topicul pe care vrei sa-l modifici si de la "Allowed Groups" selectezi cine vrei sa vada topicul respectiv, userii neinregistrati, cei inregistrati, adminii, userii in functie de cate reply-uri au, etc.

Daca vrei s-o scoti de tot de pe homepage doar, cred ca trebuie sa umbli in codul php/html...
 
RCG
Daca tema pe care o folosesti contine fisierul BoardIndex.template.php atunci vei lucra cu ala. Daca nu, vei lucra cu BoardIndex.template.php din tema default.

Cauta in fisierul respectiv:
CODE
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)


Si stergi toata bucata asta de cod:
CODE
                // Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
                if (!empty($board['children']))
                {
                    // Sort the links into an array with new boards bold so it can be imploded.
                    $children = array();
                    /* Each child in each board's children has:
                            id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
                    foreach ($board['children'] as $child)
                    {
                        if (!$child['is_redirect'])
                            $child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . $child['topics'] . ', ' . $txt['posts'] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
                        else
                            $child['link'] = '<a href="' . $child['href'] . '" title="' . $child['posts'] . ' ' . $txt['redirects'] . '">' . $child['name'] . '</a>';

                        // Has it posts awaiting approval?
                        if ($child['can_approve_posts'] && ($child['unapproved_posts'] | $child['unapproved_topics']))
                            $child['link'] .= ' <a href="' . $scripturl . '?action=moderate;area=postmod;sa=' . ($child['unapproved_topics'] > $child['unapproved_posts'] ? 'topics' : 'posts') . ';brd=' . $child['id'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '" title="' . sprintf($txt['unapproved_posts'], $child['unapproved_topics'], $child['unapproved_posts']) . '" class="moderation_link">(!)</a>';

                        $children[] = $child['new'] ? '<strong>' . $child['link'] . '</strong>' : $child['link'];
                    }
                    echo '
            <tr>
                <td class="windowbg3 smalltext largepadding"><strong>', $txt['parent_boards'], '</strong>: ', implode(', ', $children), '</td>
            </tr>';
                }
manelarul
CITAT (RCG @ 6th June 2009, 11:08) *
Daca tema pe care o folosesti contine fisierul BoardIndex.template.php atunci vei lucra cu ala. Daca nu, vei lucra cu BoardIndex.template.php din tema default.

Cauta in fisierul respectiv:
CODSURSA
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)


Si stergi toata bucata asta de cod:
CODSURSA
                // Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
                if (!empty($board['children']))
                {
                    // Sort the links into an array with new boards bold so it can be imploded.
                    $children = array();
                    /* Each child in each board's children has:
                            id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
                    foreach ($board['children'] as $child)
                    {
                        if (!$child['is_redirect'])
                            $child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . $child['topics'] . ', ' . $txt['posts'] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
                        else
                            $child['link'] = '<a href="' . $child['href'] . '" title="' . $child['posts'] . ' ' . $txt['redirects'] . '">' . $child['name'] . '</a>';

                        // Has it posts awaiting approval?
                        if ($child['can_approve_posts'] && ($child['unapproved_posts'] | $child['unapproved_topics']))
                            $child['link'] .= ' <a href="' . $scripturl . '?action=moderate;area=postmod;sa=' . ($child['unapproved_topics'] > $child['unapproved_posts'] ? 'topics' : 'posts') . ';brd=' . $child['id'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '" title="' . sprintf($txt['unapproved_posts'], $child['unapproved_topics'], $child['unapproved_posts']) . '" class="moderation_link">(!)</a>';

                        $children[] = $child['new'] ? '<strong>' . $child['link'] . '</strong>' : $child['link'];
                    }
                    echo '
            <tr>
                <td class="windowbg3 smalltext largepadding"><strong>', $txt['parent_boards'], '</strong>: ', implode(', ', $children), '</td>
            </tr>';
                }






am sters dar ceva n-a mers bine..am atasat fisierul. mi`l poti modifica tu ? te rog frumos.
RCG
QUOTE (manelarul @ 6th June 2009, 13:44) *
am sters dar ceva n-a mers bine..am atasat fisierul. mi`l poti modifica tu ? te rog frumos.


Uite aici...
manelarul
CITAT (RCG @ 6th June 2009, 13:48) *
Uite aici...


unde ?
RCG
QUOTE (manelarul @ 6th June 2009, 14:13) *
unde ?


Scuze smile.gif) Nu am dat upload la atasament smile.gif) [d'eh...mort de somn smile.gif]
 
manelarul
aaa...asa stersesem si eu, si aveam acelasi rezultat, aiurea ! uite : http://videoadicted.com/forum/ .Sper sa nu se intample nimic ca am pus link. Aici sti cum se alineaza la loc ?
RCG
Mai era un rowspan="2". Foloseste boardindex atasat.
manelarul


Merge ! Iti multumesc Mult !
Aceasta este o versiune simplificatã a paginii originale. Pentru a vizita versiunea originala click aici.