redring Posted August 25, 2005 Share Posted August 25, 2005 I need to trash the 1234 numbers on my index. Cant seem to do it without loseing my whole site. I would also like to change my site colors. :'( Please help. I have been trying all night. Its like 6:30 am and im still trying to fix this. Also can you point out whear is a good place to add text back inn??? I am really lost here. ]<?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', '<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><span class="messageStackError"</span></td></tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"></b><br><nobr class="messageStackSuccess"></nobr><nobr class="messageStackSuccess"</nobr> <nobr class="messageStackSuccess"></nobr><nobr><span class="messageStackSuccess"></span></nobr><br><br><nobr></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></td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/4.gif') . '</td><td class="main" valign="top"></b> <u></u></a><u></u></a></td></tr></table> </u></a><b></b></font>'); 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', 'Welcome'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> Link to comment Share on other sites More sharing options...
♥PassionSeed Posted August 25, 2005 Share Posted August 25, 2005 I need to trash the 1234 numbers on my index. Cant seem to do it without loseing my whole site. I would also like to change my site colors. :'( Please help. I have been trying all night. Its like 6:30 am and im still trying to fix this. Also can you point out whear is a good place to add text back inn??? I am really lost here. ]<?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', '<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><span class="messageStackError"</span></td></tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"></b><br><nobr class="messageStackSuccess"></nobr><nobr class="messageStackSuccess"</nobr> <nobr class="messageStackSuccess"></nobr><nobr><span class="messageStackSuccess"></span></nobr><br><br><nobr></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></td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/4.gif') . '</td><td class="main" valign="top"></b> <u></u></a><u></u></a></td></tr></table> </u></a><b></b></font>'); 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', 'Welcome'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> <{POST_SNAPBACK}> :rolleyes: To change the index page, edit the catalog/includes/languages/english (OR YOUR LANGUAGE)/index.php. To change the colors of your site, edit calalog/stylesheet.css. Link to comment Share on other sites More sharing options...
redring Posted August 25, 2005 Author Share Posted August 25, 2005 But wher in those do I find what I need to fix??? I am haveing trouble finding them. Link to comment Share on other sites More sharing options...
Guest Posted August 25, 2005 Share Posted August 25, 2005 see those statements in the code like 'default/1.gif' 'default/2.gif' 'default/3.gif' 'default/4.gif' these are the bullet images the default file uses. So the define('TEXT_MAIN', '...........................'); is where the entire text of your front page is, in html. Link to comment Share on other sites More sharing options...
redring Posted August 25, 2005 Author Share Posted August 25, 2005 see those statements in the code like 'default/1.gif' 'default/2.gif' 'default/3.gif' 'default/4.gif' these are the bullet images the default file uses. So the define('TEXT_MAIN', '...........................'); is where the entire text of your front page is, in html. <{POST_SNAPBACK}> that helps thanks im gonna go find them :D Link to comment Share on other sites More sharing options...
redring Posted August 25, 2005 Author Share Posted August 25, 2005 that helps thanks im gonna go find them :D <{POST_SNAPBACK}> anyway to remove that pic?? There is one at the top of the page but I am not seeing it in index or am I just missing it? Is it in another folder? Link to comment Share on other sites More sharing options...
Guest Posted August 26, 2005 Share Posted August 26, 2005 are you refering to the one right of the What's New Here? If so its in the catalog\index.php file. Near the end where it says something like <?php } else { // default page ?> in one of the table cells has a tep_image function that displays it. Link to comment Share on other sites More sharing options...
redring Posted August 28, 2005 Author Share Posted August 28, 2005 ok ... that is solved. Thank you for all the help. :) I am learning. Slowly but I am learning. Next problem :-" I took out all of the extra stuff my welcome page come with. Now I have no idea whear I can add text into each page. This system is verry touchy and it dose not like me playing around. I should say my page is on someone elses. I am just a seller. I think this may hinder what I can do my self. (Can I add contributations???) define('TEXT_MAIN', '<table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top"></td><td class="main" valign="top"></b><span class="messageStackError"</span></td></tr><td class="main" valign="top"></td><td class="main" valign="top"></b><br><nobr class="messageStackSuccess"></nobr><nobr class="messageStackSuccess"</nobr> <nobr class="messageStackSuccess"></nobr><nobr><span class="messageStackSuccess"></span></nobr><br><br><nobr></u></a></td></tr><tr><td class="main" valign="top"></td><td class="main" valign="top"></b></td></tr><tr><td class="main" valign="top"></td><td class="main" valign="top"></b> <u></u></a><u></u></a></td></tr></table> </u></a><b></b></font>'); define('TABLE_HEADING_NEW_PRODUCTS', 'All NEW!! %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'looking forward to'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); I thinks its somwhear in between theese???? valign="top"></td><td class="main Thank you . Link to comment Share on other sites More sharing options...
nana Posted August 28, 2005 Share Posted August 28, 2005 lets say you want to change ---------- looking forward to then change define('TABLE_HEADING_UPCOMING_PRODUCTS', 'looking forward to'); to define('TABLE_HEADING_UPCOMING_PRODUCTS', 'what you want to say'); and it will say ======== what you want to say keep the '' around your words Link to comment Share on other sites More sharing options...
redring Posted August 29, 2005 Author Share Posted August 29, 2005 And that changes the tabel headings but what about adding text to the top of each page . Like a bit about that catagory??? The welcome page had text on it but after I deleated it all I forgot what areas it went into. Or what made the text apear??? lets say you want to change ---------- looking forward to then change define('TABLE_HEADING_UPCOMING_PRODUCTS', 'looking forward to'); to define('TABLE_HEADING_UPCOMING_PRODUCTS', 'what you want to say'); and it will say ======== what you want to say keep the '' around your words <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
♥PassionSeed Posted August 29, 2005 Share Posted August 29, 2005 And that changes the tabel headings but what about adding text to the top of each page . Like a bit about that catagory??? The welcome page had text on it but after I deleated it all I forgot what areas it went into. Or what made the text apear??? <{POST_SNAPBACK}> :rolleyes: As a rule of thumb, the files in the catalog/ directory is used to display your pages. The files in the catalog/includes/languages/YOUR LANGUAGE/ and the catalog/includes/languages directories contain the text you want to display. It's helpful to know a little html before tackling osCommerce (this cart uses html, php, css, and javascript). The best way to "get acquainted" with osCommerce is through trial and error. Reviewing the code of the original file in the catalog/ directory and looking at the matching file in the catalog/includes/languages/YOUR LANGUAGE/ directory and your "base" language file, you'll be able to see where the text is coming from. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.