Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Index Help


carl6885

Recommended Posts

Posted

Hi

 

I am trying to change the main page text and know I need to go to /includes/language/english/index.php.

 

Anything I seem to change comes up with an error. I am changing thing correctly but no matter what I change I get this:

 

Parse error: parse error, unexpected T_STRING in C:\Inetpub\vhosts\click-pt.com\httpdocs\subscription_center\includes\languages\english\index.php on line 13

 

This happens even if I add extra text to whats already there, even between words that are there.

 

Can anyone help?

 

Thanks in advance.

 

Carl

Posted

If any of the words you are using have an apostrophe in them, they will cause the error unless you use the backslash escape character first.

 

Shouldn\'t

Wouldn\'t

It\'s Carl\'s website\'s first problem!

 

Get it?

Posted
If any of the words you are using have an apostrophe in them, they will cause the error unless you use the backslash escape character first.

 

Shouldn\'t

Wouldn\'t

It\'s Carl\'s website\'s first problem!

 

Get it?

 

Thanks I will remember that, but even if I just change one word, such as 'have' with 'above' for example it creates the error.

 

Any ideas?

 

Cheers

Posted

You must keep your text within the 2 single quotes and the constant has to end with a close parenthesis and semi-colon

 

define('TEXT_MAIN', 'Your text between the 2 single quotes.');

Archived

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

×
×
  • Create New...