Görünüm:
Resimde görüldüğü gibi üzerine gelince içeri göçüyor.Anlatıma geçelim
İndex.template.phpde bulun.
Kod:
// Show the menu up top. Something like [home] [help] [profile] [logout]...
Yukarıda verdiğim kod dahil aşağıdaki koda kadar silin(aşağıdaki kodu silmeyin).
Kod:
// Generate a strip of buttons.
Kalan yere bunu yapıştırın.
Kod:
// Show the menu up top. Something like [home] [help] [profile] [logout]...// Class menu baslangici by SMFGrup.CoM for sasukefunction template_menu(){ global $context, $settings, $options, $scripturl, $txt;echo '<ul class=class_menu>'; // Show the default [home] button. echo '<li><a href="', $scripturl, '"><b>' , $txt[103] , '</b></a></li>'; // Show the [help] button. echo '<li><a href="', $scripturl, '?action=help"><b>' , $txt[119] , '</b></a></li>'; // How about the [search] button? if ($context['allow_search']) echo '<li><a href="', $scripturl, '?action=search"><b>' , $txt[182] , '</b></a></li>'; // Is the user allowed to administrate at all? ([admin]) if ($context['allow_admin']) echo '<li><a href="', $scripturl, '?action=admin"><b>' , $txt[2] , '</b></a></li>'; // Edit Profile... [profile] if ($context['allow_edit_profile']) echo '<li><a href="', $scripturl, '?action=profile"><b>' , $txt[79] , '</b></a></li>'; // Go to PM center... [pm] if ($context['user']['is_logged'] && $context['allow_pm']) echo '<li><a href="', $scripturl, '?action=pm"><b>' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</b></a></li>'; // The [calendar] if ($context['allow_calendar']) echo '<li><a href="', $scripturl, '?action=calendar"><b>' , $txt['calendar24'] , '</b></a></li>'; // the [member] list button if ($context['allow_memberlist']) echo '<li><a href="', $scripturl, '?action=mlist"><b>' , $txt[331] , '</b></a></li>'; // If the user is a guest, show [login] button. if ($context['user']['is_guest']) echo '<li><a href="', $scripturl, '?action=login"><b>' , $txt[34] , '</b></a></li>'; // If the user is a guest, also show [register] button. if ($context['user']['is_guest']) echo '<li><a href="', $scripturl, '?action=register"><b>' , $txt[97] , '</b></a></li>'; // Otherwise, they might want to [logout]... if ($context['user']['is_logged']) echo '<li><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '"><b>' , $txt[108] , '</b></a></li>'; echo '</ul>'; // Class menu bitişi by SMFGrup.CoM - SMFTeMa.CoM}
Bu işlemleri yaptıktan sonra style.cssde en alta şunları ekleyin.
Kod:
.class_load16 {background: url(images/class/pro16_2.gif);}.class_load16a {background: url(images/class/pro16_2a.gif);}.class_menu {padding:0 0 0 1em; margin:0; list-style:none; height:43px; position:relative; background:transparent url(images/class/pro16_back.gif) repeat-x left top; font-size:11px;}.class_menu li {float:left; height:43px;}.class_menu li a {display:block; float:left; height:40px; line-height:35px; color:#888; text-decoration:none; font-family:arial, verdana, sans-serif; font-weight:bold; text-align:center; padding:0 0 0 10px; cursor:pointer; background:url(images/class/pro16_0a.gif) no-repeat;}.class_menu li a b {float:left; display:block; padding:0 60px 0 0; background:url(images/class/pro16_0.gif) no-repeat right top;}.class_menu li.current a {color:#000; background:url(images/class/pro16_2a.gif) no-repeat;}.class_menu li.current a b {color:#000; background:url(images/class/pro16_2.gif) no-repeat right top;}.class_menu li a:hover {color:#000; background: url(images/class/pro16_2a.gif) no-repeat;}.class_menu li a:hover b {color:#000; background:url(images/class/pro16_2.gif) no-repeat right top;}.class_menu li.current a:hover {color:#000; cursor:default;}
Şimdi menüyü oluşturduk.Menüde görülecek resimleri temanız/images klasörünün içine dosya halinde atın.Yani şöyle olacak.
bbc
buttons
class
icons
gibi klasör olarak rardan çıkarıp atın.Resim klasörü ekte.
Yeni Menü Eklemek
Yeni menü eklemek için index.template.phpde bulun
Kod:
// Show the [help] button. echo '<li><a href="', $scripturl, '?action=help"><b>' , $txt[119] , '</b></a></li>';
Altına ekleyin
Kod:
// Show the [msn] button. if ($context['allow_admin']) echo '<li><a href="', $scripturl, '?action=msn"><b>MSN</b></a></li>';
Yukarıdaki butonu sadece admin görür.
Kod:
// Show the [msn] button. if ($context['user']['is_logged']) echo '<li><a href="', $scripturl, '?action=msn"><b>MSN</b></a></li>';
Yukarıdakini sadece giriş yapmışlar görür.
Kod:
// Show the [msn] button. if ($context['user']['is_guest']) echo '<li><a href="', $scripturl, '?action=msn"><b>MSN</b></a></li>';
Yukarıdakini sadece misafirler görür.
Not:Resimler Eklentidedir