gg_austin Posted May 29, 2006 Posted May 29, 2006 Howdy wise men and women! This whole ride has been one of frustration, despair and great victory.. What you ask?- Well I am a total newbie to all of this and I've spent some time trying to get things to work. I've figured out a lot of stuff that I was going to ask here, but I have some questions left. I probably could search the forums with some time and patience, but right now I'm low on both so here goes: My Webpage Just underneath the banner there?s some text that I have not been able to remove " HEADING_TITLE", Where do I find it (/english/index.php perhaps?? - just can not find it in the code) Also, when you click on a product category and you get the descriptions of the items, you can see the following inside the borders (or whatever it's called) TABLE_HEADING_IMAGE TABLE_HEADING_PRODUCTS+ TABLE_HEADING_PRICE and TABLE_HEADING_BUY_NOW I do not believe they are supposed to be displayed, or maybe I am wrong- that might be the default way? If not, how do I get them back to normal? Now, the icons on the top right of the site "my account", "Cart contents" and "checkout"- where do I go to safely remove them from the page? When I click on the "Log yourself in" (or the "my Account"-button) I get the following error: Parse error: parse error, unexpected $ in /home/midnight/public_html/osCommerce/catalog/includes/languages/english/login.php on line 13 Do you know how I should fix this? I know , that was a bunch of questions- perhaps you can answer some, I would greatly appreciate it!! If you see any other errors or simply have comments on the website- PLEASE let me know - I am a complete beginner (until recently- lol) and any critique is good!! Thanks again, GG
choosealogin Posted May 29, 2006 Posted May 29, 2006 I think you may have inadvertantly overwritten your catalog/includes/languages/english/index.php file. The correct (original, anyway) one would look like this <?php /* $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', ''); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Let\'s See What We Have Here'); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', '<b>Show:'); define('TEXT_BUY', 'Buy 1 \''); define('TEXT_NOW', '\' now'); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What\'s New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> For your parse error, could you paste the first 20 lines of catalog/includes/languages/english/login.php here? For your 3 pictures/links up in the upper right hand corner, those are in catalog/includes/header.php <!-- <td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?> </td> --> Add the <!-- at the beginning and the --> at the end, like I pasted here. That will make them disappear. Howdy wise men and women! This whole ride has been one of frustration, despair and great victory.. What you ask?- Well I am a total newbie to all of this and I've spent some time trying to get things to work. I've figured out a lot of stuff that I was going to ask here, but I have some questions left. I probably could search the forums with some time and patience, but right now I'm low on both so here goes: My Webpage Just underneath the banner there's some text that I have not been able to remove " HEADING_TITLE", Where do I find it (/english/index.php perhaps?? - just can not find it in the code) Also, when you click on a product category and you get the descriptions of the items, you can see the following inside the borders (or whatever it's called) TABLE_HEADING_IMAGE TABLE_HEADING_PRODUCTS+ TABLE_HEADING_PRICE and TABLE_HEADING_BUY_NOW I do not believe they are supposed to be displayed, or maybe I am wrong- that might be the default way? If not, how do I get them back to normal? Now, the icons on the top right of the site "my account", "Cart contents" and "checkout"- where do I go to safely remove them from the page? When I click on the "Log yourself in" (or the "my Account"-button) I get the following error: Parse error: parse error, unexpected $ in /home/midnight/public_html/osCommerce/catalog/includes/languages/english/login.php on line 13 Do you know how I should fix this? I know , that was a bunch of questions- perhaps you can answer some, I would greatly appreciate it!! If you see any other errors or simply have comments on the website- PLEASE let me know - I am a complete beginner (until recently- lol) and any critique is good!! Thanks again, GG
gg_austin Posted June 14, 2006 Author Posted June 14, 2006 Thank you choosealogin!! Sorry, I have been away for a while so I never got to read your answer.. You did solve my first problem- the Heading_title.. I had messed with it trying to insert a picture there. Here's the code I get from the login.php: and Thank you again. Looking forward to your next reply..or anyone elses GG ------------------------------------------------------------------ <?php /* $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', 'This is a default setup of the osCommerce project, products shown are for demonstrational purposes, <b>any products purchased will not be delivered nor will the customer be billed</b>. Any information seen on these products is to be treated as fictional.<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Error Messages</b><br><br>If there are any error or warning messages shown above, please correct them first before proceeding.<br><br>Error messages are displayed at the very top of the page with a complete <span class="messageStackError">background</span> color.<br><br>Several checks are performed to ensure a healthy setup of your online store - these checks can be disabled by editing the appropriate parameters at the bottom of the includes/application_top.php file.</td></tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"><b>Editing Page Texts</b><br><br>The text shown here can be modified in the following file, on each language basis:<br><br><nobr class="messageStackSuccess">[path to catalog]/includes/languages/' . $language . '/' . FILENAME_DEFAULT . '</nobr><br><br>That file can be edited manually, or via the Administration Tool with the <nobr class="messageStackSuccess">Languages->' . ucfirst($language) . '->Define</nobr> or <nobr class="messageStackSuccess">Tools->File Manager</nobr> modules.<br><br>The text is set in the following manner:<br><br><nobr>define(\'TEXT_MAIN\', \'<span class="messageStackSuccess">This is a default setup of the osCommerce project...</SPAN>\');</NOBR><BR><BR>The text highlighted in green may be modified - it is important to keep the define() of the TEXT_MAIN keyword. To remove the text for TEXT_MAIN completely, the following example is used where only two single quote characters exist:<BR><BR><NOBR>define(\'TEXT_MAIN\', \'\');</NOBR><BR><BR>More information concerning the PHP define() function can be read <A href="http://www.php.net/define" target=_blank><U>here</U></A>.</TD></TR><TR><TD class=main valign="top">' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . '</TD><TD class=main valign="top"><B>Securing The Administration Tool</B><BR><BR>It is important to secure the Administration Tool as there is currently no security implementation available.</TD></TR><TR><TD class=main valign="top">' . tep_image(DIR_WS_IMAGES . 'default/4.gif') . '</TD><TD class=main valign="top"><B>Online Documentation</B><BR><BR>Online documentation can be read at the <A href="http://wiki.oscommerce.com" target=_blank><U>osCommerce Wiki Documentation Effort</U></A> site.<BR><BR>Community support is available at the <A href="http://www.oscommerce.com/forums" target=_blank><U>osCommerce Community Support Forums</U></A> site.</TD></TR></TABLE><BR>If you wish to download the solution powering this shop, or if you wish to contribute to the osCommerce project, please visit the <A href="http://www.oscommerce.com" target=_blank><U>support site of osCommerce</U></A>. This shop is running on osCommerce version <FONT color=#f0000><B>' . PROJECT_VERSION . '</B></FONT>.'); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date --------------------------------------------------------------------------------------------------------------------------
choosealogin Posted June 14, 2006 Posted June 14, 2006 I'm glad it helped. The file you posted is catalog/includes/languages/english/index.php. I'll need to see catalog/includes/languages/english/login.php for your parse error.
gg_austin Posted June 14, 2006 Author Posted June 14, 2006 Youre fast.. Well This is what I see when I open the Login.php in the editor (using Vdeck) Lets try to download the file.. I just downloaded the login.php and opened it in dreamweaver, and i get the same thing.. Maybe I somehow mixed the 2 files togethar and did overwrite the login.php ?> do you know the original code? GG I'm glad it helped. The file you posted is catalog/includes/languages/english/index.php. I'll need to see catalog/includes/languages/english/login.php for your parse error.
choosealogin Posted June 14, 2006 Posted June 14, 2006 This is an unmodified catalog/includes/languages/english/login.php... let me try again...
gg_austin Posted June 14, 2006 Author Posted June 14, 2006 I really appreciate it This is an unmodified catalog/includes/languages/english/login.php... let me try again...
choosealogin Posted June 14, 2006 Posted June 14, 2006 :angry: The board kept parsing the code ...messing up the text I was trying to paste. I put it in a text file and sent you a link. You have a PM.
gg_austin Posted June 14, 2006 Author Posted June 14, 2006 you fixed it!! Thank you so very much, you really took the time to solve my problem- I really do appreciate it. Even took the time to put the text on that link on your site.. Better than any tech support I ever called...LOL.. Real time solving and you didnt even get paid.. Thank you again , you're the man... Now If I ever need Datsun auto parts.. I know where to buy them :o) Now I will have to look deeper into adding that text that your site has under the banner.. Last time I tried to mess with that- ended up with the HEADING_TITLE problem.. Many thanks again and again.. GG :angry: The board kept parsing the code ...messing up the text I was trying to paste. I put it in a text file and sent you a link. You have a PM.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.