Howdy Folks,
I am trying to have the default search function search within descriptions much like the advanced function does.
I am running CRELoaded 6.4 using the CRE63_ats template if it matters.
After searching the forum up and down and finding numerous fixies for my problem. I implemented them and the results were negative.
I have changed both the search.php
to:
Code:
*/
?>
<!-- search //-->
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => '<font color="' . $font_color . '">' . BOX_HEADING_SEARCH . '</font>');
new infoBoxHeading($info_box_contents, false, false);
$info_box_contents = array();
$info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'),
'align' => 'center',
'text' => tep_draw_input_field('keywords', '', 'size="10" maxlength="30" ') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><input name="search_in_description" type="hidden" id="1" value="1"><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>');
new infoBox($info_box_contents);
?>
</td>
</tr>
<!-- search_eof //-->
and the search1.php
to
Code:
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => '<font color="' . $font_color . '">' . BOX_HEADING_SEARCH1 . '</font>');
new infoBoxHeading($info_box_contents, false, false);
$hide = tep_hide_session_id();
$info_box_contents = array();
$info_box_contents[] = array('form' => '<form name="quick_find" method="get" action="' . tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false) . '">',
'align' => 'center',
'text' => $hide . '<input type="text" name="keywords" size="10" maxlength="30" value="' . htmlspecialchars(StripSlashes(@$HTTP_GET_VARS["keywords"])) . '" style="width: ' . (BOX_WIDTH-30) . 'px"> ' . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a><br>' . '<input name="search_in_description" type="hidden" id="1" value="1" checked="checked"> Search in description'
);
new infoBox($info_box_contents);
$info_box_contents = array();
$info_box_contents[] = array('align' => 'left',
'text' => tep_draw_separator('pixel_trans.gif', '100%', '1')
);
new infoboxFooter($info_box_contents, true, true);
?>
</td>
</tr>
<!-- search_eof //-->
Please keep in mind i can only find these files under templates/default/boxes/
Can anyone help?
What am i doing wrong?
Thank you.