DeeEmm

Pragmatism in code

Waxing lyrical about life the universe and everything software related since lunchtime 2006.

Dolphin - Remove checkboxes from keyword search page

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

 

Dolphin - Remove big join button from promo
Boonex Blogs Gone

Related Posts

 

Comments

No comments made yet. Be the first to submit a comment
Already Registered? Login Here
Guest
Tuesday, 25 July 2017
If you'd like to register, please fill in the username, password and name fields.

Captcha Image