• Welcome to Simple Machines Community Forum. Please login or sign up.
November 30, 2021, 10:08:08 PM

News:

SMF 2.0.18 has been released! Please update. Read more.


mehrere Buttons in Menüleiste

Started by Fipo, October 31, 2007, 09:09:22 AM

Previous topic - Next topic

daGroove

March 08, 2009, 11:08:39 AM #40 Last Edit: March 08, 2009, 11:10:22 AM by daGroove
Die action muss schon stimmen ;)


// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;

   // Work out where we currently are.
      $current_action = 'home';
   if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers' )))
      $current_action = 'admin';
   if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'forumregeln' )))
      $current_action = $context['current_action'];
   if ($context['current_action'] == 'search2')
      $current_action = 'search';
   if ($context['current_action'] == 'theme')
      $current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';

   // Are we using right-to-left orientation?
wer zum teufel bin ich und wenn ja wieviele?

Aldebran77

Hallo daGroove,

Danke für deine schnelle Hilfe, jetzt funktioniert es und ich habe wieder etwas dazugelernt.

Gruß
Andreas

Advertisement: