Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Trying to get Html into the index.php file...


Remember

Recommended Posts

I am sure you can tell by the question that I am a newbie...

 

okay...if I understand it...they are completely different languages...

 

but is there a way to get THIS:

 

 

<P>
<CENTER>
<TABLE height=288 cellPadding=5 width=490 border=0>
?<TBODY>
?<TR>
? ?<TD 
? ?style="FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: #ffffff; FONT-FAMILY: Verdana" 
? ?width=339 bgColor=#afbca1 colSpan=2 height=28><FONT size=3>Scrapbook 
? ? ?Supplies for your Moments</FONT> </TD>
? ?<TD style="FONT-SIZE: 14px; COLOR: #ffffff; FONT-FAMILY: Verdana" 
? ?align=middle width=125 bgColor=#8f687d height=235 rowSpan=3>Tomorrow</TD></TR>
?<TR>
? ?<TD style="FONT-SIZE: 14px; COLOR: #794b64; FONT-FAMILY: Verdana" vAlign=top 
? ?width=339 bgColor=#f9edae colSpan=2 height=78>Welcome to Remember the 
? ? ?Moments. Here you will find your source for the latest scrapbook supplies. 
? ? ?Please browse our wide selection of items for your scrapbooking 
? ? ?needs. </TD></TR>
?<TR>
? ?<TD style="FONT-SIZE: 14px; COLOR: #ffffff; FONT-FAMILY: Verdana" 
? ?align=middle width=193 bgColor=#8f687d height=125>Yesterday</TD>
? ?<TD style="FONT-SIZE: 14px; COLOR: #ffffff; FONT-FAMILY: Verdana" 
? ?align=middle width=134 bgColor=#d2bdc8 height=125>Today</TD></TR>
?<TR>
? ?<TD style="FONT-SIZE: 14px" align=middle width=476 bgColor=#afbca1 colSpan=3 
? ?height=47 rowSpan=.5><B><FONT size=3> <A onmouseover="this.style.color='#794B64'; " style="FONT-WEIGHT: normal; COLOR: #ffffff; TEXT-DECORATION: none" onmouseout="this.style.color='#ffffff';" href="https://secure.bluehost.com/~remembe3/shop/account_newsletters.php"><B>JOIN 
? ? ?OUR MAILING LIST</B></FONT><BR>and be the first to hear about our newest 
? ? ?products!</A></B></TD></TR></TBODY></TABLE></CENTER>
<P></P>

 

into my index.php

 

so that it is INSIDE the left and right columns...no matter where I insert the code

 

I get this...www.rememberthemoments.com/shop

 

If I insert it under the <php? I get error messages...I am assuming because it is a different code....

 

So, any tips to point me in the right direction would be greatly appreciated...

 

If it helps, here is my entire idex.php WITHOUT the html I am trying to add...

 

<?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', ' ');; 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', ''); } elseif 
($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?>

 

THANKS!!!

Link to comment
Share on other sites

You shouldn't have a problem if you insert your html in between the single quotes define('TEXT_MAIN', ' HERE ')

 

one thing you might want to look out for is single quotes in the text you add which have to been escaped with a \ ex:\'

Link to comment
Share on other sites

You shouldn't have a problem if you insert your html in between the single quotes define('TEXT_MAIN', ' HERE ')

 

one thing you might want to look out for is single quotes in the text you add which have to been escaped with a \ ex:\'

 

 

Tried that...

 

got THIS error message

 

 

Parse error: parse error, unexpected T_STRING in /home/remembe3/public_html/shop/includes/languages/english/index.php on line 38

Link to comment
Share on other sites

Tried that...

 

got THIS error message

Parse error: parse error, unexpected T_STRING in /home/remembe3/public_html/shop/includes/languages/english/index.php on line 38

 

 

here is the index.php WITH the html in the text ' '

 

<?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', '<P>
<CENTER>
<TABLE height=288 cellPadding=5 width=490 border=0>
 <TBODY>
 <TR>
   <TD 
   style="FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: #ffffff; FONT-FAMILY: Verdana" 
   width=339 bgColor=#afbca1 colSpan=2 height=28><FONT size=3>Scrapbook 
     Supplies for your Moments</FONT> </TD>
   <TD style="FONT-SIZE: 14px; COLOR: #ffffff; FONT-FAMILY: Verdana" 
   align=middle width=125 bgColor=#8f687d height=235 rowSpan=3>Tomorrow</TD></TR>
 <TR>
   <TD style="FONT-SIZE: 14px; COLOR: #794b64; FONT-FAMILY: Verdana" vAlign=top 
   width=339 bgColor=#f9edae colSpan=2 height=78>Welcome to Remember the 
     Moments. Here you will find your source for the latest scrapbook supplies. 
     Please browse our wide selection of items for your scrapbooking 
     needs. </TD></TR>
 <TR>
   <TD style="FONT-SIZE: 14px; COLOR: #ffffff; FONT-FAMILY: Verdana" 
   align=middle width=193 bgColor=#8f687d height=125>Yesterday</TD>
   <TD style="FONT-SIZE: 14px; COLOR: #ffffff; FONT-FAMILY: Verdana" 
   align=middle width=134 bgColor=#d2bdc8 height=125>Today</TD></TR>
 <TR>
   <TD style="FONT-SIZE: 14px" align=middle width=476 bgColor=#afbca1 colSpan=3 
   height=47 rowSpan=.5><B><FONT size=3> <A onmouseover="this.style.color='#794B64'; " style="FONT-WEIGHT: normal; COLOR: #ffffff; TEXT-DECORATION: none" onmouseout="this.style.color='#ffffff';" href="https://secure.bluehost.com/~remembe3/shop/account_newsletters.php"><B>JOIN 
     OUR MAILING LIST</B></FONT><BR>and be the first to hear about our newest 
     products!</A></B></TD></TR></TBODY></TABLE></CENTER>
<P></P>'); 
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', ' ');; 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', ''); } elseif 
($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...