DeeEmm

Pragmatism in code

If, like me, you do not like the massive long list of checkboxes at the top of the keyword search page, removing them is pretty simple.

Edit the following file...

searchKeyword.php

At about line 97 look for the following text...

$aForm = array(
'form_attrs' => array(
'id' => 'searchForm',
'action' => '',
'method' => 'post',
'onsubmit' => '',
),
'inputs' => array(
'section' => array(
'type' => 'checkbox_set',
'name' => 'section',
'caption' => _t('_Section'),
'values' => $aValues,
'value' => $aValue,
),
'keyword' => array(
'type' => 'text',
'name' => 'keyword',
'caption' => _t('_Keyword')
),
'search' => array(
'type' => 'submit',
'name' => 'search',
'value' => _t('_Search')
)
)
);

Then within this text find the following section...

'section' => array(
'type' => 'checkbox_set',
'name' => 'section',
'caption' => _t('_Section'),
'values' => $aValues,
'value' => $aValue,
),

...delete it, or comment it out - like this...

 

 

//            'section' => array(
//                'type' => 'checkbox_set',
//                'name' => 'section',
//               'caption' => _t('_Section'),
//                'values' => $aValues,
//                'value' => $aValue,
//            ),

Hey presto...

No more Fugly checkboxes

/DM