Webmaster Forumu  

Go Back   Webmaster Forumu > Webmaster Genel > Diğer Scriptler > Smf

Cevapla
 
LinkBack Seçenekler Stil
Alt 12-03-2011, 18:16   #1
Eposta Aktivasyonu Gerekmekte
 
İstanbul Anadolu Şubesi
Yaş: 32
Mesajlar: 399
Tecrübe Puanı: 0
Rep Puanı: 10
Rep Derecesi : Masterx
Standart SimpleMachines.org'daki gibi sağ tarafta arama seçeneği..

SimpleMachines.org'daki gibi sağ tarafta arama seçeneği..
<div class="post">Türkçe çeviri bana aittir..
SimpleMachines'ın resmi sitesinde Arama Butonunun yanında ki dropdown özelliğidir.. (Bölümde ara.. Konuda ara.. Tümünde ara.. şekilnde..)

index.template.php'de
Bul:

PHP- Kodu:
Kod:
 
// Output any remaining HTML headers. (from mods, maybe?) echo $context['html_headers'],
Sonrasına ekle:
Kod:
PHP- Kodu:
Kod:
 
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[ function search_context_change() { ctx = document.quick_search.search_context.value; if (ctx=="topic") { if (document.quick_search.board_) document.quick_search.board_.name="dontuse"; document.quick_search.topic_.name = "topic"; } else if (ctx=="board") { if (document.quick_search.topic_) document.quick_search.topic_.name="donotuse"; document.quick_search.board_.name = "brd["+document.quick_search.board_.value+"]"; } else { if (document.quick_search.board_) document.quick_search.board_.name="dontuse"; if (document.quick_search.topic_) document.quick_search.topic_.name="donotuse"; } } // ]]></script>

Bul:
Kod:
PHP- Kodu:
Kod:
 
<form action="', $scripturl, '?action=search2" method="post"
Değiştir:

PHP- Kodu:
Kod:
 
<form name="quick_search" action="', $scripturl, '?action=search2" method="post"
Bul:
PHP- Kodu:
Kod:
 
// Search within current topic? if (!empty($context['current_topic'])) echo ' <input type="hidden" name="topic" value="', $context['current_topic'], '" />'; // If we're on a certain board, limit it to this board ;). elseif (!empty($context['current_board'])) echo ' <input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';
Değiştir:


PHP- Kodu:
Kod:
 
if (!empty($context['current_board']) || !empty($context['current_topic'])) { echo ' <select onchange="javascript:search_context_change();" name="search_context"> <option value="all">', $txt['search_context_all'], '</option>'; $hidden_inputs = ''; if (!empty($context['current_board'])) { echo ' <option value="board" ', empty($context['current_topic']) ? 'selected="selected"' : '', '>', $txt['search_context_board'], '</option>'; $hidden_inputs .= ' <input type="hidden" id="board_" name="' . (empty($context['current_topic']) ? 'brd[' . $context['current_board'] . ']' : 'dontuse') . '" value="' . $context['current_board'] . '" />'; } if (!empty($context['current_topic'])) { echo ' <option value="topic" selected="selected">', $txt['search_context_topic'], '</option>'; $hidden_inputs .= ' <input type="hidden" id="topic_" name="topic" value="' . $context['current_topic'] . '" />'; } echo ' </select>', $hidden_inputs; }
languages'de index.turkish.php'de
Bul:


PHP- Kodu:
Kod:
 
?>
Öncesine ekle:


PHP- Kodu:
Kod:
 
$txt['search_context_board'] = 'Bu Bölümde'; $txt['search_context_topic'] = 'Bu konuda'; $txt['search_context_all'] = 'Tümünde';
Bir pctwo yapımıdır..
Masterx isimli Üye şimdilik offline konumundadır   Alıntı ile Cevapla
Sponsored Links
Cevapla


Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir)
 
Seçenekler
Stil

Yetkileriniz
Konu Acma Yetkiniz Yok
Cevap Yazma Yetkiniz Yok
Eklenti Yükleme Yetkiniz Yok
Mesajınızı Değiştirme Yetkiniz Yok

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



Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 04:05.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.