This is a discussion on Header Search in Oscmax Mainpage within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; OSCMAX v1.7 Has anyone successfully integrated a search in the header of the mainpage.tpl file. I have tried everything I ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| OSCMAX v1.7 Has anyone successfully integrated a search in the header of the mainpage.tpl file. I have tried everything I can and it just won't work. It duplicates the command button for example if you try and sign up and click continue it takes you to advanced search. this is as close as I have gotten. Code: <?php
$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' => 'left',
'text' => tep_draw_input_field('keywords', 'Quick Search', ' onFocus="emptyQuicksearch()" size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . '&nbsp;' . tep_hide_session_id() . 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>');
new infoBox($info_box_contents);
?>
thanks, |
| Sponsored Links | ||
| ||
| |
|
#2
| |||
| |||
| Have you tried just taking the include directive out of the column_left.php file and including that in the header? I did this a while ago and believe this was how I did it. Hope this helps. |
|
#3
| |||
| |||
| Ok, I tried that I thought I did that before and got something too. What I'm getting is a 1 above the box instead of the word "Array". Here is the code from the search.php file. I'm not sure where that 1 is comming from at all. very odd. Code: <!-- search //-->
<?php
$boxHeading = BOX_HEADING_SEARCH;
$corner_left = 'square';
$corner_right = 'square';
$boxContent_attributes = ' align="center"';
$box_base_name = 'search'; // for easy unique box template setup (added BTSv1.2)
$box_id = $box_base_name . 'Box'; // for CSS styling paulm (editted BTSv1.2)
$boxContent = tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get');
$boxContent .= tep_draw_input_field('keywords', '', 'size="25" maxlength="30" ') . '&nbsp;' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH);
$boxContent .= '</form>';
// bof BTSv1.2
if(file_exists(DIR_WS_BOX_TEMPLATES . $box_base_name . '.tpl.php')) {
// if exists, load unique box template for this box from templates/boxes/
require(DIR_WS_BOX_TEMPLATES . $box_base_name . '.tpl.php');
}
else {
// load default box template: templates/boxes/box.tpl.php
require(DIR_WS_BOX_TEMPLATES . TEMPLATENAME_BOX);
}
// eof BTSv1.2
$boxContent_attributes = '';
?>
<!-- search_eof //-->
|
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Lay-out mainpage header and products | frie | osCMax v2 Customization/Mods | 1 | 11-06-2006 12:00 PM |
| Remove System "osCMax v2.0" from part of search r | torweb | osCMax v2 Customization/Mods | 2 | 07-24-2006 01:59 PM |
| Howto include the search form in the header | serBelenguer | osCommerce 2.2 Modification Help | 5 | 10-05-2004 05:36 AM |
| Move search box to header | eviternity | osCMax v1.7 Discussion | 2 | 04-15-2004 07:05 PM |
| Full text search in advanced search | Anonymous | osCMax v1.7 Discussion | 0 | 04-15-2004 03:00 PM |