mom2ashley Posted November 25, 2007 Posted November 25, 2007 Hi I have been searching through the forum, tried a many suggestions but I was unable to achieve what I want. I basically want to insert a picture into the main index page in the area, in the middle of the main page. Not a picture on the right or left column but in the middle where 'Let's see what we have here' and 'New products for month' area is. Below is my catalog/includes/languanges/english/index.php file contents. My questions are : 1. Is the code syntax correct? tep_image(DIR_WS_IMAGES . 'aidan01_15nov07(2lps).jpg', 'my image alt text', 500, 500, 'style="float:left"'); 2. and is it located at the right location in the file? <?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', 'Welcome to <b>Great Expectations</b>. We are currently in the process of setting up this site so that you will have a smooth online shopping experience with us. This site is not officially launched. <b> Hence no orders will be processed for now.</b> Meanwhile, check out our temporary site at http://mom2micahann.googlepages.com. If you have any questions, drop us an email at [email protected].'); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); tep_image(DIR_WS_IMAGES . 'aidan01_15nov07(2lps).jpg', 'my image alt text', 500, 500, 'style="float:left"'); -> is this where the code is supposed to be and is the syntax correct??? if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', $categories['categories_name']); 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['categories_name']); } ?>
mom2ashley Posted November 25, 2007 Author Posted November 25, 2007 HiI have been searching through the forum, tried a many suggestions but I was unable to achieve what I want. I basically want to insert a picture into the main index page in the area, in the middle of the main page. Not a picture on the right or left column but in the middle where 'Let's see what we have here' and 'New products for month' area is. Below is my catalog/includes/languanges/english/index.php file contents. My questions are : 1. Is the code syntax correct? tep_image(DIR_WS_IMAGES . 'aidan01_15nov07(2lps).jpg', 'my image alt text', 500, 500, 'style="float:left"'); 2. and is it located at the right location in the file? <?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', 'Welcome to <b>Great Expectations</b>. We are currently in the process of setting up this site so that you will have a smooth online shopping experience with us. This site is not officially launched. <b> Hence no orders will be processed for now.</b> Meanwhile, check out our temporary site at http://mom2micahann.googlepages.com. If you have any questions, drop us an email at [email protected].'); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); tep_image(DIR_WS_IMAGES . 'aidan01_15nov07(2lps).jpg', 'my image alt text', 500, 500, 'style="float:left"'); -> is this where the code is supposed to be and is the syntax correct??? if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', $categories['categories_name']); 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['categories_name']); } ?> Ok nevermind. oschellas have kindly helped me out on this. It should look like this : define('TEXT_MAIN', 'Welcome to <b>Great Expectations</b>. We are currently in the process of setting up this site so that you will have a smooth online shopping experience with us. This site is not officially launched. <b> Hence no orders will be processed for now.</b> Meanwhile, check out our temporary site at http://mom2micahann.googlepages.com. If you have any questions, drop us an email at [email protected].' . tep_image(DIR_WS_IMAGES . 'aidan01_15nov07(2lps).jpg', 'my image alt text', 500, 500, 'style="float:left"'));define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');
Recommended Posts
Archived
This topic is now archived and is closed to further replies.