Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

editing english.php?


kdav

Recommended Posts

every time i try to edit english.php (for the welcome text or anything)... even if i just change ONE LETTER of the text.. it gives me this:

 

Parse error: parse error, unexpected T_STRING in /home/.kasha/kdav/kristendavenport.com/shop/includes/languages/english.php on line 79

 

shop url:

http://www.kristendavenport.com/shop

 

i've used programs like this before, such as zen cart and havent had a problem. so can you let me know if you know what is happening. :'(

Link to comment
Share on other sites

so can you let me know if you know what is happening.

 

Sure thing. You are breaking syntax of the php.

 

Post what you are trying to change it to, and we'll point out what you are doing wrong.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

oh excuse me! its not english.php! wrong file name, same problem.

 

i'm going into /includes/languages/english/index.php to change the front info on the cart (like where it has all the annoying directions, first off). i followed what the directions said, and i'm even when i change ONE LETTER of the text, it gives me that syntax error message.

 

this is the text i need to edit:

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>.');

and even when i just edit one word or something and save to see if it worked, it gives me the error message.

see the first sentence that reads:

"This is a default setup of the osCommerce project..."

if i even change one letter of any of that, it gives me the error.

any idea whats gone wrong?

Link to comment
Share on other sites

Here, change it to this.

 

define('TEXT_MAIN', '');

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

Here, change it to this.

 

define('TEXT_MAIN', '');

 

tried that several times, and it just ends up saying:

Parse error: parse error, unexpected T_STRING in /home/.kasha/kdav/kristendavenport.com/shop/includes/languages/english/index.php on line 19

 

im gonna try reading that link.

Link to comment
Share on other sites

problem solved by simply opening up the index.php in notepad like suggested in the link and editing it that way. for some reason it would give me the error when i changed it through the admin panel, but not when i did it by hand. strange.

 

 

anyways, thanks for your help!

Link to comment
Share on other sites

Yes, don't ever use the admin file manager, or the file manager in your cpanel manager.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

haha well, i'm new to php, and i try to avoid messing with the code as much as possible. like i said, ive messed with zen cart (which is super similar) and i should have known, because i had to code that part in to zen cart, too.

 

sucks for people who dont know ANYTHING about web... they'd be toooootally lost. i guess i was fortunate that i was only semi-lost ^_^

Link to comment
Share on other sites

To be completly honest, people that don't know *anything* aobut the web, or dynamic content websites, shouldn't be building something as important as an ecommerce web shop. I shudder to think of a customers personal information security in the hands of someone that hasn't got a clue.

 

There is a reason that people that develope these types of websites are paid decent.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...