I would like to put login and logout buttons like this. I've tried a lot and usually the logout doesn't work!
According to SMF they will not even put ...
The login works, the logout shows this error: An error has occurred
"Session verification failed. Please try to disconnect and reconnect again and then try again"
Logout icon path example: ../Themes/default/images/icons/logout.png
Add to the end of the navigation button array in file: ../Sources/Subs.php
'logout' => array(
'title' => $txt['logout'],
'icon' => '/icons/logout.png',
'href' => $scripturl . '?action=logout;%1$s=%2$s',
'show' => !$user_info['is_guest'],
'sub_buttons' => array(
'is_last' => !$context['right_to_left'],
Perfect! you are very good! ;D ;D ;D