Guest Posted February 3, 2004 Share Posted February 3, 2004 :rolleyes: hi good day. i see people placing the search bar outside the infobox and place it near the header.. how do i do that? or is there any contrib that do that? thanks in advanced Link to comment Share on other sites More sharing options...
Guest Posted February 3, 2004 Share Posted February 3, 2004 I imagine that they probably just took the code listed in /catalog/includes/boxes/search.php and added it into /catalog/index.php (or some other file, depending on where you want to put it). -jared Link to comment Share on other sites More sharing options...
Guest Posted February 4, 2004 Share Posted February 4, 2004 Thank you for the reply, but im really poor with php.. can u tell me which part of the code should i strip and paste it into the index.php??? :( Link to comment Share on other sites More sharing options...
Tariq Posted February 4, 2004 Share Posted February 4, 2004 Its not index.php I actually found the answer myself to this same question by doing a search in the forums. Very good info and you may find something else that you would be interested in doing. I honestly cannot tell you EXACTLY where to paste it, and what to paste because everyone will have a different way they want their setup to be, but this is what I used, and where. <?php echo tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'); ?> </td> <td align="center" class="headerNavigation"> <table border="0" cellspacing="0" cellpadding="0"> <td class="headerNavigation" align="center"><?php echo ''; ?></td> <td align="center"><?php echo tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: 75px"') . tep_hide_session_id(); ?></td> <td align="center"><?php echo tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH); ?></td> <td class="headerNavigation" align="center"> <?php echo '<A href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><font color="#ffffff">Advanced Search</font></A>'; ?></td> </table> </form> I put it after the line with breadcrumb in the header.php, but you will have to experiment with it and find your own setting. As well as change the color and the like to make it what YOU want, on YOUR site to make it unique. That is the really cool thing about OSC. Even though it all runs the same? Everything can be completely custom... Good luck and use the SEARCH function, as well as the WIKI. I found TONS of good info doing that. As well as things I had never thought of doing, and making it better all the time. OH!!! and dont forget to comment out the search box in the column.php that it is in with " // " without the quotes so you wont have Two searches. One of these days, I will actually understand what I just changed... But reading the Manual DEFINATELY helps... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.