azanaz Posted July 18, 2005 Share Posted July 18, 2005 Hi all, I am a very real Newbie, I mean i don't know anything about PHp. I know littlte bit ohf HTMl by learning from a few tutorials and i was hoping to be able to do the same with PHp, Bus Alas!! Something is gone totally grong and now all i get id this msg on the index page: Parse error: parse error, unexpected T_STRING in /home/sites/anzz-fashions.co.uk/public_html/catalogue/includes/languages/english/index.php on line 13 I am including the script too just in case if anyone out there may be able to help fix it. Many thanks all of you... Azanaz <?php /* $Id: index.php 6137 2005-05-10 12:59:09Z jim $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', Welcome to Anzz-Fashions, <b>All Products listed is currently in stock</b>. This is a family run business and we specialise in footwear for kids and adults. We also have baby clothing, girls and boys clothing and lingerie. We have separate pages for each department. All our items are brand new!!')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:</b>'); 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'); } ?> Link to comment Share on other sites More sharing options...
user001 Posted July 18, 2005 Share Posted July 18, 2005 Try this one, might do the trick. <?php /* $Id: index.php 6137 2005-05-10 12:59:09Z jim $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', 'Welcome to Anzz-Fashions, <b>All Products listed is currently in stock</b>. This is a family run business and we specialise in footwear for kids and adults. We also have baby clothing, girls and boys clothing and lingerie. We have separate pages for each department. All our items are brand new!!'); 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:</b>'); 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'); } ?> Link to comment Share on other sites More sharing options...
hubcat Posted July 18, 2005 Share Posted July 18, 2005 Well, you are missing a semicolon on this page. Change this: define('TEXT_MAIN', Welcome to Anzz-Fashions, <b>All Products listed is currently in stock</b>. This is a family run business and we specialise in footwear for kids and adults. We also have baby clothing, girls and boys clothing and lingerie. We have separate pages for each department. All our items are brand new!!')define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); To this: define('TEXT_MAIN', Welcome to Anzz-Fashions, <b>All Products listed is currently in stock</b>. This is a family run business and we specialise in footwear for kids and adults. We also have baby clothing, girls and boys clothing and lingerie. We have separate pages for each department. All our items are brand new!!')[COLOR=red];[/COLOR] define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); Link to comment Share on other sites More sharing options...
hubcat Posted July 18, 2005 Share Posted July 18, 2005 Aacck! without the "color=red" tag. Here's the right one. Change this: define('TEXT_MAIN', Welcome to Anzz-Fashions, <b>All Products listed is currently in stock</b>. This is a family run business and we specialise in footwear for kids and adults. ?We also have baby clothing, girls and boys clothing and lingerie. We have separate pages for each department. ?All our items are brand new!!')define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); To this: define('TEXT_MAIN', Welcome to Anzz-Fashions, <b>All Products listed is currently in stock</b>. This is a family run business and we specialise in footwear for kids and adults. ?We also have baby clothing, girls and boys clothing and lingerie. We have separate pages for each department. ?All our items are brand new!!'); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); Link to comment Share on other sites More sharing options...
azanaz Posted July 19, 2005 Author Share Posted July 19, 2005 Thank you all of you who helped!! I am going to the library today to get some books. The tag really does work now and i am not messing with any more syuff. Although the layoput is a bit 'common' In Html the link to change backgrounf would be: <html> <head> <title></title> <meta name="description" content=""> <meta name="keywords" content=""> <style> <!-- a:hover {text-decoration: none; color:#339966} --> </style> </head> <body bgcolor="#993300" text="#FF6600" link="#0000FF" vlink="#FF9900" alink="#339966" background="Marbl1am.jpg"> </body> </html> How do I convert this into PHP? Or maybe a simple script to change the background? Many Thanks Guys Azanaz Link to comment Share on other sites More sharing options...
azanaz Posted July 19, 2005 Author Share Posted July 19, 2005 One more thing How do I make my site ssl secured? Azanaz Link to comment Share on other sites More sharing options...
azanaz Posted July 19, 2005 Author Share Posted July 19, 2005 ok, I have managed to change the index.php page to reflect the colour i want. Now I have been cutting and pasting but cannot get this to work. Somewhere in this code it says: Put here your Conditions of Use information. I am looking but cannot find it so i can replace with my own text. If anyone can help me with this i'd be really grateful!! Azanaz Here is the script. Many Thanks once again. <?php /* $Id: conditions.php 6137 2005-05-10 12:59:09Z jim $ 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'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONDITIONS); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONDITIONS)); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </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="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <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_specials.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%', '10'); ?></td> </tr> <tr> <td class="main"><?php echo TEXT_INFORMATION; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- 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> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Link to comment Share on other sites More sharing options...
azanaz Posted July 20, 2005 Author Share Posted July 20, 2005 Anyone? Please.... azanaz Link to comment Share on other sites More sharing options...
hubcat Posted July 20, 2005 Share Posted July 20, 2005 You are most likely looking at the wrong conditions.php file. Most of the files have an associated .php with all of the text defined under the appropriate language. I'm not at home, so can't check this for certain, but look under: includes/languages/english/conditions.php This is the file that actually contains the text. You will find a similar file for most of the .php files that are in the root directory. These always have the text information. Hope that helps, Adriennne Link to comment Share on other sites More sharing options...
azanaz Posted July 21, 2005 Author Share Posted July 21, 2005 Thanks a lot Adrienne, Will look into it and will post reply. Link to comment Share on other sites More sharing options...
azanaz Posted July 24, 2005 Author Share Posted July 24, 2005 Thanks a lot Adrienne, Will look into it and will post reply. <{POST_SNAPBACK}> Hi All, Msg For Adrienne, I have found the conditions.php page and have managed to chage the details, However i need some other help. I thought i was doing really well until i made a test purchase and realized that all the prices are set to zero... I have checked the prices in the index page and it looks ok there... any ideas??? I am just wondering if it's anything to do with the localization bit? here is what i have.. Many Thanks for all your help.. Currencies Currency Code Value Action BRITISH POUND (default) GBR 1.00000000 Displaying 1 to 1 (of 1 currencies) Page 1 of 1 BRITISH POUND Title: BRITISH POUND Code: GBR Symbol Left: ? Symbol Right: Decimal Point: . Thousands Point: , Decimal Places: 2 Last Updated: Value: 1.00000000 Example Output: ?30.00 = ?30.00 Link to comment Share on other sites More sharing options...
azanaz Posted July 25, 2005 Author Share Posted July 25, 2005 Hi All,Msg For Adrienne, I have found the conditions.php page and have managed to chage the details, However i need some other help. I thought i was doing really well until i made a test purchase and realized that all the prices are set to zero... I have checked the prices in the index page and it looks ok there... any ideas??? I am just wondering if it's anything to do with the localization bit? here is what i have.. Many Thanks for all your help.. Currencies Currency Code Value Action BRITISH POUND (default) GBR 1.00000000 Displaying 1 to 1 (of 1 currencies) Page 1 of 1 BRITISH POUND Title: BRITISH POUND Code: GBR Symbol Left: ? Symbol Right: Decimal Point: . Thousands Point: , Decimal Places: 2 Last Updated: Value: 1.00000000 Example Output: ?30.00 = ?30.00 <{POST_SNAPBACK}> Please Please, I am begging you, please help me.... :'( :sweating: Many Thanks Azanaz, Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.