Search BOX for category Search BOX for category
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Search BOX for category

Started by ruspam, January 04, 2011, 11:27:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ruspam

Hi guys! I need to make a search box in homepage but only for category. What i've to do!?


ruspam

i've found in the forum this but not working for me. i've cpg 1.5+
<!-- add search box -->

<div style="position:absolute; top:2px; right:0">
<form method="get" action="thumbnails.php" name="searchcpg">
<input type="hidden" name="album" value="search">
<input type="hidden" name="type" value="full">
<input type="text" style="width: 150px" name="search" maxlength="255" value="" class="textinput">
<input type="submit" value="search files">
</form>
</div>


How can i modify it for search only category?


ruspam

Now is OK! I've use this code:

<form method="get" action="http://www.bakezori.com/gallery/thumbnails.php" name="searchcpg">
<input type="hidden" name="album" value="search">
<input type="hidden" name="type" value="full">
<input type="hidden" name="category_title" value="on">
<input type="hidden" name="keywords" value="of">
<input type="text" style="width: 150px" name="search" maxlength="255" value="" class="textinput">
<input type="submit" value="search files">
</form>


ΑndrĂ©

For the benefit of others, please post some more details where you copy that code to.

ruspam

(Sry for my english i'm italian)

I've copy this code in template.html located in my template folder. WORKING!