Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: rendi - tammikuu 06, 2006, 12:06:26 AP

Otsikko: Space betwen Chat and Logout
Kirjoitti: rendi - tammikuu 06, 2006, 12:06:26 AP
hi how to add space between caht and logout i'm use SMF 1.1 RC2
and this is my code on 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="', $GLOBALS['boardurl'], '/chat/flashchat.php">Chat</a>

<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a>
</td>' , $current_action == 'logout' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// The end of tab section.
echo '
<td class="maintab_' , $last , '">&nbsp;</td>
</tr>
</table>';



:-\
Otsikko: Re: Space betwen Chat and Logout
Kirjoitti: houston - tammikuu 06, 2006, 01:06:41 AP
Just add the code that is in red to the sting.

// 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 '&nbsp;<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>';
Otsikko: Re: Space betwen Chat and Logout
Kirjoitti: rendi - tammikuu 06, 2006, 08:15:23 AP
Thanks You  :D