News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Farklı Duyurular Bölümü

Started by Evo™, November 08, 2008, 01:27:31 PM

Previous topic - Next topic

Evo™

Çok basit bir değişiklik ama sıkıldım yapacak birşey yok bende aklıma ne geliyorsa yapmaya çalışıyorum. :D Şimdi biraz duyurular bölümünü değiştireceğiz.
Öncelikle index.template.php dosyamızı açıyoruz.
Code (Buluyoruz ve siliyoruz) Select

if (!empty($settings['enable_news']))
      echo '
            <td width="90%" class="titlebg2">
               <span class="smalltext"><b>', $txt[102], '</b>: ', $context['random_news_line'], '</span>
            </td>';

Daha sonra
Code (Bulun) Select

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


Code (Değiştirin) Select
// Show the menu here, according to the menu sub template.
   template_menu();
if (!empty($settings['enable_news']))
   echo'
      <table border="0" width="100%" cellspacing="' , ($context['browser']['is_ie'] || $context['browser']['is_opera6']) ? '1' : '0' , '" cellpadding="4" style="margin-bottom: 2ex;">
   <tr>
      <td align="center" class="catbg" colspan="2">Duyurular</td>
   </tr>
   <tr>
      <td align="center" width="30%"><img border="0" src="', $settings['images_url'], '/duyuru.gif"></td>
      <td width="70%"><font size="6">', $context['random_news_line'], '</font></td>
   </tr>
</table>';

Ekteki dosyayıda images klasörü içine atınız.
Can sıkıntısından yoksa böyle şeyler yapmam :D
Görüntü.

Fth.61

eline sağlık abi güzel olmuş  :) denedim sorunsuz calısıyor..

iso1980

#2
selam kardeşim vermiş olduğun ilk kod u bulamıyorum index temp te ne yapmalıyım

bilasdem

SMF 2.0 RC1-1  için ne yapmalıyız
şu an localde çalışaçağım

grafitus

єνσℓυтιση™ peki adam hem bunu yapıp hem de slaytlı duyuruları açık yaparsa ne olacak? :)

Advertisement: