"Menu Stilleri" Temanızın menu butonlarından sıkıldınız mı? Olaya renk katalım!

Started by Hoochie Coochie Man, December 16, 2007, 06:11:09 PM

Previous topic - Next topic

Hoochie Coochie Man

Tema sahibinden izin almalısın. Bu konu başlığında paylaştığım butonlar, paylaşıma verilmiş butonlardır.
İnadına SMF 1.1.X

sevdaligul

Quote from: Hoochie Coochie Man on May 05, 2008, 07:45:43 AM
Quote from: sevdaligul on May 03, 2008, 01:34:44 PM
bende  bölüm ikiyi yaptım

Bölüm 2 - CSS Indent Menu

http://www.simplemachines.org/community/index.php?topic=211487.0#post_bolum_2


yenı botunlarda ekledim ama Mozilla Firefox yaptıgım botunlar degişik gosteriyor

operada da aynı  nesıl yenı buton ekleyecem

Sorununuzu anlayamadım, o menu stilinin butonları zaten mevcut. farklı buton ekleyecekseniz menu stilinin mevcut butonları ile aynı boyutta olmasına özen gösterin.. Onun dışında sorununuzu bir resim ile gösterin..

arkadaşım yanına ek botunlar koydum onlar  oncekiler gibi olmadı

onu demek istedim

resım

http://img518.imageshack.us/img518/7120/adszfe2.jpg



aynısı olması için nasıl ek botun yapacaz  opere ve mozıllada hata ver eme ei de hepsı aynı



Yağız...



Hoochie Coochie Man

İnadına SMF 1.1.X

grafitus


Hoochie Coochie Man

İnadına SMF 1.1.X

grafitus

Quote from: Hoochie Coochie Man on June 07, 2008, 03:36:19 PM
Ben 2.0 ı hiç incelemedim, gönüllü birinin yapması lazım.

Ben gönüllü olmak için uğraştım ama olmadım.Gönüllü olacak yiğitler aranıyor :D

Yağız...

Gönüllü geldi :)
Aslında çok basit.. 30 dk içinde dönerim tekrar size :)



Sadece index.template.php'deki degisiklikleri yazıyorum. HCM'nin verdiği style.css kodlarını yine aynı yerlere ekliyorsunuz. Değişiklik yapılacak tek dosya olduğundan(index.template.php)  ve değiştirilecek kod aynı olduğundan sadece değiştirin diyeceğim.


Her menü stilinde bulunacak kod:

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

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

    foreach ($context['menu_buttons'] as $act => $button)
        echo ($button['active_button'] || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '                <td valign="top" class="maintab_', $button['active_button'] ? 'active_back' : 'back', '">
                    <a href="', $button['href'], '">', $button['title'], '</a>
                </td>', $button['active_button'] ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

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

}



Bölüm 1 - Bold CSS Buttons
Bulunacak kodu bulun ve değiştirin:
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
    global $context, $settings, $options, $scripturl, $txt;


    foreach ($context['menu_buttons'] as $act => $button)
        echo '
            <a href="', $button['href'], '"class="boldbuttons" style="margin-left: 2px"><span>', $button['title'], '</span></a>';

}



Bölüm 2 - CSS Indent Menu
Bulunacak kodu bulun ve değiştirin:
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;


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

   foreach ($context['menu_buttons'] as $act => $button)
      echo '
         <li><a href="', $button['href'], '">', $button['title'], '</a></li>';
   echo '
      </ul>
   </div>
   <br style="clear: left" />';

}



Bölüm 3 - Inverted Shift Down Menu II
Bulunacak kodu bulun ve değiştirin:
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;


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

   foreach ($context['menu_buttons'] as $act => $button)
      echo '
         <li><a href="', $button['href'], '">', $button['title'], '</a></li>';
   echo '
      </ul>
   </div>
   <br style="clear: left" />';

}



Bölüm 4 - Inverted Shift Down Menu
Bulunacak kodu bulun ve değiştirin:
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;


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

   foreach ($context['menu_buttons'] as $act => $button)
      echo '
         <li><a href="', $button['href'], '">', $button['title'], '</a></li>';
   echo '
      </ul>
   </div>
   <br style="clear: both" />';

}



Bölüm 5 - Modern Bricks Menu
Bulunacak kodu bulun  ve değiştirin:
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;


   echo '
   <div id="modernbricksmenu">
           <ul>';

   foreach ($context['menu_buttons'] as $act => $button)
      echo '
         <li><a href="', $button['href'], '">', $button['title'], '</a></li>';
   echo '
      </ul>
   </div>
   <div id="modernbricksmenuline">&nbsp;</div>';

}



Bölüm 6  - Solid Block Menu
Bulunacak kodu bulun ve değiştirin:
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;


   echo '
   <ul class="solidblockmenu">';

   foreach ($context['menu_buttons'] as $act => $button)
      echo '
         <li><a href="', $button['href'], '">', $button['title'], '</a></li>';
   echo '
   </ul>';

}



Bölüm 7  - Overlapping horizontal tabs
Bulunacak kodu bulun ve değiştirin:
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;

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

   foreach ($context['menu_buttons'] as $act => $button)
      echo '
         <li><a href="', $button['href'], '">', $button['title'], '</a></li>';
   echo '
      </ul>
   </div>';

}



Bölüm 8  - CSS Thick Tabs
Bulunacak kodu bulun ve değiştirin:
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;

   echo '
   <ul id="thicktabs">';

   foreach ($context['menu_buttons'] as $act => $button)
      echo '
         <li><a href="', $button['href'], '">', $button['title'], '</a></li>';
   echo '
   </ul>';

}



Bölüm 9  - Sleek Pointer Menu 2
Bulunacak kodu bulun ve değiştirin:
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;

   echo '
   <div id="pointermenu2">
      <ul>';

   foreach ($context['menu_buttons'] as $act => $button)
      echo '
         <li><a href="', $button['href'], '">', $button['title'], '</a></li>';
   echo '
      </ul>
   </div>';

}



Bölüm 10 - Inverted Modern Bricks Menu
Bulunacak kodu bulun ve değiştirin:
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;

   echo '
   <div id="modernbricksmenu2">
      <ul>';

   foreach ($context['menu_buttons'] as $act => $button)
      echo '
         <li><a href="', $button['href'], '">', $button['title'], '</a></li>';
   echo '
      </ul>
   </div>
   <br style="clear: left" />';

}



Bölüm 11 - Glowing Tabs Menu
Bulunacak kodu bulun ve değiştirin:
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;

   echo '
   <div id="glowingtabs">
      <ul>';

   foreach ($context['menu_buttons'] as $act => $button)
      echo '
         <li><a href="', $button['href'], '">', $button['title'], '</a></li>';
   echo '
      </ul>
   </div>
   <br style="clear: left" />';

}



Bölüm 12 - 3D CSS buttons
Bulunacak kodu bulun ve değiştirin:
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;

foreach ($context['menu_buttons'] as $act => $button)
echo '
<a href="', $button['href'], '" class="cssbutton">', $button['title'], '</a>';
}




Unutmadan söyleyeyim. Resimleri temanızın images klasörüne atıcaksınız.

Hoochie Coochie Man

İnadına SMF 1.1.X


grafitus

Fatal error: Call to undefined function: template_menu() in c:\program files\easyphp1-8\www\frm\Sources\Load.php(1857) : eval()'d code on line 331

Hatasını veriyor :S

Hoochie Coochie Man

Ard arda mesaj atma arkadaşım, son mesajını "tekrar düzenle" new.gif tekrar aktif olacaktır..
İnadına SMF 1.1.X


Hoochie Coochie Man

Quote from: berat9544 on June 08, 2008, 06:23:42 AM
Flood için özür dilerim de dediğini anlamadım
Diyorum ki, bir konuda son mesajı tekrar düzenlediğinde.. Temalar bölümüne tekrar baktığında o konunun yanında "yeni" işareti tekrar belirir. O yüzden flood yapmana gerek yok diyorum. Anladın mı şimdi?
İnadına SMF 1.1.X

Yağız...

Quote from: berat9544 on June 08, 2008, 05:50:54 AM
Fatal error: Call to undefined function: template_menu() in c:\program files\easyphp1-8\www\frm\Sources\Load.php(1857) : eval()'d code on line 331

Hatasını veriyor :S
Nerede aliyorsun bu hatayi?

grafitus

Quote from: Hoochie Coochie Man on June 08, 2008, 06:25:18 AM
Quote from: berat9544 on June 08, 2008, 06:23:42 AM
Flood için özür dilerim de dediğini anlamadım
Diyorum ki, bir konuda son mesajı tekrar düzenlediğinde.. Temalar bölümüne tekrar baktığında o konunun yanında "yeni" işareti tekrar belirir. O yüzden flood yapmana gerek yok diyorum. Anladın mı şimdi?

Anladım teşekkürler.

Quote from: Yağız on June 08, 2008, 06:34:25 AM
Quote from: berat9544 on June 08, 2008, 05:50:54 AM
Fatal error: Call to undefined function: template_menu() in c:\program files\easyphp1-8\www\frm\Sources\Load.php(1857) : eval()'d code on line 331

Hatasını veriyor :S
Nerede aliyorsun bu hatayi?

heryerde sadece forumun bilgilerinin verildiği kısım var(üye bilgileri yani avtar falan menü)
onun altında bu hata var gerisi yok forumun :D


[SiNaN]

Sorun bu sitede bulunan kopyalama sırasındaki alt satıra geçme sorunu. Alt satıra geçmediği için baştaki comment line (yorum-not satırı) bütün fonksiyonun çalışmamasına neden oluyor.

Yağız'ın mesajının üzerindeki "Alıntı" butonuna tıklayın, daha sonra [code][/code] tagları arasından istediğiniz kodları alın.
Former SMF Core Developer | My Mods | SimplePortal

Advertisement: