fabian2005 Posted October 21, 2008 Posted October 21, 2008 There is a 1800 number on my home page how do i edit / remove it
fabian2005 Posted October 21, 2008 Author Posted October 21, 2008 Can anyone help me, I found the 1-800 number in store/includes/header and i replace it with my number but now i receive this error <?php /* $Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // check if the 'install' directory exists, and warn of its existence if (WARN_INSTALL_EXISTENCE == 'true') { if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) { $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning'); } } // check if the configure.php file is writeable if (WARN_CONFIG_WRITEABLE == 'true') { if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) { $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning'); } } // check if the session folder is writeable if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') { if (STORE_SESSIONS == '') { if (!is_dir(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning'); } elseif (!is_writeable(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning'); } } } // check session.auto_start is disabled if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) { if (ini_get('session.auto_start') == '1') { $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning'); } } if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) { if (!is_dir(DIR_FS_DOWNLOAD)) { $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning'); } } if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } ?> <!-- --> <table cellspacing=0 cellpadding=0 width=758 align=center> <tr><td valign=top> <table cellspacing=0 cellpadding=0 width=758> <tr><td height=4></td></tr> <tr><td> <table cellspacing=0 cellpadding=0 width=758 class=ch1> <tr><td align=center> <table cellspacing=0 cellpadding=0 width=727> <tr><td height=86> <table cellspacing=0 cellpadding=0 width=727 height=86> <tr><td width=313 style="padding-left: 14px" style="padding-bottom: 11px" valign=bottom><a href=<?=tep_href_link('shopping_cart.php')?>><img src=images/m01.gif width=177 height=35 border=0></a></td> <td width=99> <table cellspacing=0 cellpadding=0> <tr><td class=ch4>Choose language:</td></tr> <tr><td> <? // LANGUAGES if (!isset($lng) || (isset($lng) && !is_object($lng))) { include(DIR_WS_CLASSES . 'language.php'); $lng = new language; } $languages_string = ''; reset($lng->catalog_languages); while (list($key, $value) = each($lng->catalog_languages)) { $languages_string .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES . $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> '; } echo $languages_string; ?> </td></tr> </table> </td> <td width=1><img src=images/m05.gif width=1 height=40></td> <td width=104 align=center> <table cellspacing=0 cellpadding=0> <tr><td class=ch4>Currencies:</td></tr> <tr><td> <? // CURRENCIES echo tep_draw_form('currencies', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get'); reset($currencies->currencies); $currencies_array = array(); while (list($key, $value) = each($currencies->currencies)) { $currencies_array[] = array('id' => $key, 'text' => $value['title']); } $hidden_get_variables = ''; reset($HTTP_GET_VARS); while (list($key, $value) = each($HTTP_GET_VARS)) { if ( ($key != 'currency') && ($key != tep_session_name()) && ($key != 'x') && ($key != 'y') ) { $hidden_get_variables .= tep_draw_hidden_field($key, $value); } } echo tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onChange="this.form.submit(); "class=se1"') . $hidden_get_variables . tep_hide_session_id(); echo '</form>'; ?> </td></tr> </table> </td> <td width=1><img src=images/m05.gif width=1 height=40></td> <td width=58 align=right style="padding-right: 7px"><a href=<?=tep_href_link('shopping_cart.php')?>><img src=images/m06.gif width=24 height=25 border=0></a></td> <td width=151> <table cellspacing=0 cellpadding=0> <tr><td class=ch4>Shopping Cart</td></tr> <tr><td class=se4>now in your cart <a class=ml1 href=<?=tep_href_link('shopping_cart.php')?>><?=$cart->count_contents()?> items</a></td></tr> </table> </td></tr> </table> </td></tr> <tr> <? switch($tab_sel){ case 2: $td1 = 'width=105 height=21 border=r0 background=images/m077.jpg'; $td2 = 'width=105 height=21 border=r0 background=images/m088.jpg'; $td3 = 'width=105 height=21 border=r0 background=images/m077.jpg'; $td4 = 'width=105 height=21 border=r0 background=images/m077.jpg'; $td5 = 'width=104 height=21 border=r0 background=images/m0777.jpg'; break; case 3: $td1 = 'width=105 height=21 border=r0 background=images/m077.jpg'; $td2 = 'width=105 height=21 border=r0 background=images/m077.jpg'; $td3 = 'width=105 height=21 border=r0 background=images/m088.jpg'; $td4 = 'width=105 height=21 border=r0 background=images/m077.jpg'; $td5 = 'width=104 height=21 border=r0 background=images/m0777.jpg'; break; case 4: $td1 = 'width=105 height=21 border=r0 background=images/m077.jpg'; $td2 = 'width=105 height=21 border=r0 background=images/m077.jpg'; $td3 = 'width=105 height=21 border=r0 background=images/m077.jpg'; $td4 = 'width=105 height=21 border=r0 background=images/m088.jpg'; $td5 = 'width=104 height=21 border=r0 background=images/m0777.jpg'; break; case 5: $td1 = 'width=105 height=21 border=r0 background=images/m077.jpg'; $td2 = 'width=105 height=21 border=r0 background=images/m077.jpg'; $td3 = 'width=105 height=21 border=r0 background=images/m077.jpg'; $td4 = 'width=105 height=21 border=r0 background=images/m077.jpg'; $td5 = 'width=104 height=21 border=r0 background=images/m99.jpg'; break; default: $td1 = 'width=105 height=21 border=r0 background=images/m088.jpg'; $td2 = 'width=105 height=21 border=r0 background=images/m077.jpg'; $td3 = 'width=105 height=21 border=r0 background=images/m077.jpg'; $td4 = 'width=105 height=21 border=r0 background=images/m077.jpg'; $td5 = 'width=104 height=21 border=r0 background=images/m0777.jpg'; } ?> <td height=21 align=right> <table cellspacing=0 cellpadding=0 border=0> <tr><td <?=$td1?> align=center valign=middle><a class=ml0 href=<?=tep_href_link('index.php')?>>Home</a></td> <td <?=$td2?> align=center valign=middle><a class=ml0 href=<?=tep_href_link('products_new.php')?>>New Products</a></td> <td <?=$td3?> align=center valign=middle><a class=ml0 href=<?=tep_href_link('account.php')?>>My Account</a></td> <td <?=$td4?> align=center valign=middle><a class=ml0 href=<?=tep_href_link('shopping_cart.php')?>>Shopping cart</a></td> <td <?=$td5?> align=center valign=middle><a class=ml0 href=<?=tep_href_link('checkout_shipping.php')?>>Checkout</a></td></tr> </table> </td></tr> <tr><td bgcolor=#E77B00 height=42> <table cellspacing=0 cellpadding=0> <tr><td width=517 style="padding-left: 23px"><img src=images/m12.gif width=5 height=5 align=absmiddle> <a href=<?=tep_href_link('specials.php')?> class=ml2>Specials</a><span class=ch5></span><img src=images/m12.gif width=5 height=5 align=absmiddle> <a href=<?=tep_href_link('advanced_search.php')?> class=ml2>Search</a><span class=ch5></span><img src=images/m12.gif width=5 height=5 align=absmiddle> <a href=<?=tep_href_link('contact_us.php')?> class=ml2>Contact Us</a><span class=ch5></span><img src=images/m12.gif width=5 height=5 align=absmiddle> <a href=<?=tep_href_link('create_account.php')?> class=ml2>Create an account</a><span class=ch5></span><img src=images/m12.gif width=5 height=5 align=absmiddle> <?=(!tep_session_is_registered('customer_id') ? '<a href='.tep_href_link('login.php').' class=ml2>Customer Login</a>' : '<a href='.tep_href_link('logoff.php').' class=ml2>Sign Out</a>')?></td> <td width=1><img src=images/m13.gif width=1 height=23></td> <td width=209 align=center class=ml2>Phone us: 1-800-578-9038 Toll-free</td></tr> </table> </td></tr> <tr><td height=3></td></tr> </table> </td></tr> </table> </td></tr> </table> </td></tr> <tr><td height=100% valign=top align=center class=ch2> <table cellspacing=0 cellpadding=0 width=727> <tr><td width=165 valign=top> <table cellspacing=0 cellpadding=0 width=165> <? // ---- CATEGORIES function tep_show_category($counter) { global $tree, $categories_string, $cPath_array; if(!$tree[$counter]['level']){ $categories_string .= $categories_string ? '<tr><td bgcolor=#68A200 align=center><img src=images/m15.gif width=162 height=1></td></tr>' : ''; $categories_string .= '<tr><td bgcolor=#68A200 height=25 class=ch6><img src=images/m14.gif width=5 height=5 align=absmiddle> <a class=ml3 href='; if ($tree[$counter]['parent'] == 0) { $cPath_new = 'cPath=' . $counter; } else { $cPath_new = 'cPath=' . $tree[$counter]['path']; } $categories_string .= tep_href_link('index.php', $cPath_new) . '>'; // display categry name $categories_string .= $tree[$counter]['name']; $categories_string .= '</a></td></tr> '; }else{ // SUBCATEGORY $categories_string .= '<tr><td bgcolor=#68A200 height=25 class=ch6><img src=images/m14.gif width=5 height=5 align=absmiddle> '; for($i=0;$i<$tree[$counter]['le vel'];$i++) $categories_string .= ' '; $categories_string .= ' <a class=ml3 style="font-weight:normal;" href='; if ($tree[$counter]['parent'] == 0) { $cPath_new = 'cPath=' . $counter; } else { $cPath_new = 'cPath=' . $tree[$counter]['path']; } $categories_string .= tep_href_link('index.php', $cPath_new) . '>-'; // display category name $categories_string .= $tree[$counter]['name']; $categories_string .= '</a></td></tr>'; } if ($tree[$counter]['next_id'] != false) { tep_show_category($tree[$counter]['next_id']); } } define(TABLE_CATEGORIES, "categories"); define(TABLE_CATEGORIES_DESCRIPTION, "categories_description"); $categories_string = ''; $tree = array(); $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); while ($categories = tep_db_fetch_array($categories_query)) { $tree[$categories['categories_id']] = array('name' => $categories['categories_name'], 'parent' => $categories['parent_id'], 'level' => 0, 'path' => $categories['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $categories['categories_id']; } $parent_id = $categories['categories_id']; if (!isset($first_element)) { $first_element = $categories['categories_id']; } } //------------------------ if ($cPath) { $new_path = ''; reset($cPath_array); while (list($key, $value) = each($cPath_array)) { unset($parent_id); unset($first_id); $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$value . "' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); if (tep_db_num_rows($categories_query)) { $new_path .= $value; while ($row = tep_db_fetch_array($categories_query)) { $tree[$row['categories_id']] = array('name' => $row['categories_name'], 'parent' => $row['parent_id'], 'level' => $key+1, 'path' => $new_path . '_' . $row['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $row['categories_id']; } $parent_id = $row['categories_id']; if (!isset($first_id)) { $first_id = $row['categories_id']; } $last_id = $row['categories_id']; } $tree[$last_id]['next_id'] = $tree[$value]['next_id']; $tree[$value]['next_id'] = $first_id; $new_path .= '_'; } else { break; } } } $categories_string .= ''; tep_show_category($first_element); $categories_string .= ''; echo $categories_string; ?> <tr><td height=3></td></tr> <tr><td><a href=<?=tep_href_link('contact_us.php')?>><img src=images/m16.gif width=162 height=75 border=0></a></td></tr> <tr><td height=69 align=center> <? // SEARCH ?> <table cellspacing=0 cellpadding=0> <tr><td class=ch7 colspan=2>Site Search</td></tr> <tr><td height=7 colspan=2></td></tr> <?=tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get')?> <tr><td width=108> <?=tep_draw_input_field('keywords', '', 'size="20" maxlength="50" onclick="this.value=''" value="keyword" class=se2') . ' ' . tep_hide_session_id()?></td> <td width=37><input type=image src=images/m17.gif></td></tr> </form> <? // END SEARCH ?> </table> </td></tr> <tr><td bgcolor=#CCCCCC height=1></td></tr> <tr><td align=center width=165> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> </td></tr> </table> </td> <td width=5></td> <td width=557 valign=top> <table cellspacing=0 cellpadding=0 width=557> <tr><td><a href=<?=tep_href_link('index.php','cPath=38')?>><img src=images/m19.gif width=401 height=121 border=0></a></td> <td width=5></td> <td width=151 valign=top> <table cellspacing=0 cellpadding=0 width=151> <tr><td bgcolor=#00689F height=29 align=center class=ch14>Select manufacturer</td></tr> <tr><td height=92 class=ch15 align=center> <? // ---- MANUFACTURERS $manufacturers_query = tep_db_query("select manufacturers_id, manufacturers_name from " . TABLE_MANUFACTURERS . " order by manufacturers_name"); if ($number_of_rows = tep_db_num_rows($manufacturers_query)) { echo ' <table cellspacing=0 cellpadding=0> <tr><td height=9></td></tr> '. tep_draw_form('manufacturers', tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get') .'<tr><td>'; $manufacturers_array = array(); while ($manufacturers = tep_db_fetch_array($manufacturers_query)) { $manufacturers_name = ((strlen($manufacturers['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($manufacturers['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturers['manufacturers_name']); $manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'], 'text' => $manufacturers_name); } echo tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, (isset($HTTP_GET_VARS['manufacturers_id']) ? $HTTP_GET_VARS['manufacturers_id'] : ''), 'onChange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" class=se4') . tep_hide_session_id(); echo ' </td></tr> </form> '; } ?> <tr><td height=8></td></tr> <tr><td align=right><a href=#><img src=images/m17.gif width=37 height=21 border=0></a></td></tr> </table> </td></tr> </table> </td></tr> <tr><td height=4></td></tr> <tr><td colspan=3>
fabian2005 Posted October 21, 2008 Author Posted October 21, 2008 Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /store/includes/header.php on line 364
♥Vger Posted October 21, 2008 Posted October 21, 2008 Well, the only thing we can tell by looking at that code is that it's from a template and not standard osCommerce code. We can't tell which line is line number 364. Download the file and open it in a plain text editor like Text Pad which shows line numbers and post just the affected line. Vger
germ Posted October 21, 2008 Posted October 21, 2008 I'm thinking this line: <?=tep_draw_input_field('keywords', '', 'size="20" maxlength="50" onclick="this.value=''" value="keyword" class=se2') . ' ' . tep_hide_session_id()?></td> should be: <?=tep_draw_input_field('keywords', '', 'size="20" maxlength="50" onclick="this.value=\'\'" value="keyword" class=se2') . ' ' . tep_hide_session_id()?></td> If you've been using the osC File Mangler Manager to edit things, STOP! 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 >
fabian2005 Posted October 22, 2008 Author Posted October 22, 2008 Hey thank you so much you have solved one of my nightmares
fabian2005 Posted October 22, 2008 Author Posted October 22, 2008 I try reading before i post anything But one of the esaiest things are giving me problems here it is define('NAVBAR_TITLE', 'Privacy Notice'); define('HEADING_TITLE', 'Privacy Notice'); define('TEXT_INFORMATION', 'Put here your Privacy Notice information.'); ?> This Privacy Statement describes how we collect and use your non-public personal information.(1)We collect Information about your transactions with us.(2)We use Internet technologies like cookies to collect Information and for other purposes. To assist us in providing services to you. To allow you to change Web pages during your visit without having to re-enter your password; • To store your preferences and other information and to track activity on our Web site; • To better understand the effectiveness of our promotional campaigns; • To determine whether you came to our site from a banner ad or search engine Web site; • To determine whether you've acted on our promotional messages. We also accept questions by email and by telephone as identified below: BY MAIL: [email protected] BY TELEPHONE: 1-800-578-9038
fabian2005 Posted October 22, 2008 Author Posted October 22, 2008 I want to place the following in privacy This Privacy Statement describes how we collect and use your non-public personal information.(1)We collect Information about your transactions with us.(2)We use Internet technologies like cookies to collect Information and for other purposes. To assist us in providing services to you. To allow you to change Web pages during your visit without having to re-enter your password; • To store your preferences and other information and to track activity on our Web site; • To better understand the effectiveness of our promotional campaigns; • To determine whether you came to our site from a banner ad or search engine Web site; • To determine whether you've acted on our promotional messages. We also accept questions by email and by telephone as identified below: BY MAIL: [email protected] BY TELEPHONE: 1-800-578-9038
Recommended Posts
Archived
This topic is now archived and is closed to further replies.