govanmac Posted December 9, 2005 Posted December 9, 2005 Hi Guys Can anyone tell me where I edit the html on pages like the front page? I have looked through all the files and cannot find the text anywhere. I have noticed in the forum some people mentioning a catalog file, I don't appear to have that, maybe I have an older version. Please help. Ray
Naegle Posted December 9, 2005 Posted December 9, 2005 Hi Guys Can anyone tell me where I edit the html on pages like the front page? I have looked through all the files and cannot find the text anywhere. I have noticed in the forum some people mentioning a catalog file, I don't appear to have that, maybe I have an older version. Please help. Ray What are you trying to edit? If its the index page, etc you can edit the text with some html in these folders "...catalog/includes/languages/english" by editing the respective file. Read the support documentation for more info.
Guest Posted December 9, 2005 Posted December 9, 2005 Hi Guys Can anyone tell me where I edit the html on pages like the front page? I have looked through all the files and cannot find the text anywhere. I have noticed in the forum some people mentioning a catalog file, I don't appear to have that, maybe I have an older version. Please help. Ray most of the text that comes out of the can are located in the language files. these are located in the includes/languages sub-folder. all files have a .php extension, not .html
govanmac Posted December 9, 2005 Author Posted December 9, 2005 most of the text that comes out of the can are located in the language files. these are located in the includes/languages sub-folder. all files have a .php extension, not .html I still can't find the file which contains the text on the home page, 'index.php doesn't seem to have it
Naegle Posted December 9, 2005 Posted December 9, 2005 I still can't find the file which contains the text on the home page, 'index.php doesn't seem to have it PHP dosen't behave like HTML, its more complicated than that. You can't just "view source" from your browser, copy and paste the code to front page and edit it. PHP is server side, and it collects the information you have added to the lanugage files in or osc store. You would need to navigate your store using some ftp software and edit it manually.
govanmac Posted December 9, 2005 Author Posted December 9, 2005 PHP dosen't behave like HTML, its more complicated than that. You can't just "view source" from your browser, copy and paste the code to front page and edit it. PHP is server side, and it collects the information you have added to the lanugage files in or osc store. You would need to navigate your store using some ftp software and edit it manually. I am using Cute FTP, but can't find the files which contain the text I am looking for.
Naegle Posted December 9, 2005 Posted December 9, 2005 I am using Cute FTP, but can't find the files which contain the text I am looking for. The default osc installation will have the files here ftp://root...or installed directory.../catalog/includes/languages/english/index.php etc.
govanmac Posted December 9, 2005 Author Posted December 9, 2005 The default osc installation will have the files here ftp://root...or installed directory.../catalog/includes/languages/english/index.php etc. Hi Naegle Thanks for your help..I have found it at last.
Guest Posted December 9, 2005 Posted December 9, 2005 govanmac, Sounds like you and I are attempting to perform similar tasks...I'm using dreamweaver to edit these php pages and the code is completly different than I'm used to... The 'echo' and ?php tags take a while to sink in....also referencing the /incl/lang/engl files for edit is interesting. Once you find the file in /engl that is being "called" you also need to identify WHAT in that file to edit... i have found some of the files in /catalog contain the html to give away the page stucture and where an "area" i.e. body of the page is. E.G. I was able to add/edit within the html tags on contact_us.php the following. _____________________________________________________________ <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="0" cellpadding="0"><br> <span class="messageBox"><b> About us | Contact us </b>(Please scroll down to complete contact form.)<br> <br>We are excited to bring you these BRAND NEW, fun, stylish and creative designs along with rock solid protection for your . We love the and everything it stands for. Freedom of expression. Freedom of self. Freedom to be creative. And most of all, the freedom to be unique!<br> __________________________________________________________- This allowed me to combine the about us and contact page... This file was located in the /catalog NOT /engl. the only code in the /engl contact_us.php file is: ______________________________________________________________ <?php /* $Id: contact_us.php,v 1.7 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ define('HEADING_TITLE', 'Contact Us | Comments | Suggestions'); define('NAVBAR_TITLE', 'Contact Us | Comments | Suggestions'); define('TEXT_SUCCESS', 'Your inquiry has been sent. We appreciate your comments. If you need immediate assistance, feel free to call us at . '); define('EMAIL_SUBJECT', 'Enquiry from ' . STORE_NAME); define('ENTRY_NAME', 'Full Name:'); define('ENTRY_EMAIL', 'E-Mail Address:'); define('ENTRY_ENQUIRY', 'Enquiry:'); ?> ________________________________________________________________ There is no place to edit the actual "body" content on the /catalog contact_us.php file in the /engl contact_us.php directly. You can only edit what is being "called" (in this case the above piece code.) Not knowing PHP really at all, I do not know how to "add" a call "source" and the subsequent request from the /catalog page, but I'm certian there's a way. Adding the text within the <table<tr>***** </tr></table> tags on the catalog files appears to work for adding some customized text/information to pages. clear as mud huh? :)
Guest Posted December 9, 2005 Posted December 9, 2005 I should preface the above with the fact that I am using a customized template from TM and NOT a standard OS template and some of the sode may be different, but I belive the "process" to be the same.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.