Gönderen Konu: Defaulted Menü  (Okunma sayısı 1118 defa)

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı •● FяiєdєKiηd™ ●•

  • SGT-Admin
  • *
  • İleti: 7670
  • PR ( Rep ) : 285
  • Cinsiyet: Bay
  • www.wtgrup.com
    • | HasTOSYALİ.Com | Tosya'nın Dünyaya Açılan Kapısı |
  • SMF Sürümü: 1.1.x
Defaulted Menü
« : SmfGrup Saati : 21 Eylül Sal 2010, 21:07 »
bir menü yaptım ve bunu default temada farklı bir yere ekledim o kadar menüyü isterseniz normal yerinede alabilirsiniz...


menü 1.1.x sürümüne uygundur.

style.css'de en sona ekleyiniz.
Kod: (ekle) [Seç]
.menu7{
width: auto;height:33px;
}
.menu7 ul{
width:auto;height:33px;float:left;list-style:none;padding:0px;margin:0px;
}
.menu7 ul li{
padding:0px;margin:0px 0 2px 0;display:inline;line-height:33px;
}
.menu7 ul li a{ width:82px; height:33px;text-decoration:none; text-align:center;padding:0px;margin:0 5px 0 5px;color:#257285; float:left;background:url(images/bt1_bg.gif) no-repeat center;}
.menu7 ul li.current a{width:82px; height:33px;text-decoration:none; text-align:center;padding:0px;margin:0 5px 0 5px;color:#257285; float:left;background:url(images/bt1_bg_a.gif) no-repeat center;}
.menu7 ul li a:hover{ background:url(images/bt1_bg_a.gif) no-repeat center;}

indextemplate.php bul
Kod: (bul) [Seç]
// 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('downloads','search', 'downloads', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')));
      $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?
   if ($context['right_to_left'])
   {
      $first = 'last';
      $last = 'first';
   }
   else
   {
      $first = 'first';
      $last = 'last';
   }

   // Show the start of the tab section.
   echo '
         <table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
            <tr>
               <td class="maintab_' , $first , '">&nbsp;</td>';

   // Show the [home] button.
   echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '">' , $txt[103] , '</a>
            </td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // Show the [help] button.
   echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'help' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
            </td>' , $current_action == 'help' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // How about the [search] button?
   if ($context['allow_search'])
      echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'search' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=search">' , $txt[182] , '</a>
            </td>' , $current_action == 'search' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // Is the user allowed to administrate at all? ([admin])
   if ($context['allow_admin'])
      echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'admin' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=admin">' , $txt[2] , '</a>
            </td>' , $current_action == 'admin' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // Edit Profile... [profile]
   if ($context['allow_edit_profile'])
      echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'profile' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>
            </td>' , $current_action == 'profile' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // Go to PM center... [pm]
   if ($context['user']['is_logged'] && $context['allow_pm'])
      echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'pm' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a>
            </td>' , $current_action == 'pm' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // The [calendar]
   if ($context['allow_calendar'])
      echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
            </td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // the [member] list button
   if ($context['allow_memberlist'])
      echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
            </td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // the [Downloads System] button
   if ($context['allow_downloads_view'])
      echo ($current_action == 'downloads' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'downloads' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=downloads">' , $txt['downloads_menu']  , '</a>
            </td>' , $current_action == 'downloads' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

     

   // If the user is a guest, show [login] button.
   if ($context['user']['is_guest'])
      echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'login' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=login">' , $txt[34] , '</a>
            </td>' , $current_action == 'login' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


   // If the user is a guest, also show [register] button.
   if ($context['user']['is_guest'])
      echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'register' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=register">' , $txt[97] , '</a>
            </td>' , $current_action == 'register' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


   // 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>' : '';

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

}

bununla değiştir
Kod: (değiştir) [Seç]
// 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')))
$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';

// Show the start of the tab section.

echo '
           
   <div class="menu7">
            <ul>  ';

// Show the [home] button.
echo '<li><a' , $current_action=='home' ? ' class="current"' : '' , ' href="', $scripturl, '"><span><em>' , $txt[103] , '</em></span></a></li>';

// Show the [help] button.
echo '<li><a' , $current_action=='help' ? ' class="current"' : '' , ' href="', $scripturl, '?action=help"><span><em>' , $txt[119] , '</em></span></a></li>';

// How about the [search] button?
if ($context['allow_search'])
echo '<li><a' , $current_action=='search' ? ' class="current"' : '' , ' href="', $scripturl, '?action=search"><span><em>' , $txt[182] , '</em></span></a></li>';

// The [calendar]!
if ($context['allow_calendar'])
echo '<li><a' , $current_action=='calendar' ? ' class="current"' : '' , ' href="', $scripturl, '?action=calendar"><span><em>' , $txt['calendar24'] , '</em></span></a></li>';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '<li><a' , $current_action=='admin' ? ' class="current"' : '' , ' href="', $scripturl, '?action=admin"><span><em>' , $txt[2] , '</em></span></a></li>';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '<li><a' , $current_action=='profile' ? ' class="current"' : '' , ' href="', $scripturl, '?action=profile"><span><em>' , $txt[79] , '</em></span></a></li>';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '<li><a' , $current_action=='pm' ? ' class="current"' : '' , ' href="', $scripturl, '?action=pm"><span><em>' , $txt['pm_short'] , '</em></span></a></li>';

// the [member] list button
if ($context['allow_memberlist'])
echo '<li><a ' , $current_action=='mlist' ? ' class="current"' : '' , ' href="', $scripturl, '?action=mlist"><span><em>' , $txt[331] , '</em></span></a></li>';

// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '<li><a ' , $current_action=='login' ? ' class="current"' : '' , ' href="', $scripturl, '?action=login"><span><em>' , $txt[34] , '</em></span></a></li>';

// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo '<li><a ' , $current_action=='register' ? ' class="current"' : '' , ' href="', $scripturl, '?action=register"><span><em>' , $txt[97] , '</em></span></a></li>';

// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '<li><a ' , $current_action=='logout' ? ' class="current"' : '' , 'href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '"><span><em>' , $txt[108] , '</em></span></a></li>';

echo '
</ul></div>';

}

görünüm:




default tarzındaki yerinde olsun derseniz aşağıdaki değişikleri yapmayınız....


indextemplate.php de bulun  ve silin
Kod: (bul) [Seç]
// Show the menu here, according to the menu sub template.
template_menu();


indextemplate.php de bulun
Kod: (bul) [Seç]
// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';

bununla değiştirin
Kod: (değiştir) [Seç]
// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span><br /><br />';



// Show the menu here, according to the menu sub template.
template_menu();

görünüm:




ve en son olarakta ekteki resimleri images klasörüne atın. iyi günlerde kullanın..




« Son Düzenleme: SmfGrup Saati : 21 Eylül Sal 2010, 22:01 Gönderen: •● FяiєdєKiηd™ ●• »

Çevrimdışı TürkBaytar

  • SMF-GrafikEkibi
  • *
  • İleti: 2770
  • PR ( Rep ) : 43
  • Cinsiyet: Bay
  • Özgürlük için PARDUS....
  • SMF Sürümü: 2.0
Ynt: Defaulted Menü
« Yanıtla #1 : SmfGrup Saati : 22 Eylül Çrş 2010, 14:12 »
ellerine sağlık murat...

arkadaşlar kullanırlar...
Ücretli smf tema,logo ve index yapılır.

Çevrimdışı •● FяiєdєKiηd™ ●•

  • SGT-Admin
  • *
  • İleti: 7670
  • PR ( Rep ) : 285
  • Cinsiyet: Bay
  • www.wtgrup.com
    • | HasTOSYALİ.Com | Tosya'nın Dünyaya Açılan Kapısı |
  • SMF Sürümü: 1.1.x
Ynt: Defaulted Menü
« Yanıtla #2 : SmfGrup Saati : 22 Eylül Çrş 2010, 14:18 »
ara sıra böyle şeyler paylaşacağım abi artık canlandıralım biraz :D

Çevrimiçi EmirCan

  • SGT-Admin
  • *
  • İleti: 14053
  • PR ( Rep ) : 247
  • Cinsiyet: Bay
  • EmirCan ( İST )
  • SMF Sürümü: 2.0
Ynt: Defaulted Menü
« Yanıtla #3 : SmfGrup Saati : 22 Eylül Çrş 2010, 14:22 »
vay Allah razı olsun murat'ım
Emirkuzu.com

Çevrimdışı Cado

  • ...
  • SGT-Admin
  • *
  • İleti: 1975
  • PR ( Rep ) : 53
  • Cinsiyet: Bay
  • Sabır .
    • Smf Tema,Mod,Destek
  • SMF Sürümü: 2.0
Ynt: Defaulted Menü
« Yanıtla #4 : SmfGrup Saati : 22 Eylül Çrş 2010, 15:12 »
vay Allah razı olsun murat'ım

mesaj atalım emir abi
selenka.net