How to seperate menu icon

Started by houston, November 28, 2005, 10:10:59 PM

Previous topic - Next topic

houston

I have integrated flash chat into my forum and have in inserted the necessary code into the index.template.php file and have noticed that the chat icon and the logout icon are touching each other. How ould I change this code

// If the user is a guest, show [login] and [register] buttons.
if ($context['user']['is_guest'])
{
echo '
<a href="', $scripturl, '?action=login">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/login.gif" alt="' . $txt[34] . '" style="margin: 2px 0;" border="0" />' : $txt[34]), '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=register">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/register.gif" alt="' . $txt[97] . '" style="margin: 2px 0;" border="0" />' : $txt[97]), '</a>';
}
// Otherwise, they might want to [logout]...
else {
     echo '<a href="', $GLOBALS['boardurl'], '/chat/flashchat.php">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/chat_icon.gif" alt="FlashChat" style="margin: 2px 0;" border="0" />' : "FlashChat"),'</a>';

    echo '<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'],
    '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url']
    . '/' . $context['user']['language'] . '/logout.gif" alt="' . $txt[108]
    . '" style="margin: 2px 0;" border="0" />' : $txt[108]),'</a>';
}
}

?>


So that there is some seperation between the two images.

Thanks

SleePy



    echo '&nbsp;&nbsp;<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'],
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

houston

Quote from: SleePy on November 28, 2005, 10:26:31 PM


    echo '&nbsp;&nbsp;<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'],


Well that was pretty simple. Thanks

Advertisement: