Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: zfs-network - syyskuu 02, 2011, 05:37:44 IP

Otsikko: can't figure out why my logout button dissapeared.
Kirjoitti: zfs-network - syyskuu 02, 2011, 05:37:44 IP
after fixing something,i noticed something was missing.after a minuite i found out is was the logout button!
now i dont know what code it is :P
also,when i looked at the smf source,the file for that doesn't appear(???)i guess it is created when you install. :(

does anyone know what part of the php it is(i think it's with the other buttons,but idk how to add it without seeing where it was before...)
Otsikko: Re: can't figure out why my logout button dissapeared.
Kirjoitti: Sir Osis of Liver - syyskuu 02, 2011, 09:33:28 IP
In 1.1.1x, the logout button is in index.template.php -



// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'logout' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a>



Otsikko: Re: can't figure out why my logout button dissapeared.
Kirjoitti: zfs-network - syyskuu 04, 2011, 02:37:10 IP
Thank you sooo much!
i dont know why i couldn't find it before...
i think that i must've accidently deleted it while removing a stubborn chat button.
(i uninstalled it because it was useless.but the button stayed so i deleted it.)
the thing is:the logout section has no spacing from the button.
fixed!  ;D ;D