Advanced search  

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

Pages: [1]   Go Down

Author Topic: Search BOX for category  (Read 4030 times)

0 Members and 1 Guest are viewing this topic.

ruspam

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Search BOX for category
« on: January 04, 2011, 11:27:47 pm »

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

Logged

ruspam

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Search BOX for category
« Reply #1 on: January 04, 2011, 11:32:32 pm »

i've found in the forum this but not working for me. i've cpg 1.5+
Code: [Select]
<!-- 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?

Logged

ruspam

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Search BOX for category
« Reply #2 on: January 05, 2011, 12:24:22 am »

Now is OK! I've use this code:

Code: [Select]
<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>
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Search BOX for category
« Reply #3 on: January 05, 2011, 10:04:26 am »

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

ruspam

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Search BOX for category
« Reply #4 on: January 05, 2011, 10:18:52 am »

(Sry for my english i'm italian)

I've copy this code in template.html located in my template folder. WORKING!
Logged
Pages: [1]   Go Up
 

Page created in 0.03 seconds with 19 queries.