Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: d3v - helmikuu 16, 2005, 04:15:39 AP

Otsikko: remove login/logout links
Kirjoitti: d3v - helmikuu 16, 2005, 04:15:39 AP
Hi. I would like to remove the login/logout buttons/text on the front page of my theme since the login module that I use in my cms handles it just fine. I tried editing the index.template file but that produced no results. Im currently using Themis theme by Bloc.
Otsikko: Re: remove login/logout links
Kirjoitti: Oldiesmann - helmikuu 16, 2005, 09:44:38 AP
This is where having all the themes on my test board comes in handy... :)

index.template.php

Find
        // If the user is a guest. show [login] and [register] buttons.
        if ($context['user']['is_guest'])
        {
                $menu1 .=  '
                                <a href="'. $scripturl. '?action=login"><img src="' . $settings['images_url'] . '/gnome/login.gif" alt="' . $txt[34] . '" style="margin: 2px 0;" border="0" /></a>
                                <a href="'. $scripturl. '?action=register"><img src="' . $settings['images_url'] . '/gnome/register.gif" alt="' . $txt[97] . '" style="margin: 2px 0;" border="0" /></a>';
                $menu2 .= '   |
                                <a href="'. $scripturl. '?action=login">'.$txt[34].'</a> |
                                <a href="'. $scripturl. '?action=register">'.$txt[97].'</a>';
        }
        // Otherwise. they might want to [logout]...
        else{
                $menu1 .=  '
                                <a href="'. $scripturl. '?action=logout;sesc='. $context['session_id']. '"><img src="' . $settings['images_url'] . '/gnome/logout.gif" alt="' . $txt[108] . '" style="margin: 2px 0;" border="0" /></a>';
                $menu2 .= '   |
                                <a href="'. $scripturl. '?action=logout;sesc='. $context['session_id']. '">'.$txt[108]. '</a>';
         }


And remove it.