Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

problem with front page of shop, can any one help?


urbanegos

Recommended Posts

Posted

Hi my shop is www.urbanegos-stores.com

 

if you go on it you can see that there's some text called...php and everytime i try to get rid of it the whole shop disappears

can any one help as i really want to open it soon

best wishes

julie

Posted

You didn't quite replace the define TEXT_MAIN completely with your own text. define('TEXT_MAIN', 'insert your text here.');

 

includes\languages\english\index.php

 

define('TEXT_MAIN', 'This is a default setup of osCommerce Online Merchant. 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>Online Documentation</b><br><br>Online documentation can be read at the <a href="http://www.oscommerce.info" target="_blank"><u>osCommerce Knowledge Base</u></a> site.<br><br>Support is available at the <a href="http://www.oscommerce.com/support" target="_blank"><u>osCommerce Support Site</u></a>.</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 <font color="#f0000"><b>' . PROJECT_VERSION . '</b></font>.');

jon

It's all just ones and zeros....

Posted
Hi my shop is www.urbanegos-stores.com

 

if you go on it you can see that there's some text called...php and everytime i try to get rid of it the whole shop disappears

can any one help as i really want to open it soon

best wishes

julie

includes/languages/english/index.php

TEXT_MAIN defines the text on the first page your customers see.

 

It should look like

define('TEXT_MAIN', '');

Posted

Hi thanks for that here is how it looks on my english.php every time i try to delte that small line the whole shop disapears.

 

:define('TEXT_MAIN', 'The World Of UrbanEgos: Shop from home for your home!

 

urbanegos is a great place to shop.

In store we have a variety of styles to suit most people.

If you love contemporary then our range will be great for you.

How about a stunning contemporary sculpture?

We also have beautiful indian furniture and soft furnishings so take a look.

How about delving into the past with our great medieval range! We love fantasy myth and magic so why not browse our gifts section.

There really is something for every taste.

If you donot see what you want EMAIL us on [email protected] and we may have it in stock but not yet on the shop.

You can order on line or by phone.

We accept cash in advance as postal orders or cheques.

Pay immediatly by paypal

Or you can collect in person

We donot yet accept credit cards

 

PLEASE NOTE: shipping will be added to all orders so if you are unsure please email us or ring if you want to know the cost of shipping an item.

<b>PLEASE DONOT SHOP AS THIS IS A TEST SITE!!!!!!!!

</b>.<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></b><br><br><br><br> <span class="messageStackError"></span> <br><br></td></tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"><b></b><br><br><br><br><nobr class="messageStackSuccess">' . $language . '/' . FILENAME_DEFAULT . '</nobr><br><br> <nobr class="messageStackSuccess">' . ucfirst($language) . '-></nobr> <nobr class="messageStackSuccess"></nobr> <br><br><br><br><nobr><span class="messageStackSuccess"></span></nobr><br><br><br><br><nobr></nobr><br><br>

<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></b><br><br> <a href="http://www.oscommerce.info" target="_blank"><u>osCommerce Knowledge Base</u></a> <br><br> <a target="_blank"><u>osCommerce Support Site</u></a></td></tr></table><br> <a href="http://www.oscommerce.com" target="_blank"><u>support site of osCommerce</u></a> This shop is running on <font color="#f0000"><b>' . PROJECT_VERSION . '</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 Go Shopping');

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', 'Stunning Homes and Gardens');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

?>

 

 

You didn't quite replace the define TEXT_MAIN completely with your own text. define('TEXT_MAIN', 'insert your text here.');

 

includes\languages\english\index.php

 

define('TEXT_MAIN', 'This is a default setup of osCommerce Online Merchant. 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>Online Documentation</b><br><br>Online documentation can be read at the <a href="http://www.oscommerce.info" target="_blank"><u>osCommerce Knowledge Base</u></a> site.<br><br>Support is available at the <a href="http://www.oscommerce.com/support" target="_blank"><u>osCommerce Support Site</u></a>.</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 <font color="#f0000"><b>' . PROJECT_VERSION . '</b></font>.');

jon

Posted

You need to study what you have. There's a : in front of the word define. It doesn't belong there. Troubleshooting something like this means you need to get that line (that define) down to the bare minimum.

 

define('TEXT_MAIN', 'insert your text here.');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

Put the above in your file and start there. What do you get? If you have joy, add a bit more, upload that and see what you get.

 

jon

It's all just ones and zeros....

Posted

Hi

I think this is the line i need to delete ucfirst($language) but it seems to lose my entire site when i delete it. What do i have to delete to get rid of that line?

thanks

julie

 

Hi thanks for that here is how it looks on my english.php every time i try to delte that small line the whole shop disapears.

 

:define('TEXT_MAIN', 'The World Of UrbanEgos: Shop from home for your home!

 

urbanegos is a great place to shop.

In store we have a variety of styles to suit most people.

If you love contemporary then our range will be great for you.

How about a stunning contemporary sculpture?

We also have beautiful indian furniture and soft furnishings so take a look.

How about delving into the past with our great medieval range! We love fantasy myth and magic so why not browse our gifts section.

There really is something for every taste.

If you donot see what you want EMAIL us on [email protected] and we may have it in stock but not yet on the shop.

You can order on line or by phone.

We accept cash in advance as postal orders or cheques.

Pay immediatly by paypal

Or you can collect in person

We donot yet accept credit cards

 

PLEASE NOTE: shipping will be added to all orders so if you are unsure please email us or ring if you want to know the cost of shipping an item.

<b>PLEASE DONOT SHOP AS THIS IS A TEST SITE!!!!!!!!

</b>.<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></b><br><br><br><br> <span class="messageStackError"></span> <br><br></td></tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"><b></b><br><br><br><br><nobr class="messageStackSuccess">' . $language . '/' . FILENAME_DEFAULT . '</nobr><br><br> <nobr class="messageStackSuccess">' . ucfirst($language) . '-></nobr> <nobr class="messageStackSuccess"></nobr> <br><br><br><br><nobr><span class="messageStackSuccess"></span></nobr><br><br><br><br><nobr></nobr><br><br>

<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></b><br><br> <a href="http://www.oscommerce.info" target="_blank"><u>osCommerce Knowledge Base</u></a> <br><br> <a target="_blank"><u>osCommerce Support Site</u></a></td></tr></table><br> <a href="http://www.oscommerce.com" target="_blank"><u>support site of osCommerce</u></a> This shop is running on <font color="#f0000"><b>' . PROJECT_VERSION . '</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 Go Shopping');

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', 'Stunning Homes and Gardens');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

?>

Posted
Hi

I think this is the line i need to delete ucfirst($language) but it seems to lose my entire site when i delete it. What do i have to delete to get rid of that line?

thanks

julie

Julie

 

If you do not listen, nobody will bother to post to help you.

 

Jonquil told you to get rid of the :

in

 

:define('TEXT_MAIN'

so that it starts with

define('TEXT_MAIN'

Posted

Hi i have tried that but the problem really is with that line i posted you. It is the only line at the moment that matches that but everytime i try to get rid of it the whole site shuts down. I am wondering if it is because it is a dollar sign i have posted the entire page up so anyone can see there is no line called english.php

This has been going on for a couple of weeks but i cant get rid of ot.

thanks

julie

Julie

 

If you do not listen, nobody will bother to post to help you.

 

Jonquil told you to get rid of the :

in

 

:define('TEXT_MAIN'

so that it starts with

define('TEXT_MAIN'

Posted
Hi i have tried that but the problem really is with that line i posted you. It is the only line at the moment that matches that but everytime i try to get rid of it the whole site shuts down. I am wondering if it is because it is a dollar sign i have posted the entire page up so anyone can see there is no line called english.php

This has been going on for a couple of weeks but i cant get rid of ot.

thanks

julie

Hi

its definatly to do with those two dollar signs! how do i work around this one?

thanks

julie

Posted

Please don't be offended by what I will say next:

 

"You have been given a solution to your problem. If you are not willing to implement it and help yourself, nothing anyone can post will make a difference. I or anyone else could post a custom replacement for your includes\languages\english\index.php. It would work; you would be happy. But you would not be wiser.

jon

It's all just ones and zeros....

Posted
Please don't be offended by what I will say next:

 

"You have been given a solution to your problem. If you are not willing to implement it and help yourself, nothing anyone can post will make a difference. I or anyone else could post a custom replacement for your includes\languages\english\index.php. It would work; you would be happy. But you would not be wiser.

jon

Hi i am not offended i have worked through every line ! I am desperate now to get rid of that line which is the line i cannot delete i have narrowed it down to the stack message success $ language but there are two blue dots either side of them which means when i get rid of it the whole site shuts down. I know exactly where the problem is it just will not delte. OR am i missing something entirely?

i dont mind a replacement if you could help ?

best wishes and thanks for your help?

julie

Posted
You need to study what you have...Troubleshooting something like this means you need to get that line (that define) down to the bare minimum.

 

define('TEXT_MAIN', 'insert your text here.');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

Put the above in your file and start there. What do you get? If you have joy, add a bit more, upload that and see what you get.

 

jon

It's all just ones and zeros....

Posted

The while middle of the file is messed up. There's a funny little hidden link to php.net has crept in as well . . .

 

What Jon is correctly saying is you need to cut all of that out, strip it down till it DOES work, then you can put it back in piece by piece and test it so you can see exactly what is broken.

 

So, take a copy of the file, then try the following (which is pretty much what jon already said);

 

1. Take the colon ( : ) out. Just delete it, it definitely doesn't help.

 

2. Cut out everything from the end of 'Shop from your home!' to the last point before 'define('TABLE_HEADING_NEW_PRODUCTS'

 

 

That part of the file should now look like this:

 

define('TEXT_MAIN', 'The World Of UrbanEgos: Shop from home for your home!.');

 

 

 

Save it, try it. It should have removed the pics, and the rogue text. Report back, and if you want we can work through putting stuff back in.

Posted
The while middle of the file is messed up. There's a funny little hidden link to php.net has crept in as well . . .

 

What Jon is correctly saying is you need to cut all of that out, strip it down till it DOES work, then you can put it back in piece by piece and test it so you can see exactly what is broken.

 

So, take a copy of the file, then try the following (which is pretty much what jon already said);

 

1. Take the colon ( : ) out. Just delete it, it definitely doesn't help.

 

2. Cut out everything from the end of 'Shop from your home!' to the last point before 'define('TABLE_HEADING_NEW_PRODUCTS'

That part of the file should now look like this:

 

define('TEXT_MAIN', 'The World Of UrbanEgos: Shop from home for your home!.');

Save it, try it. It should have removed the pics, and the rogue text. Report back, and if you want we can work through putting stuff back in.

Hi thanks i did that and this nasty error came up instead of my page

Parse error: syntax error, unexpected T_STRING in /home/******/domains/urbanegos-stores.com/public_html/includes/languages/english/index.php on line 16

It is that nasty dollar sign with the two blue dots. I deleted everything you said. Is there anyway i can get a new includes/language/english/index that doesnot have that? it is PURE os commerce so the bug must have been in there

thanks in advance

julie

Posted
Hi thanks i did that and this nasty error came up instead of my page

Parse error: syntax error, unexpected T_STRING in /home/******/domains/urbanegos-stores.com/public_html/includes/languages/english/index.php on line 16

It is that nasty dollar sign with the two blue dots. I deleted everything you said. Is there anyway i can get a new includes/language/english/index that doesnot have that? it is PURE os commerce so the bug must have been in there

thanks in advance

julie

 

Hmm. I don't actually have one handy, mine isn't in english.

 

Let me see if I can find the original zip.

 

[edit] quick question though - what $ sign with blue dots do you mean though? Where is it - I can't see it in the code you posted.

Posted

oscommerce-2.2rc1 --> stock includes\languages\english\index.php

 

<?php
/*
 $Id: $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2007 osCommerce

 Released under the GNU General Public License
*/

define('TEXT_MAIN', 'This is a default setup of osCommerce Online Merchant. 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>Online Documentation</b><br><br>Online documentation can be read at the <a href="http://www.oscommerce.info" target="_blank"><u>osCommerce Knowledge Base</u></a> site.<br><br>Support is available at the <a href="http://www.oscommerce.com/support" target="_blank"><u>osCommerce Support Site</u></a>.</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 <font color="#f0000"><b>' . PROJECT_VERSION . '</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', 'What\'s New Here?');
} elseif ($category_depth == 'nested') {
 define('HEADING_TITLE', 'Categories');
}
?>

It's all just ones and zeros....

Posted

</td><td class="main" valign="top"><b></b><br><br><br><br><nobr class="messageStackSuccess">' . $language . '/' . FILENAME_DEFAULT . '</nobr><br><br> <nobr class="messageStackSuccess">' . ucfirst($language) . '-></nobr> <nobr class="messageStackSuccess">

 

There is the code. its the ucfirst($lanuage).-> line it matches the message on my home page english-> wierd isnt it

then again ucfirst($language).

These match exactly but for english= language

 

 

If i am explaining it right. On my dreamweaver it shows up as .ucfirst($language). has this is in blue etc...

thanks for helping

julie

Posted
</td><td class="main" valign="top"><b></b><br><br><br><br><nobr class="messageStackSuccess">' . $language . '/' . FILENAME_DEFAULT . '</nobr><br><br> <nobr class="messageStackSuccess">' . ucfirst($language) . '-></nobr> <nobr class="messageStackSuccess">

 

There is the code. its the ucfirst($lanuage).-> line it matches the message on my home page english-> wierd isnt it

then again ucfirst($language).

These match exactly but for english= language

If i am explaining it right. On my dreamweaver it shows up as .ucfirst($language). has this is in blue etc...

thanks for helping

julie

 

OK, but if you're doing what is being suggested, you'd have taken that out anyway, no?

Posted
OK, but if you're doing what is being suggested, you'd have taken that out anyway, no?

yes you are right but when i take it out the whole site shuts down. Thats a real problem and i get that above error on line 16 T_string error. I keep going around in circles with itThanks again

julie

Posted

Do not use DreamWeaver to edit taxt only files. Use a text editor, e.g., TextPad or other.

 

Please see in replacement below:

define('TEXT_MAIN', 'Julie -- Insert Your Text Here');

 

<?php
/*
$Id: $

osCommerce, Open Source E-Commerce Solutions
[url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

Copyright © 2007 osCommerce

Released under the GNU General Public License
*/

define('TEXT_MAIN', 'Julie -- Insert Your Text Here');
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');
}
?>

It's all just ones and zeros....

Posted
yes you are right but when i take it out the whole site shuts down. Thats a real problem and i get that above error on line 16 T_string error. I keep going around in circles with itThanks again

julie

 

OK, try th following.

 

VERY CARFULLY remove exactly these pieces of code;

 

1.

 

 <br><br><br><nobr class="messageStackSuccess">' . $language . '/' . FILENAME_DEFAULT . '</nobr><br><br> <nobr class="messageStackSuccess">' . ucfirst($language) . '-></nobr> <nobr class="messageStackSuccess"></nobr> <br><br><br><br><nobr><span class="messageStackSuccess"></span></nobr>

 

2.

 

 <br>
<a href="http://www.php.net/define" target="_blank"><u>here</u></a>

 

3.

 

 <br><br> <a href="http://www.oscommerce.info" target="_blank"><u>osCommerce Knowledge Base</u></a> <br><br> <a target="_blank"><u>osCommerce Support Site

 

 

As far as I can see, those are th ones creating the extra baggae on the page.

 

On the other hand, wat Jon is saying is also correct, as far as I can see. I don't know why it keeps breaking the page either.

Posted
OK, but if you're doing what is being suggested, you'd have taken that out anyway, no?

Hi

i downloaded the new index and it has exactly the same error!! It must be a bug in the code. It does exactly the same thing what can be done with it!!

best wishes

julie

Posted
Hi

i downloaded the new index and it has exactly the same error!! It must be a bug in the code. It does exactly the same thing what can be done with it!!

best wishes

julie

Will try that right now and let you know what happens

thanks

julie

Archived

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

×
×
  • Create New...