SimplePortal

Support => International Support => Turkish (Türkçe) => Topic started by: tebem25 on May 06, 2013, 04:08:21 AM

Title: Arama Bölümünü Kişiselleştirme
Post by: tebem25 on May 06, 2013, 04:08:21 AM
Selamun Aleyküm ;

Ben sitede form bölümünü kullanmıyorum. Sadece portalı HTML Blok  şeklinde kullanıyorum. Dolaysıyla tema ile birlikte gelen ve simple portalın hızlı arama bloğundan yararlanamıyorum.

Aşağıdaki simple portalın English Support bölümünde verilen hızlı arama kodlarını html blokları ve içeriğini kapsayacak şekilde düzenleyebilinir mi?

Code: ("Find (Sources/PortalBlocks.php)") [Select]
echo '
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
<div class="sp_center">
<input type="text" name="search" value="" class="sp_search" /><br />
<input type="submit" name="submit" value="', $txt[182], '" />
<input type="hidden" name="advanced" value="0" />';

Code: ("Replace") [Select]
echo '
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
<div class="sp_center">
<input type="text" name="search" value="" class="sp_search" /><br />
<input type="submit" name="submit" value="', $txt[182], '" />
<input type="hidden" name="advanced" value="0" />
<input type="hidden" name="brd[0]" value="1" />
<input type="hidden" name="brd[1]" value="1" />';

That is an example, the quick search block will only search boards 0 and 1 with those settings. The "{id}" part of the "brd[{id}]" code, refers to the board id. If you want the block to search more than two boards, then you will need to add "<input type="hidden" name="brd[{id}]" value="1" />" for each board that you want the block to search. (Make sure that you put that code BEFORE the single quote, otherwise you will get fatal parse errors)
SimplePortal 2.3.8 © 2008-2024, SimplePortal