new (search) categories automatically checkt new (search) categories automatically checkt
 

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

new (search) categories automatically checkt

Started by racl, March 24, 2006, 09:51:16 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

racl

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


racl

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?

Nibbler


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

racl


pcinfoman