- ชื่อ: Search Focus Dropdown
- ผู้เขียน: Brettflan
- นำเสนอโดย: DexMoreGroup
- ประเภท: Feature Enhancement
- รองรับ: SMF 1.1.xx, 2.0.xx
- ปรับปรุงล่าสุด: 17 มีนาคม 2553
- ต้นฉบับ: Search Focus Dropdown
รายละเอียด Mod นี้จะเพิ่ม Dropdown Menu ให้กับช่องค้นหา สามารถเลือกได้ว่าจะให้ค้นหาในหัวข้อ, ในบอร์ด หรือในฟอรั่มทั้งหมด มาดูกันเลยครับ
ตัวอย่าง
แก้ไขไฟล์:file Search.php
ค้นหา -->>
// Number of pages hard maximum - normally not set at all.
เพิ่มไว้ก่อน -->>
ขออภัย! ท่านไม่สามารถเข้าถึงข้อมูลส่วนนี้ได้ กรุณาอ่าน เงื่อนไขการใช้งาน DexMore.Comfile index.template.php
ค้นหา -->>
<input type="submit" name="submit" value="', $txt[182], '" style="width: 11ex;" />
<input type="hidden" name="advanced" value="0" />';
// 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'], '" />';
echo '
</form>
แก้เป็น -->>
ขออภัย! ท่านไม่สามารถเข้าถึงข้อมูลส่วนนี้ได้ กรุณาอ่าน เงื่อนไขการใช้งาน DexMore.Comfile Modifications.thai-utf8.php
ค้นหา -->>
?>
เพิ่มไว้ก่อน -->>
// Search focus dropdown mod
$txt['search_scope_topic'] = 'This topic';
$txt['search_scope_board'] = 'This board';
$txt['search_scope_all'] = 'Entire forum';
ลิงค์หัวข้อ:
http://dexmore.com/topic/230