PDA

View Full Version : Editing /includes/languages/english/index.php


vgrieco
12-22-04, 09:17 AM
On the first page of the "store" there's a statement that you can edit the file manually (I know how to do that) or use the "administration tool with the languages... english... define or tools... file manager MODULES."

Can anyone point me down the path to those modules? I can't seem to find them. Thanks.

stevel
12-22-04, 09:27 AM
Don't go there. The File Manager in the admin panel will corrupt your files. In fact, you should delete catalog/admin/file_manager.php from your site - it is a security risk.

Download the files and edit them locally. Better, download your entire site so that you have all the files locally. Edit and upload changes as desired.

tacimala
12-22-04, 01:24 PM
It sounds to me like you are trying to edit the actual text on the page. You will find that on the Define Languages page in the Tools section. From there, just click on the page you are wishing to edit the copy for, so in your case index.php.

stevel
12-22-04, 02:05 PM
Um, no, the text on the page is defined in catalog/includes/languages/english/index.php - you have to download the file and edit it.

67mustang
12-22-04, 03:49 PM
It's also a good idea to download the generic OS Commerce files before you make any modifications or edits with the administration tool and save them separately from your site files so when you mess up a particular file you'll have a backup file to start over with.

stevel
12-22-04, 05:21 PM
Yes, I am very much in favor of this idea (and do it myself.)

vgrieco
12-22-04, 07:57 PM
I've got backups for my backups, plus the ultimate backup... uninstall/reinstall... and I'm only working on the layout so far, so I should be reasonably safe. I'm struggling with the recursive nature of OsCommerce. I find it hard to keep straight who's driving the bus. Seems like you can change the database in mysql and that updates php, or you can edit the php files and it updates mysql. Am I getting this? Maybe I don't even want to know.....

stevel
12-22-04, 08:31 PM
Neither is the case. Changes in the database are reflected in what the PHP files display and do, but they don't actually change the PHP. The PHP contains many database queries, inserts and updates.

If you edit the PHP, that doesn't do anything to the database, unless you added or modified code that manipulates the database.