UzmanWeb.Net
  ANA SAYFA   FORUM   RESİMLER   GÖRSEL DERSLER   TOPLİST   DERSLER   İLETİŞİM

Mayıs 16, 2008, 11:27:43 ÖÖ *
Merhaba, Ziyaretçi. Lütfen giriş yapın veya üye olun.

Kullanıcı adınızı, parolanızı ve aktif kalma süresini giriniz
 
   Forum   Yardım Oyun Giriş Yap Kayıt  
Sayfa: [1]   Aşağı git
  Yazdır  
Gönderen Konu: Her Tema Türünde Konu İçinde Ekstra YENİ KONU Butonu  (Okunma Sayısı 208 defa)
0 Üye ve 1 Ziyaretçi konuyu incelemekte.
nurcuyuz
Üye
**

Puan: 3
Offline Offline

Meslek: Öğretmen
Mesaj Sayısı: 70


Aktiflik
Deneyim
Seviye
 Stats
« : Mart 29, 2007, 22:13:52 ÖS »
Aşağıdaki listedeki kullanıcılar bu konu için teşekkür ediyorlar!Teşekkür Et

Arkadaşlar eğer sizde benim gibi arada bir yeni tema yüklüyorsanız bu konu size yardımcı olacaktır.

Yüklediğim temalar kodlama itibariyle php dosyaları birbirinden bazen farklılık göstermekte.
Bir temaya olan kod diğer temada hata verebilmektedir. Bu konulardan biride YENİ KONU butonudur.


İlk önce Display.template.php Dosyasının yedeğini alarak not defteriyle açın


Açtıktan sonra ilk önce aşağıdaki kodu buluyoruz.


Kod:
'reply' => array('test' => 'can_reply', 'text' => 146, 'image' => 'reply.gif', 'lang' => true, 'url' => $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies']),

Eğer bu kod varsa hemen altına aşağıdaki kodu ekliyoruz.

Kod:
'new_topic' => array((allowedTo('post_new')) ? 1 : 'test' => 'nothinglol', 'text' => 'smf258', 'image' => 'new_topic.gif', 'lang' => true, 'url' => $scripturl . '?action=post;board=' . $context['current_board'] . '.0'),



Eğer Üstteki Kod Yoksa bu sefer aşağıda yazacağım uygulamayı yapacağız

Display.template.php de aşağıdaki kodu buluyoruz.


Kod:
if ($context['can_reply'])
$buttonArray[] = '<a href="' . $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/reply.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]) . '</a>';


Bulduktan sonra hemen altına aşağıdaki kodu ekliyoruz.


Kod:
if ($context['can_post_new'])
$buttonArray[] = '<a href="' . $scripturl . '?action=post;board=' . $context['current_board'] . '.0">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new_topic.gif" alt="' . $txt[33] . '" border="0" />' : $txt[33]) . '</a>';


Ve Konu İçerisinde YENİ KONU Butonu hazır. Smiley



Eğer bunları yaptıysanız ve halen bir sonu alamıyorsanız demokraside çareler tükenmez Smiley

Display.template.php Eğer Aşağıdaki kod varsa onun altına

Kod:
'reply' => array('test' => 'can_reply', 'text' => 146, 'image' => 'reply.gif', 'lang' => true, 'url' => $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies']),

Display.template.php Eğer bu kod varsa bunun altına


Kod:
if ($context['can_reply'])
$buttonArray[] = '<a href="' . $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/reply.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]) . '</a>';


Aşağıdaki Kodu Ekliyoruz


Kod:
echo'

<a href="http://www.seninsiten.com/forum/index.php?action=post;board=' . $context['current_board'] . '.0">' . ($settings['use_image_buttons'] ? '<img src="http://www.seninsiten.com/forum/Themes/oceanzero_by_turklord/images/turkish/new_topic.gif" alt="' . $txt[33] . '" border="0" />' : $txt[33]) . '</a>';



(Alıntı değildir  Smiley )
Teşekkür listesi şu anda boş.
Logged
Sayfa: [1]   Yukarı git
  Yazdır  
 
Gitmek istediğiniz yer:  

Powered by SMF 1.1.4 | SMF © 2006, Simple Machines LLC | Sitemap | Sitemap / Site Haritası
Giriş Sayfası Yap Sık Kullanılanlara Ekle
UzmanWeb.Net 2003-2007 © | Bilgi Paylaşım Sitesi | Sitemap
Sayfa Başına Dön
Sitemizde yer alan tüm bilgilerin bir kısmı diğer sitelerden derlenip yalnızca bilgilendirme ve eğitim amacıyla sunulmaktadır.
Uzman Toplist Asp İndir Popüler Siteler Linkdefteri.com

MKPortal ©2003-2006 mkportal.it