stevennickelby Posted December 13, 2005 Share Posted December 13, 2005 Can't get the search box(or any other box to) go to the right in the header.(header.php)... Can anybody help...please!! There must be a way :( Cheers!! Link to comment Share on other sites More sharing options...
stevennickelby Posted December 13, 2005 Author Share Posted December 13, 2005 Can't get the search box(or any other box to) go to the right side in the HEADER.(header.php)... I placed the script, <?php require('boxes/search2.php'); ?> and the box displays...only it's in the left coloumn of the header. I did a test and used A word, instead of THE php script and that displayed on the right hand side, but i can't get the box to be on the right? Also is there a way to have the search field and magnifying glass to be displayed without the big box around it?, -maybe if that big box is gone the search field might go to the right? Can anybody help...please!! There must be a way :( Cheers!! Link to comment Share on other sites More sharing options...
Guest Posted December 14, 2005 Share Posted December 14, 2005 Search is your best friend here http://www.oscommerce.com/community?contri...er&category=all The_Bear Link to comment Share on other sites More sharing options...
Guest Posted December 15, 2005 Share Posted December 15, 2005 kb article: http://www.oscommerce.info/kb/osCommerce/G...s_and_Tricks/55 Link to comment Share on other sites More sharing options...
Guest Posted July 6, 2006 Share Posted July 6, 2006 Thanks for that link Melinda Unfortunately it keeps coming up with an error message Call to undefined function: osc_draw_input_field() My whole table cell looks likes this <td valign="middle"><?php echo tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') . osc_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id() . osc_draw_hidden_field('search_in_description' , '1') . 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></form>';?> </td> I don't know what I have done wrong - PHP is not my hot point but I am trying to improve. Also if I want to put the currency selector in the header also how do I do that, as when I put the infobox in it appears on the right. If anyone could explain the reason it appears on the right for my understanding I would be grateful. Link to comment Share on other sites More sharing options...
paq1200 Posted February 25, 2008 Share Posted February 25, 2008 I am using the search2 in my header but when I do a search if I am logged in it will log me out. I am using yahoo as my service provider. When I use the search that comes standard with oscommerce it does not log me out. I am thinking it has something to do with the following line but not sure. I am new to php. this is the search box that comes with oscommerce. $info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'), this is the search2: <form name="quick_find" action="advanced_search_result.php" method="get"> there is nothing about NONSSL in the code for search2. Any help is appreciated. Mike Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.