Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Define MainPage w/ TinyMCE addition


roback

Recommended Posts

Okay, I installed the Define MainPage contrib just fine and in the admin it brings up the text box editor. As it should. But as my client knows nothing of HTML, I decided it would be easiest to offer them the TinyMCE WYSIWYG editor. I follow the instructions and when I go back to the admin, it gives me the following error:

 

TEXT_FILE_DOES_NOT_EXIST

 

I went over my steps to ensure it was done correctly and I searched several places for anything that might be causing this and have returned nothing.

 

So if anyone has any idea why this might be doing this please let me know.

 

Thanks

 

Rob

Link to comment
Share on other sites

I figured it out... the file it was looking for was includes/languages/YOURLANG/mainpage.php, but the file in the package is define_mainpage.php and in the original Define Mainpage you update the catalog/includes/filenames.php to look for define_mainpage.php.

 

So you have to correct it so that everything is looking for the same file and that that file is named correctly.

 

Who would I notify to have this updated on the contrib page?

Link to comment
Share on other sites

  • 1 month later...
I figured it out... the file it was looking for was includes/languages/YOURLANG/mainpage.php, but the file in the package is define_mainpage.php and in the original Define Mainpage you update the catalog/includes/filenames.php to look for define_mainpage.php.

 

So you have to correct it so that everything is looking for the same file and that that file is named correctly.

 

Who would I notify to have this updated on the contrib page?

 

 

I had the same problem but I fixed it by opening define_mainpage.php and changing all instances of DEFINE_MAINPAGE to DEFINE_MAINPAGE0 and saved the file as define_mainpage0.php. Also had to change the line that reads

$HTTP_GET_VARS['filename'] = 'mainpage.php';

to $HTTP_GET_VARS['filename'] = FILENAME_DEFINE_MAINPAGE0;

 

Then upload to server. It shows up in the admin as rich text editor. So I did a save as for the others (DEFINE_MAINPAGE1 & 2) following the same steps and uploaded it so they all have the rich text editor function now.

 

Hope that helps you.

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...