Hi there.
I want to edit a OsCommerce index.php file so that I can use FusionNews to post updates instead of having to edit index.php everytime.
The problem is that I don't know where to add the code. When I add the code to the file, the post box will appear at the top of the page, which is not where I need it.
So i noticeted that the code
is where I should put stuff so that the text appears in the body of the page. I can't seem to put the FusionNews code there..this is what I tried
btw this is the entire code of the file i'm trying to edit
that did not work lol....
so i was wondering if anyone can help me...btw, if you havne't noticed, I have no clue how php works...and I probably should post this in the oscommerce support forums...but i haven't got much help from users there in the past
I want to edit a OsCommerce index.php file so that I can use FusionNews to post updates instead of having to edit index.php everytime.
The problem is that I don't know where to add the code. When I add the code to the file, the post box will appear at the top of the page, which is not where I need it.
So i noticeted that the code
PHP:
define('TEXT_MAIN','');
PHP:
define('TEXT_MAIN','include '/home/resshin/public_html/news/news.php';')
btw this is the entire code of the file i'm trying to edit
PHP:
<?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:</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');
}
?>
so i was wondering if anyone can help me...btw, if you havne't noticed, I have no clue how php works...and I probably should post this in the oscommerce support forums...but i haven't got much help from users there in the past
Last edited: