Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Just this one simple thing guys...please


Guest

Recommended Posts

Posted

Hi,

 

I'm totally new with php and oscommerce, and well I'm getting the following error message -->Parse error: parse error, unexpected T_STRING in /home/potier/public_html/shopping/conditions.php on line 34

---

The site can be found here http://gamerevolution.co.nz/shopping/condi...b6a78e47546a8b8

---

And here is the text:

 

<?php

/*

$Id: conditions.php,v 1.4 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('NAVBAR_TITLE', 'Conditions of Use');

define('HEADING_TITLE', 'Conditions of Use');

 

define

 

('TEXT_INFORMATION', 'Welcome to GamerEvolution.co.nz. GamerEvolution.co.nz and its affiliates provide their services to you subject to the following conditions. If you visit or shop at GamerEvolution.co.nz, you accept these conditions. Please read them carefully. In addition, when you use any current or future GamerEvolution.co.nz service or visit or purchase from any business affiliated with GamerEvolution.co.nz, whether or not included in the GamerEvolution.co.nz Web site, you also will be subject to the guidelines and conditions applicable to such service or business.

 

PRIVACY

 

Please review our Privacy Statement, which also governs your visit to GamerEvolution.co.nz, to understand our practices.

 

ELECTRONIC COMMUNICATIONS

 

When you visit GamerEvolution or send e-mails to us, you are communicating with us electronically. You consent to receive communications from us electronically. We will communicate with you by e-mail or by posting notices on this site. You agree that all agreements, notices, disclosures and other communications that we provide to you electronically satisfy any legal requirement that such communications be in writing.

 

COPYRIGHT

 

All content included on this site, such as text, graphics, logos, button icons, images, audio or video clips, digital downloads, data compilations, and software, is the property of GamerEvolution or its content suppliers and protected by HKSAR and international copyright laws. The compilation of all content on this site is the exclusive property of GamerEvolution and protected by HKSAR and international copyright laws. All software used on this site is the property of GamerEvolution or its software suppliers and protected by HKSAR and international copyright laws.

 

LICENSE AND SITE ACCESS

 

GamerEvolution grants you a limited license to access and make personal use of this site and not to download (other than page caching) or modify it, or any portion of it, except with express written consent of GamerEvolution. This license does not include any resale or commercial use of this site or its contents; any collection and use of any product listings, descriptions, or prices; any derivative use of this site or its contents; any downloading or copying of account information for the benefit of another merchant; or any use of data mining, robots, or similar data gathering and extraction tools. This site or any portion of this site may not be reproduced, duplicated, copied, sold, resold, visited, or otherwise exploited for any commercial purpose without express written consent of GamerEvolution. You may not frame or utilize framing techniques to enclose any trademark, logo, or other proprietary information (including images, text, page layout, or form) of GamerEvolution and our affiliates without express written consent. You may not use any meta tags or any other "hidden text" utilizing GamerEvolution's name or trademarks without the express written consent of GamerEvolution. Any unauthorized use terminates the permission or license granted by GamerEvolution. You are granted a limited, revocable, and nonexclusive right to create a hyperlink to the home page of GamerEvolution so long as the link does not portray GamerEvolution, its affiliates, or their products or services in a false, misleading, derogatory, or otherwise offensive matter. You may not use any GamerEvolution logo or other proprietary graphic or trademark as part of the link without express written permission.

 

YOUR ACCOUNT

 

If you use this site, you are responsible for maintaining the confidentiality of your account and password and for restricting access to your computer, and you agree to accept responsibility for all activities that occur under your account or password. GamerEvolution does sell products for children, but it sells them to adults, who can purchase with a credit card. If you are under 18, you may use GamerEvolution only with involvement of a parent or guardian. GamerEvolution and its affiliates reserve the right to refuse service, terminate accounts, remove or edit content, or cancel orders in their sole discretion.

 

REVIEWS, COMMENTS, COMMUNICATIONS, AND OTHER CONTENT

 

Visitors may post reviews, comments, and other content; send e-cards and other communications; and submit suggestions, ideas, comments, questions, or other information, so long as the content is not illegal, obscene, threatening, defamatory, invasive of privacy, infringing of intellectual property rights, or otherwise injurious to third parties or objectionable and does not consist of or contain software viruses, political campaigning, commercial solicitation, chain letters, mass mailings, or any form of "spam." You may not use a false e-mail address, impersonate any person or entity, or otherwise mislead as to the origin of a card or other content. GamerEvolution reserves the right (but not the obligation) to remove or edit such content, but does not regularly review posted content.

 

If you do post content or submit material, and unless we indicate otherwise, you grant GamerEvolution and its affiliates a nonexclusive, royalty-free, perpetual, irrevocable, and fully sublicensable right to use, reproduce, modify, adapt, publish, translate, create derivative works from, distribute, and display such content throughout the world in any media. You grant GamerEvolution and its affiliates and sublicensees the right to use the name that you submit in connection with such content, if they choose. You represent and warrant that you own or otherwise control all of the rights to the content that you post; that the content is accurate; that use of the content you supply does not violate this policy and will not cause injury to any person or entity; and that you will indemnify GamerEvolution or its affiliates for all claims resulting from content you supply. GamerEvolution has the right but not the obligation to monitor and edit or remove any activity or content. GamerEvolution takes no responsibility and assumes no liability for any content posted by you or any third party.

 

COPYRIGHT COMPLAINTS

 

GamerEvolution and its affiliates respect the intellectual property of others. If you believe that your work has been copied in a way that constitutes copyright infringement, please contact us.

 

RISK OF LOSS

 

All items purchased from GamerEvolution are made pursuant to a shipment contract. This means that the risk of loss and title for such items pass to you upon our delivery to the carrier.

 

PRODUCT DESCRIPTIONS

 

GamerEvolution and its affiliates attempt to be as accurate as possible. However, GamerEvolution does not warrant that product descriptions or other content of this site is accurate, complete, reliable, current, or error-free.

 

DISCLAIMER OF WARRANTIES AND LIMITATION OF LIABILITY

 

THIS SITE IS PROVIDED BY GamerEvolution ON AN "AS IS" AND "AS AVAILABLE" BASIS. GamerEvolution MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, AS TO THE OPERATION OF THIS SITE OR THE INFORMATION, CONTENT, MATERIALS, OR PRODUCTS INCLUDED ON THIS SITE. YOU EXPRESSLY AGREE THAT YOUR USE OF THIS SITE IS AT YOUR SOLE RISK.

 

TO THE FULL EXTENT PERMISSIBLE BY APPLICABLE LAW, GamerEvolution DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. GamerEvolution DOES NOT WARRANT THAT THIS SITE, ITS SERVERS, OR E-MAIL SENT FROM GamerEvolution ARE FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS. GamerEvolution WILL NOT BE LIABLE FOR ANY DAMAGES OF ANY KIND ARISING FROM THE USE OF THIS SITE, INCLUDING, BUT NOT LIMITED TO DIRECT, INDIRECT, INCIDENTAL, PUNITIVE, AND CONSEQUENTIAL DAMAGES.

APPLICABLE LAW

 

By visiting GamerEvolution, you agree that the laws of the HKSAR, without regard to principles of conflict of laws, will govern these Terms of Use and any dispute of any sort that might arise between you and GamerEvolution or its affiliates.

 

SITE POLICIES, MODIFICATION, AND SEVERABILITY

 

Please review our other policies, such as our Pricing policy, posted on this site. These policies also govern your visit to GamerEvolution. We reserve the right to make changes to our site, policies, and these Conditions of Use at any time. If any of these conditions shall be deemed invalid, void, or for any reason unenforceable, that condition shall be deemed severable and shall not affect the validity and enforceability of any remaining condition.');

?>

---

 

Can anybody tell me what I have done wrong?

 

Your help would be greatly appreciated

 

Kind Regards

Patrick

Posted

You have 's inside of your text, like GamerEvolution's. I think you are supposed to put a in front of them, like this, GamerEvolution's

In olden times the men were made of iron and the ships were made of wood; now it's the other way around. :wink:

Posted

You have single quotes in the define statement.

 

You need to use the escape character on these.

 

Words like Don't have to be written as Don't

Posted

heh.

 

Thanks for the real quick reply guys.

I'll try it out.

 

As I said, I'm totally new.

 

Thanks a lot

Posted

can I use codes like <br> and <b> in php?

Posted

The define statements can be a combination of php and HTML if you are careful.

 

Just don't try to use any php function calls that were not defined before the language files load.

Posted

ok.

 

I ahve removed all the ' with ' but now the page shows as blank...help?

 

I don't get any error message, but the text isn't showing (http://gamerevolution.co.nz/shopping/conditions.php)

 

Here is the actual text -->

 

---

<?php

/*

$Id: conditions.php,v 1.4 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('NAVBAR_TITLE', 'Conditions of Use');

define('HEADING_TITLE', 'Conditions of Use');

 

define

 

('TEXT_INFORMATION', 'Welcome to GamerEvolution.co.nz. GamerEvolution.co.nz and its affiliates provide their services to you subject to the following conditions. If you visit or shop at GamerEvolution.co.nz, you accept these conditions. Please read them carefully. In addition, when you use any current or future GamerEvolution.co.nz service or visit or purchase from any business affiliated with GamerEvolution.co.nz, whether or not included in the GamerEvolution.co.nz Web site, you also will be subject to the guidelines and conditions applicable to such service or business.

<br>

<br>

<b>PRIVACY</b>

<br>

<br>

Please review our Privacy Statement, which also governs your visit to GamerEvolution.co.nz, to understand our practices.

<br>

<br>

<b>ELECTRONIC COMMUNICATIONS</b>

<br>

<br>

When you visit GamerEvolution or send e-mails to us, you are communicating with us electronically. You consent to receive communications from us electronically. We will communicate with you by e-mail or by posting notices on this site. You agree that all agreements, notices, disclosures and other communications that we provide to you electronically satisfy any legal requirement that such communications be in writing.

<br>

<br>

<b>COPYRIGHT</b>

<br>

<br>

All content included on this site, such as text, graphics, logos, button icons, images, audio or video clips, digital downloads, data compilations, and software, is the property of GamerEvolution or its content suppliers and protected by HKSAR and international copyright laws. The compilation of all content on this site is the exclusive property of GamerEvolution and protected by HKSAR and international copyright laws. All software used on this site is the property of GamerEvolution or its software suppliers and protected by HKSAR and international copyright laws.

<br>

<br>

<b>LICENSE AND SITE ACCESS</b>

<br>

<br>

GamerEvolution grants you a limited license to access and make personal use of this site and not to download (other than page caching) or modify it, or any portion of it, except with express written consent of GamerEvolution. This license does not include any resale or commercial use of this site or its contents; any collection and use of any product listings, descriptions, or prices; any derivative use of this site or its contents; any downloading or copying of account information for the benefit of another merchant; or any use of data mining, robots, or similar data gathering and extraction tools. This site or any portion of this site may not be reproduced, duplicated, copied, sold, resold, visited, or otherwise exploited for any commercial purpose without express written consent of GamerEvolution. You may not frame or utilize framing techniques to enclose any trademark, logo, or other proprietary information (including images, text, page layout, or form) of GamerEvolution and our affiliates without express written consent. You may not use any meta tags or any other "hidden text" utilizing GamerEvolution's name or trademarks without the express written consent of GamerEvolution. Any unauthorized use terminates the permission or license granted by GamerEvolution. You are granted a limited, revocable, and nonexclusive right to create a hyperlink to the home page of GamerEvolution so long as the link does not portray GamerEvolution, its affiliates, or their products or services in a false, misleading, derogatory, or otherwise offensive matter. You may not use any GamerEvolution logo or other proprietary graphic or trademark as part of the link without express written permission.

<br>

<br>

<b>YOUR ACCOUNT</b>

<br>

<br>

If you use this site, you are responsible for maintaining the confidentiality of your account and password and for restricting access to your computer, and you agree to accept responsibility for all activities that occur under your account or password. GamerEvolution does sell products for children, but it sells them to adults, who can purchase with a credit card. If you are under 18, you may use GamerEvolution only with involvement of a parent or guardian. GamerEvolution and its affiliates reserve the right to refuse service, terminate accounts, remove or edit content, or cancel orders in their sole discretion.

<br>

<br>

<b>REVIEWS, COMMENTS, COMMUNICATIONS, AND OTHER CONTENT</b>

<br>

<br>

Visitors may post reviews, comments, and other content; send e-cards and other communications; and submit suggestions, ideas, comments, questions, or other information, so long as the content is not illegal, obscene, threatening, defamatory, invasive of privacy, infringing of intellectual property rights, or otherwise injurious to third parties or objectionable and does not consist of or contain software viruses, political campaigning, commercial solicitation, chain letters, mass mailings, or any form of "spam." You may not use a false e-mail address, impersonate any person or entity, or otherwise mislead as to the origin of a card or other content. GamerEvolution reserves the right (but not the obligation) to remove or edit such content, but does not regularly review posted content.

<br>

<br>

If you do post content or submit material, and unless we indicate otherwise, you grant GamerEvolution and its affiliates a nonexclusive, royalty-free, perpetual, irrevocable, and fully sublicensable right to use, reproduce, modify, adapt, publish, translate, create derivative works from, distribute, and display such content throughout the world in any media. You grant GamerEvolution and its affiliates and sublicensees the right to use the name that you submit in connection with such content, if they choose. You represent and warrant that you own or otherwise control all of the rights to the content that you post; that the content is accurate; that use of the content you supply does not violate this policy and will not cause injury to any person or entity; and that you will indemnify GamerEvolution or its affiliates for all claims resulting from content you supply. GamerEvolution has the right but not the obligation to monitor and edit or remove any activity or content. GamerEvolution takes no responsibility and assumes no liability for any content posted by you or any third party.

<br>

<br>

<b>COPYRIGHT COMPLAINTS</b>

<br>

<br>

GamerEvolution and its affiliates respect the intellectual property of others. If you believe that your work has been copied in a way that constitutes copyright infringement, please contact us.

<br>

<br>

<b>RISK OF LOSS</b>

<br>

<br>

All items purchased from GamerEvolution are made pursuant to a shipment contract. This means that the risk of loss and title for such items pass to you upon our delivery to the carrier.

<br>

<br>

<b>PRODUCT DESCRIPTIONS</b>

<br>

<br>

GamerEvolution and its affiliates attempt to be as accurate as possible. However, GamerEvolution does not warrant that product descriptions or other content of this site is accurate, complete, reliable, current, or error-free.

<br>

<br>

<b>DISCLAIMER OF WARRANTIES AND LIMITATION OF LIABILITY</b>

<br>

<br>

THIS SITE IS PROVIDED BY GamerEvolution ON AN "AS IS" AND "AS AVAILABLE" BASIS. GamerEvolution MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, AS TO THE OPERATION OF THIS SITE OR THE INFORMATION, CONTENT, MATERIALS, OR PRODUCTS INCLUDED ON THIS SITE. YOU EXPRESSLY AGREE THAT YOUR USE OF THIS SITE IS AT YOUR SOLE RISK.

<br>

<br>

TO THE FULL EXTENT PERMISSIBLE BY APPLICABLE LAW, GamerEvolution DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. GamerEvolution DOES NOT WARRANT THAT THIS SITE, ITS SERVERS, OR E-MAIL SENT FROM GamerEvolution ARE FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS. GamerEvolution WILL NOT BE LIABLE FOR ANY DAMAGES OF ANY KIND ARISING FROM THE USE OF THIS SITE, INCLUDING, BUT NOT LIMITED TO DIRECT, INDIRECT, INCIDENTAL, PUNITIVE, AND CONSEQUENTIAL DAMAGES.

APPLICABLE LAW

<br>

<br>

By visiting GamerEvolution, you agree that the laws of the HKSAR, without regard to principles of conflict of laws, will govern these Terms of Use and any dispute of any sort that might arise between you and GamerEvolution or its affiliates.

<br>

<br>

<b>SITE POLICIES, MODIFICATION, AND SEVERABILITY</b>

<br>

<br>

Please review our other policies, such as our Pricing policy, posted on this site. These policies also govern your visit to GamerEvolution. We reserve the right to make changes to our site, policies, and these Conditions of Use at any time. If any of these conditions shall be deemed invalid, void, or for any reason unenforceable, that condition shall be deemed severable and shall not affect the validity and enforceability of any remaining condition.');

?>

---

 

 

What's wrong this time?

 

I appreciate your help Linda.

 

Many thanks

Patrick

Posted

Did you overwrite the code for conditions.php with the language file for conditions.php?

Posted

now you've confused me. The text you see in my post above is the text I see in NotePad. From there I saved the file as condition.php, and replaced the old condition.php file (in /catalog/)

 

Is there something else I am mean to be doing?

 

Kind Regards

Patrick

Posted
Did you overwrite the code for conditions.php with the language file for conditions.php?
It seems like it would be smarter for osCommerce to name the included files slightly different from the main files, like maybe conditions_.php, so there wouldn't be overwriting problems, although you would still need to put stuff in the right directory.

In olden times the men were made of iron and the ships were made of wood; now it's the other way around. :wink:

Posted

So is there another file I need to change so the page works?

 

Kind Regards

Patrick

Posted
now you've confused me. The text you see in my post above is the text I see in NotePad. From there I saved the file as condition.php, and replaced the old condition.php file (in /catalog/)

 

Is there something else I am mean to be doing?

 

Kind Regards

Patrick

 

You said you loaded the language file that belongs in /includes/languages/english.php into /catalog where the program file for conditions.php is suppose to be.

 

Basically this means you over wrote the program file with the language file ... :shock:

 

Reload the /catalog/conditions.php then reload the /catalog/includes/languages/english/conditions.php file into their correct directories and it should fix the problem ...

Posted

oh.

 

I never though looking in the english directory. The only file I have changes is the one in catalog, not in catalog/includes/languages/english/

 

Many thanks for the help.

Posted

I have replaced both file (the one in /catalog/ and the one in /catalog/includes/languages/english/) with the one I have showed you before...Still turns up blank...

 

Patrick

Posted

There are no define statements in the /catalog/conditions.php

 

The define statements are only in /catalog/includes/languages/english/conditions.php

 

You may wish to look over some of your files and see if you have other code files overwritten with language files.

Posted

so what does my /catalog/condition.php file should look like?

Posted
I have replaced both file (the one in /catalog/ and the one in /catalog/includes/languages/english/) with the one I have showed you before...Still turns up blank...

 

Patrick

 

There are two (2) very different files both called conditions.php

 

The code file that belongs in /catalog has all of the tables and php code in it.

 

The language file that belongs in /catalog/includes/languages/english has only the define statements in it.

 

Presently, you have loaded the language file in both locations.

 

Look at your original snapshot and get the code version that belongs in /catalog and it will fix the problem.

Posted

YES it works. Sorry for the bother, but I'm totally new with this, and I didn't knwo there was a difference between the two.

 

 

I am very very greatful for your help (all fo you who helped me).

 

Kind Regards

Patrick

Posted

Not a problem ... you would be amazed how often someone will do this.

 

The magical white page has many causes ... that is one of them ... :D

Archived

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

×
×
  • Create New...