Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Easy Language File Editing using FCK


1Putts

Recommended Posts

I'm not sure if I'm on the right track with this but anyway...

 

My client wants to be able to edit the text in the Language files for things like Terms & Conditions, Privacy Policy, Shipping & Returns etc. Hey, all the power to them - it's one less job for me to worry about. Of course, they have zero experience with HTML, FTP or anything else. But they can click buttons and type stuff - I suppose that's a start.

 

So I have the FCK editor installed...now I need to be able to get them to edit the text without zapping the DEFINE statements in the file. For example,

 

define('TEXT_INFORMATION', 'Their HTML Text Goes Here');

 

So what I'd like to do is create HTML files that replace the 'Their HTML Text Goes Here', have them edit the HTML files with the FCK editor. So it would look something like this:

define('TEXT_INFORMATION', 'TheHTMLFile.html');

 

Of course, this isn't the right syntax. But I'd like to know how to slip the file in there so it replaces the 'Their HTML Text Goes Here" with the HTML contents of another file.

 

Thanks in advance for any help.

Link to comment
Share on other sites

I'm not sure if I'm on the right track with this but anyway...

 

My client wants to be able to edit the text in the Language files for things like Terms & Conditions, Privacy Policy, Shipping & Returns etc. Hey, all the power to them - it's one less job for me to worry about. Of course, they have zero experience with HTML, FTP or anything else. But they can click buttons and type stuff - I suppose that's a start.

 

So I have the FCK editor installed...now I need to be able to get them to edit the text without zapping the DEFINE statements in the file. For example,

 

define('TEXT_INFORMATION', 'Their HTML Text Goes Here');

 

So what I'd like to do is create HTML files that replace the 'Their HTML Text Goes Here', have them edit the HTML files with the FCK editor. So it would look something like this:

define('TEXT_INFORMATION', 'TheHTMLFile.html');

 

Of course, this isn't the right syntax. But I'd like to know how to slip the file in there so it replaces the 'Their HTML Text Goes Here" with the HTML contents of another file.

 

Thanks in advance for any help.

 

Search the contributions for editing information pages with FCKeditor.

Link to comment
Share on other sites

Search the contributions for editing information pages with FCKeditor.

 

I've been through all the contribs - the Information Pages Unlimited (http://addons.oscommerce.com/info/1026) is not bad. It does have some issues which make me still want to try my approach. So my question still stands - is there a way to use the 'DEFINE' statement and grab the contents of another file rather than putting the text in between the second set of parameters?

 

define('TEXT_INFORMATION', 'TheHTMLFile.html');

Link to comment
Share on other sites

I've been through all the contribs - the Information Pages Unlimited (http://addons.oscommerce.com/info/1026) is not bad. It does have some issues which make me still want to try my approach. So my question still stands - is there a way to use the 'DEFINE' statement and grab the contents of another file rather than putting the text in between the second set of parameters?

 

define('TEXT_INFORMATION', 'TheHTMLFile.html');

 

Well. I guess I answered my own question. The answer is:

 

define('TEXT_INFORMATION', file_get_contents(NAME_OF_FILE));

 

Where you define the NAME_OF_FILE in the filenames.php like so:

 

define('NAME_OF_FILE', 'filename.php');

 

And then they can freely edit filename.php (I'll put it in a folder where they can't screw anything else up) using the FCK HTML editor. Done.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...