Googlebutts Posted May 25, 2009 Share Posted May 25, 2009 My search box has disappeared :( Is there something that I can change in this code to make it show back up? I found the code here: /home/content/g/o/o/googlebutts/html//includes/boxes <?php /* $Id: search.php,v 1.22 2003/02/10 22:31:05 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ ?> <!-- search //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_SEARCH); 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' => ' <table cellpadding="0" cellspacing="4" border="0"> <tr><td colspan="2" style="width:100%;vertical-align:middle;">'. tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="height:19px; width:100%;"') . '' . tep_hide_session_id() . '</td></tr> <tr><td class="bg_input">' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH,' style="float:right;vertical-align:middle;margin:0px 0px 0px 12px;"') . '' . BOX_SEARCH_TEXT . '</td></tr> <tr><td><em><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_SEARCH_ADVANCED_SEARCH . '</a></em></td></tr> </table> '); new infoBox($info_box_contents); ?> </td> </tr> <!-- search_eof //--> Link to comment Share on other sites More sharing options...
germ Posted May 25, 2009 Share Posted May 25, 2009 require(DIR_WS_BOXES . 'search.php'); Check /includes/column_left.php for that line of code. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Googlebutts Posted May 25, 2009 Author Share Posted May 25, 2009 Found it. Now what do I do to it :huh: There area lot of boxes listed there that are nowhere to be found on the site. Link to comment Share on other sites More sharing options...
germ Posted May 25, 2009 Share Posted May 25, 2009 I really don't understand the Q? :unsure: Is that line of code there? If not add it and see what happens. BACKUP THE FILE FIRST!!! It's possible that your TEMPLATE isn't coded to use it (there is an advanced search in the footer). If you require help adding the code post the contents of column_left.php and I'll show you where. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Googlebutts Posted May 25, 2009 Author Share Posted May 25, 2009 It's on the footer, I'm dork, didn't see it somehow :rolleyes: Is there a way to put a box somwhere on the top or side of the page? Link to comment Share on other sites More sharing options...
germ Posted May 25, 2009 Share Posted May 25, 2009 You could try adding the line of code to column_left.php and see what happens... :blink: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Googlebutts Posted May 25, 2009 Author Share Posted May 25, 2009 The coding is there. The ones that actually show up say include, the others say require. Is that what I should change for what I want to show on hte left? And is it the same for the right? Here is a copy: <?php /* $Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ ?> <table border="0"cellspacing="0" cellpadding="0" class="box_width_left"> <tr><td width="100%" style="width:100%; padding:0px 14px 10px 0px;"> <table border="0" cellspacing="0" cellpadding="0"> <?php if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_categories_box(); } else { include(DIR_WS_BOXES . 'categories.php'); } // ------------------------------------------------- if (isset($HTTP_GET_VARS['products_id'])) { if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); } else { include(DIR_WS_BOXES . 'specials.php'); } // ------------------------------------------------- // require(DIR_WS_BOXES . 'reviews.php'); // ------------------------------------------------- // require(DIR_WS_BOXES . 'information.php'); // ------------------------------------------------- // require(DIR_WS_BOXES . 'whats_new.php'); // ------------------------------------------------- if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_manufacturers_box(); } else { // include(DIR_WS_BOXES . 'manufacturers.php'); } // ------------------------------------------------- // if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php'); // ------------------------------------------------- if (isset($HTTP_GET_VARS['products_id'])) { if (tep_session_is_registered('customer_id')) { $check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'"); $check = tep_db_fetch_array($check_query); if ($check['count'] > 0) { // include(DIR_WS_BOXES . 'best_sellers.php'); } else { // include(DIR_WS_BOXES . 'product_notifications.php'); } } else { // include(DIR_WS_BOXES . 'product_notifications.php'); } } else { // include(DIR_WS_BOXES . 'best_sellers.php'); } // ------------------------------------------------- // if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php'); // ------------------------------------------------- // require(DIR_WS_BOXES . 'search.php'); // ------------------------------------------------- if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { // include(DIR_WS_BOXES . 'languages.php'); // include(DIR_WS_BOXES . 'currencies.php'); } // require(DIR_WS_BOXES . 'shopping_cart.php'); ?> </table> </td></tr> </table> Link to comment Share on other sites More sharing options...
germ Posted May 25, 2009 Share Posted May 25, 2009 Change this: // require(DIR_WS_BOXES . 'search.php'); to require(DIR_WS_BOXES . 'search.php'); And see what happens. BACKUP FIRST!!! You break it - You bought it... :blush: If you don't like the results change it back. ;) If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Googlebutts Posted May 25, 2009 Author Share Posted May 25, 2009 You break it - You bought it...LMAO Link to comment Share on other sites More sharing options...
germ Posted May 25, 2009 Share Posted May 25, 2009 :lol: If it works at all we can reposition it's location in the left column if you like. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.