Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: new (search) categories automatically checkt  (Read 3260 times)

0 Members and 1 Guest are viewing this topic.

racl

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
new (search) categories automatically checkt
« on: March 24, 2006, 09:51:16 am »

Hi!

i want to create some more categories. my problem is that they aren automatically checkt in the searchform. where do i have to change the code (checkted="checked") that all kind of searchposibillities are activated instantly?

thx for your help
« Last Edit: March 24, 2006, 12:31:38 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: new (search) categories automatically checkt
« Reply #1 on: March 24, 2006, 11:32:59 am »

search.php
Logged

racl

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: new (search) categories automatically checkt
« Reply #2 on: March 24, 2006, 11:51:24 am »

that's true for the static parts (title, caption, keywords) owner and filename is possible to change in the search.php as well. but the free choosable categories are hidden in a variable ($customs) where can i change this entries?
Logged

Nibbler

  • Guest
Re: new (search) categories automatically checkt
« Reply #3 on: March 24, 2006, 12:13:19 pm »

Code: [Select]
while ($row = mysql_fetch_assoc($result)){
        $name = str_replace(array('_field', '_name'), '', $row['name']);
        $customs .= <<< EOT
                <tr>
                        <td><input type="checkbox" name="$name" id="$name" class="checkbox" /><label for="$name" class="clickable_option">{$row['value']}</label></td>
                </tr>
EOT;
}

Just add in checked="checked" there
Logged

racl

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: new (search) categories automatically checkt
« Reply #4 on: March 24, 2006, 12:16:27 pm »

okay thanks i didn't see that. i works :-)
Logged

pcinfoman

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 34
Re: new (search) categories automatically checkt
« Reply #5 on: December 14, 2007, 09:55:24 pm »

Just add in checked="checked" there
Sweet! Thanks for the info
Logged
Pages: [1]   Go Up
 

Page created in 0.013 seconds with 15 queries.