Paylaşım Sitesi  

Geri git   Paylaşım Sitesi > Webmaster & vBulletin > Hazır Sistemler > SMF
Kayıt ol Yardım Üye Listesi Ajanda Forumları Okundu Kabul Et

Tags:

Cevapla
 
LinkBack Seçenekler Stil
  #1 (permalink)  
Alt 06-25-2008, 03:13
By_OmeR - ait Kullanıcı Resmi (Avatar)
Administrator
 
Üyelik tarihi: Apr 2007
Yaş: 25
Mesajlar: 1.374
Tecrübe Puanı: 10000000
By_OmeR isimli üye Tecrübe puanını kapatmıştır.
By_OmeR - MSN üzeri Mesaj gönder
Standart Class Menu

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
Eklenmiş Dosya
Dosya tipi: rar class.rar (3,8 KB (Kilobyte), 0x kez indirilmiştir)
__________________
[Linkleri sadece üyelerimiz görebilir. Üye olmak için tıklayın...]


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Alıntı ile Cevapla
Cevapla



Seçenekler
Stil

Yetkileriniz
Yeni Mesaj yazma yetkiniz aktif değil dir.
Mesajlara Cevap verme yetkiniz aktif değil dir.
Eklenti ekleme yetkiniz aktif değil dir.
Kendi Mesajınızı değiştirme yetkiniz aktif değil dir.

Smileler Açık
[IMG] Kodları Açık
HTML-KodlarıKapalı
Trackbacks are Açık
Pingbacks are Kapalı
Refbacks are Açık


Style Webmasteriz
Powered by vBulletin® ~ Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0