News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Add Link at Content???

Started by karabey, March 26, 2006, 11:27:02 PM

Previous topic - Next topic

karabey

Hi,

Could someone tell me how i can add here a Link?? Maybe someone has also the Empty button to change on CS2???


Kindred

RC2 default does not use image buttons....   it uses CSS.

Add a button in index.template.php in function template_menu()

if this is an action for logged in users only, then copy/paste the logout section and change to your liking....

// 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>
</td>' , $current_action == 'logout' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: