Guest Posted April 27, 2004 Posted April 27, 2004 Hello, Can someone help me? I want to change the first page. I want to add some pics and wording on the first page under the welcome guest register, etc.. How do I do this? Thanks, Tammy quick
peterr Posted April 27, 2004 Posted April 27, 2004 Hi, /catalog/includes/languages/english/index.php .... change this line define('TEXT_MAIN', 'This is a default setup of the osCommerce project, products shown are for demonstrational purposes, <b>any products purchased will not be delivered nor will the customer be billed</b>. Any information seen on these products is to be treated as fictional.<br><br><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>Error Messages</b><br><br>If there are any error or warning messages shown above, please correct them first before proceeding.<br><br>Error messages are displayed at the very top of the page with a complete <span class="messageStackError">background</span> color.<br><br>Several checks are performed to ensure a healthy setup of your online store - these checks can be disabled by editing the appropriate parameters at the bottom of the includes/application_top.php file.</td></tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"><b>Editing Page Texts</b><br><br>The text shown here can be modified in the following file, on each language basis:<br><br><nobr class="messageStackSuccess">[path to catalog]/includes/languages/' . $language . '/' . FILENAME_DEFAULT . '</nobr><br><br>That file can be edited manually, or via the Administration Tool with the <nobr class="messageStackSuccess">Languages->' . ucfirst($language) . '->Define</nobr> or <nobr class="messageStackSuccess">Tools->File Manager</nobr> modules.<br><br>The text is set in the following manner:<br><br><nobr>define(\'TEXT_MAIN\', \'<span class="messageStackSuccess">This is a default setup of the osCommerce project...</span>\');</nobr><br><br>The text highlighted in green may be modified - it is important to keep the define() of the TEXT_MAIN keyword. To remove the text for TEXT_MAIN completely, the following example is used where only two single quote characters exist:<br><br><nobr>define(\'TEXT_MAIN\', \'\');</nobr><br><br>More information concerning the PHP define() function can be read <a href="http://www.php.net/define" target="_blank"><u>here</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>Securing The Administration Tool</b><br><br>It is important to secure the Administration Tool as there is currently no security implementation available.</td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/4.gif') . '</td><td class="main" valign="top"><b>Online Documentation</b><br><br>Online documentation can be read at the <a href="http://wiki.oscommerce.com" target="_blank"><u>osCommerce Wiki Documentation Effort</u></a> site.<br><br>Community support is available at the <a href="http://www.oscommerce.com/forums" target="_blank"><u>osCommerce Community Support Forums</u></a> site.</td></tr></table><br>If you wish to download the solution powering this shop, or if you wish to contribute to the osCommerce project, please visit the <a href="http://www.oscommerce.com" target="_blank"><u>support site of osCommerce</u></a>. This shop is running on osCommerce version <font color="#f0000"><b>' . PROJECT_VERSION . '</b></font>.'); Peter
peterr Posted April 27, 2004 Posted April 27, 2004 Hi, Also, you may want to do it this way: $temp_var = "<b><font face= Arial size= 6 color= red >MULTIMEDIA SPECIALISTS <font face= Arial size= 6 color= red /><br> <font face= Arial size= 3 color= navy >DUPLICATORS - CD - DVD - CASSETTE</b><br> Low cost - Stand-alone - Easy to operate <p><b><font face= Arial size= 3 color= navy >CD RECORDERS</b> <br>Record Audio direct to a CD <p><b><font face= Arial size= 3 color= navy >CD PRINTERS</b> <br>Print Text & Graphics direct onto a CD <p><b><font face= Arial size= 3 color= navy >DATA & VIDEO PROJECTORS</b> <br>Display Text & Graphics onto a large screen <p><b><font face= Arial size= 3 color= navy >CASSETTE COPIERS <br>Expert Service and Repairs to all Telex Copiers <p><font face= Arial size= 3 color= navy >PUBLIC ADDRESS SYSTEMS</b> <br>Portable - Permanent <p><font face= Arial size= 3 color= navy >These are only a small part of items available in our catalogue. <br> <p><font face= Arial size= 3 color= navy >New products are regularly being added to our range.<br> <p><font face= Arial size= 3 color= navy >If an item is not listed please contact us. <br> <br><b> All prices include GST.<br><br> Prices and Specifications are subject to change.</b></p>"; define('TEXT_MAIN', $temp_var); That way, you can start off with a few lines of html code, and add/change as you get familar with it. Use the 'classes' from the stylesheet for font/colour changes. Peter
Guest Posted April 27, 2004 Posted April 27, 2004 Okay, I am lost here I am not fimilar with html, etc.. I must have done somethign wrong because at the top of my site is I got this error code Parse error: parse error in /home/virtual/site200/fst/var/www/html/oscommerce/includes/languages/english/index.php on line 13 and the welcome that was at top changed to headline here and below the new pics is text/hml . Is there a easier way of doing this? Tammy
peterr Posted April 27, 2004 Posted April 27, 2004 Tammy, Can you paste the code for line 13 please. Peter
Guest Posted April 27, 2004 Posted April 27, 2004 Parse error: parse error in /home/virtual/site200/fst/var/www/html/oscommerce/includes/languages/english/index here is the code Tammy
Guest Posted April 27, 2004 Posted April 27, 2004 Hello, Can anyone tell me how to get rid of this code Parse error: parse error in /home/virtual/site200/fst/var/www/html/oscommerce/includes/languages/english/index line14 its at the top of my website Tammy
peterr Posted April 28, 2004 Posted April 28, 2004 Tammy, Can you post the actual code from index.php (say lines 10-20) please. Peter
Guest Posted April 28, 2004 Posted April 28, 2004 Pete, here is teh code I am getting.. Parse error: parse error in /home/virtual/site200/fst/var/www/html/oscommerce/includes/languages/english/index.php on line 13 I am clueless with all of this.. :) my site is http://www.idealgifts.com-stores.com if that helps you can see what i am talking about
peterr Posted April 28, 2004 Posted April 28, 2004 Hi Tammy, This is the error message ........... Parse error: parse error in /home/virtual/site200/fst/var/www/html/oscommerce/includes/languages/english/index.php on line 13 and this is the code ........... define('TEXT_MAIN', 'This is a default setup of the osCommerce project, products shown are for demonstra....,etc,etc so if you can post the code, lines 10 to 20 of /includes/languages/english/index.php , then we will know what is causing the error message. Peter
♥Vger Posted April 28, 2004 Posted April 28, 2004 Okay,I am lost here I am not fimilar with html, etc.. I must have done somethign wrong because at the top of my site is I got this error code Parse error: parse error in /home/virtual/site200/fst/var/www/html/oscommerce/includes/languages/english/index.php on line 13 and the welcome that was at top changed to headline here and below the new pics is text/hml . Is there a easier way of doing this? Tammy Yes, there is an easier way of doing this. Take a page such as conditions.php in your root directory, open it, and select File-Save As, and save it as index.php. Open the file, and where it says FILENAME_CONDITIONS change this to FILENAME_DEFAULT. Then go to includes/languages/english/conditions.php, open it and again save it as index.php. Your homepage now will just have a little bit of code at the top with the table header title for the conditions page, which you can get rid of, and fill the page with whatever you want by entering text and/or html code into the file includes/languages/english/index.php. Best to take backups of your original index.php files in case you want to reinstate them later on. Hope this helps - Vger
peterr Posted April 28, 2004 Posted April 28, 2004 Tammy, Just change line 13 to this: define('TEXT_MAIN', 'This is a default setup of my new Store.'); Peter
Guest Posted April 28, 2004 Posted April 28, 2004 k, I finally got the error code erased so to speak :) Now I have one more question.. Where do you go to add your information about shipping & returns?
peterr Posted April 28, 2004 Posted April 28, 2004 Hi, For shipping ........... /catalog/includes/languages/english/shipping.php change this line ........ define('TEXT_INFORMATION',"Here is all my shipping information"); Peter
Recommended Posts
Archived
This topic is now archived and is closed to further replies.