robertw477 Posted April 25, 2008 Share Posted April 25, 2008 I am trying to edit this page. I have no idea which file to edit. In the root I download login.php and the data I am trying to edit is not in the file. I opened it in notepad. I looked in catalog sub filed and the file looks like the same. I need to update so I show 2008 catalog downloads? Is the correct file I need to edit listed somewhere else? What file do I edit for this page? http://www.bigapplecard.com/login.php :angry: Appreciate any help! Robert Link to comment Share on other sites More sharing options...
markg-uk Posted April 25, 2008 Share Posted April 25, 2008 includes/languages/english/login.php would be my guess Link to comment Share on other sites More sharing options...
robertw477 Posted April 25, 2008 Author Share Posted April 25, 2008 includes/languages/english/login.php would be my guess I checked that file. The info is not there. This is so frustrating! Robert Link to comment Share on other sites More sharing options...
ruizerwin Posted April 25, 2008 Share Posted April 25, 2008 I checked that file. The info is not there. This is so frustrating! Robert Look like it on your login.php Search on your login.php by catalogue.gif You will find the image. After the image make the changes Erwin D. Padilla Web Developer and Linux Admin Link to comment Share on other sites More sharing options...
germ Posted April 25, 2008 Share Posted April 25, 2008 Look in the login.php in the root folder. Looking at the HTML source, the code goes like this: <!-- body_text //--> <td width="100%" valign="top"><form name="login" action="http://www.bigapplecard.com/login.php/action/process" method="post"><table border="0" width="100%" cellspacing="0" cellpadding="5"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading">Welcome, please select an option:</td> <td class="pageHeading" align="right"><img src="images/table_background_login.gif" border="0" alt="Welcome, please select an option:" title="Welcome, please select an option:"></td> </tr> </table></td> </tr> <tr> <td><img src="images/pixel_trans.gif" width="100%" height="1" border="0" alt=""></td> </tr> <tr> <td><table align="center" border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main" width="50%" valign="top"><b>Request a Catalog</b></td> </tr> <tr> <td align="center" width="50%" height="100%" valign="top"><table border="0" width="100%" height="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" height="100%" cellspacing="0" cellpadding="2"> <tr> <td align="left" class="main" valign="top">I am a retailer and would like to request a printed catalog with ordering information and pricing.<br><br> <a href="2007catalog.pdf"><u>Download our 2007 Catalog here</u></a>.<br><br><a href="2007catalog.pdf"><u>Download our 2007 Update Packet here</u></a>. <br><br><br><br><a href="http://www.bigapplecard.com/create_account_b2b.php"><img src="includes/languages/english/images/buttons/button_continue_b2b.gif" border="0" alt="Continue" title="Continue"></a></td> </tr> The part you want to edit is just at the end of the HTML I posted. In the login.php in the root folder, look for: <!-- body_text //--> Then start following all the "include" or "require" statements and eventually you'll find the code you need. If you want help, post the contents of the login.php in the root folder. I'm sure someone will be able to spot candidate files to look in. 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...
robertw477 Posted April 25, 2008 Author Share Posted April 25, 2008 Look in the login.php in the root folder. Looking at the HTML source, the code goes like this: <!-- body_text //--> <td width="100%" valign="top"><form name="login" action="http://www.bigapplecard.com/login.php/action/process" method="post"><table border="0" width="100%" cellspacing="0" cellpadding="5"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading">Welcome, please select an option:</td> <td class="pageHeading" align="right"><img src="images/table_background_login.gif" border="0" alt="Welcome, please select an option:" title="Welcome, please select an option:"></td> </tr> </table></td> </tr> <tr> <td><img src="images/pixel_trans.gif" width="100%" height="1" border="0" alt=""></td> </tr> <tr> <td><table align="center" border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main" width="50%" valign="top"><b>Request a Catalog</b></td> </tr> <tr> <td align="center" width="50%" height="100%" valign="top"><table border="0" width="100%" height="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" height="100%" cellspacing="0" cellpadding="2"> <tr> <td align="left" class="main" valign="top">I am a retailer and would like to request a printed catalog with ordering information and pricing.<br><br> <a href="2007catalog.pdf"><u>Download our 2007 Catalog here</u></a>.<br><br><a href="2007catalog.pdf"><u>Download our 2007 Update Packet here</u></a>. <br><br><br><br><a href="http://www.bigapplecard.com/create_account_b2b.php"><img src="includes/languages/english/images/buttons/button_continue_b2b.gif" border="0" alt="Continue" title="Continue"></a></td> </tr> The part you want to edit is just at the end of the HTML I posted. In the login.php in the root folder, look for: <!-- body_text //--> Then start following all the "include" or "require" statements and eventually you'll find the code you need. If you want help, post the contents of the login.php in the root folder. I'm sure someone will be able to spot candidate files to look in. Here is the login.php from the root. Still dont understand why I cant get that page correct. <?php /* $Id: login.php,v 1.80 2003/06/05 23:28:24 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); // redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled (or the session has not started) if ($session_started == false) { tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE)); } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_LOGIN); $error = false; if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'process')) { $email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']); $password = tep_db_prepare_input($HTTP_POST_VARS['password']); // Check if email exists $check_customer_query = tep_db_query("select customers_id, customers_firstname, customers_password, customers_email_address, customers_default_address_id from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'"); if (!tep_db_num_rows($check_customer_query)) { $error = true; } else { $check_customer = tep_db_fetch_array($check_customer_query); // Check that password is good if (!tep_validate_password($password, $check_customer['customers_password'])) { $error = true; } else { if (SESSION_RECREATE == 'True') { tep_session_recreate(); } $check_country_query = tep_db_query("select entry_country_id, entry_zone_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$check_customer['customers_id'] . "' and address_book_id = '" . (int)$check_customer['customers_default_address_id'] . "'"); $check_country = tep_db_fetch_array($check_country_query); $customer_id = $check_customer['customers_id']; $customer_default_address_id = $check_customer['customers_default_address_id']; $customer_first_name = $check_customer['customers_firstname']; $customer_country_id = $check_country['entry_country_id']; $customer_zone_id = $check_country['entry_zone_id']; tep_session_register('customer_id'); tep_session_register('customer_default_address_id'); tep_session_register('customer_first_name'); tep_session_register('customer_country_id'); tep_session_register('customer_zone_id'); tep_db_query("update " . TABLE_CUSTOMERS_INFO . " set customers_info_date_of_last_logon = now(), customers_info_number_of_logons = customers_info_number_of_logons+1 where customers_info_id = '" . (int)$customer_id . "'"); // restore cart contents $cart->restore_contents(); if (sizeof($navigation->snapshot) > 0) { $origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']); $navigation->clear_snapshot(); tep_redirect($origin_href); } else { tep_redirect(tep_href_link(FILENAME_DEFAULT)); } } } } if ($error == true) { $messageStack->add('login', TEXT_LOGIN_ERROR); } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_LOGIN, '', 'SSL')); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <!-- Begin Search Optimize --> <META NAME="MSSmartTagsPreventParsing" CONTENT="TRUE"> <META NAME="rating" CONTENT="General"> <META NAME="MS.LOCALE" CONTENT="EN-US"> <META NAME="CATEGORY" CONTENT="home page"> <META NAME="robots" CONTENT="index,follow"> <META http-equiv="Classification" CONTENT="wholesale sports products"> <META NAME="URL" CONTENT="http://www.bigapplecard.com/"> <META NAME="revisit-after" CONTENT="31 days"> <META NAME="VW96.objecttype" CONTENT="sports caps,NASCAR, NASCAR products, Chase products, sports memorabilia, memorabilia, autographs, autographed, NFL, MLB"> <META NAME="DC.Title" CONTENT="Wholesale sports memorabilia online!"> <META NAME="DC.Subject" CONTENT="sports cards, sports memorabilia, NASCAR, NASCAR products, Chase products, sports memorabilia, memorabilia, autographs, autographed, NFL, MLB"> <META NAME="DC.Coverage.PlaceName" CONTENT="Global"> <!-- sports cards, sports memorabilia, NASCAR, NASCAR products, Chase products, sports memorabilia, memorabilia, autographs, autographed, NFL, MLB --> <!-- End Search Optimize --> <?php // BOF: WebMakers.com Changed: Header Tag Controller v1.0 // Replaced by header_tags.php if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) { require(DIR_WS_INCLUDES . 'header_tags.php'); } else { ?> <title><?php echo TITLE; ?></title> <?php } // EOF: WebMakers.com Changed: Header Tag Controller v1.0 ?> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <script language="javascript"><!-- function session_win() { window.open("<?php echo tep_href_link(FILENAME_INFO_SHOPPING_CART); ?>","info_shopping_cart","height=460,width=430,toolbar=no,statusbar=no,scrollbars=yes").focus(); } //--></script> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="150" valign="top" bgcolor="#FFFFFF"><table border="0" width="150" cellspacing="0" cellpadding="5" bgcolor="#FFFFFF"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?><table border="0" width="100%" cellspacing="0" cellpadding="5"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_login.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '1'); ?></td> </tr> <?php if ($messageStack->size('login') > 0) { ?> <tr> <td><?php echo $messageStack->output('login'); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '1'); ?></td> </tr> <?php } if ($cart->count_contents() > 0) { ?> <tr> <td class="smallText"><?php echo TEXT_VISITORS_CART; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '1'); ?></td> </tr> <?php } ?> <tr> <td><table align="center" border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main" width="50%" valign="top"><b><?php echo HEADING_NEW_CUSTOMER; ?></b></td> </tr> <tr> <td align="center" width="50%" height="100%" valign="top"><table border="0" width="100%" height="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" height="100%" cellspacing="0" cellpadding="2"> <tr> <td align="left" class="main" valign="top"><?php echo TEXT_NEW_CUSTOMER . '<br><br>' . TEXT_NEW_CUSTOMER_INTRODUCTION . '<br><br>' . '<a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT_B2B, '', 'SSL') . '">' . tep_image_button('button_continue_b2b.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '1'); ?></td> </tr> <TR> <TD CLASS="main" align="left"><?php echo TEXT_CATALOG_ORDERING; ?></td> </TR> <TR> <TD COLSPAN="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></TD> </TR> </table></td> </tr> </table></td> <td align="center" width="50%" height="100%" valign="top"><table border="0" width="100%" height="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" height="100%" cellspacing="0" cellpadding="2"> <TR> <TD CLASS="main" align="center" valign="top"><?php echo '<a href="' . tep_href_link('2008wholesalecatalog.pdf') . '">' . tep_image(DIR_WS_IMAGES . 'catalogue.gif', 'Download our new 2008 catalog complete catalog!') . '</a>'; ?><br><br><a href="2008wholesalecatalog.pdf">Download Our Complete Catalog</td> </TR> <TR> <TD COLSPAN="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></TD> </TR> </TABLE></TD> </TR> </TABLE></TD> </TR> </TABLE></TD> </tr> </table></form></td> <!-- body_text_eof //--> <td width="150" valign="top" bgcolor="#FFFFFF"><table border="0" width="150" cellspacing="0" cellpadding="5" bgcolor="#FFFFFF"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-915681-1"; urchinTracker(); </script> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Robert Link to comment Share on other sites More sharing options...
germ Posted April 25, 2008 Share Posted April 25, 2008 My money is on this: <TD CLASS="main" align="left"><?php echo TEXT_CATALOG_ORDERING; ?></td> Look for the definition for TEXT_CATALOG_ORDERING It may be found in /includes/languages/english.php 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...
robertw477 Posted April 27, 2008 Author Share Posted April 27, 2008 My money is on this: <TD CLASS="main" align="left"><?php echo TEXT_CATALOG_ORDERING; ?></td> Look for the definition for TEXT_CATALOG_ORDERING It may be found in /includes/languages/english.php Thanks. The login.php file in that area had the data I was looking for. Appreciate the followup help. Rob Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.