Jump to content
Sign in to follow this  
MaxiDVD

[Contribution] HTML WYSIWYG Editor for Product Desc, MS1 2.2

Recommended Posts

Hi !

 

I have installed this contribution but it don't work, there comes a link "HTML WYSIWYG Editor" and I can change settings but I can't see any editor in categories or products page except that usual textarea...

 

In install.txt there is this line: "By adding a few simple lines of JavaScript to your categories.php and application_top.php" and so on...

but there is no mention about modifying this application_top.php later...

The same for me. In /catalog/admin.configuration.php I can see the the WISYWYG editor 1.7, and I enabled it, for the newsletters. But When I go to Tools>Newsletters, I don't know how to create/send a html-newsletter.

 

Please help! I presume it is a very very good contribtion and I really am eager to use it!

Share this post


Link to post
Share on other sites

In /catalog/admin.configuration.php I can see the the WISYWYG editor 1.7, and I enabled it, for the newsletters. But When I go to Tools>Newsletters, I don't know how to create/send a html-newsletter.

 

Please help! I presume it is a very very good contribtion and I really am eager to use it!

 

My question: how to send html-newsletters with pictures?

Share this post


Link to post
Share on other sites

I forgot to upload the html-area in admin.

 

Now after doing that, I see the html-menu-option in the tools>newesletter. But............................

the only active button is "Large Editor'. When I am in "Large Editor", all buttons are active exept the button "Minimize Editor". In the large editor I can html-format the text and insert an image. But I can't go to the normal Editor-size and so I can't send the newsletter.

 

How to fix it?

 

I think my Java- Virtual-Machine is corrupted, cause I can't display some sites that use jsp-files. But I can't fix that because I can't reach www.sun.com

 

Who can help?

Share this post


Link to post
Share on other sites

Done!

 

I uploaded the WYSIWYG-files and all works fine.

The modifications earlier made in the files have to be redone.

 

But the HTML WYSIWYG is worth the extra work!

 

Bye. :D

Share this post


Link to post
Share on other sites

mine is set in https mode only

is there any way in the wysiwyg to stop the display no secure items.

apart from that it is great.

i also cant seem to find what is loaded in normal mode.

 

cheers

 

dazz :unsure:

Share this post


Link to post
Share on other sites

Hi,

 

After adding this installation I cannot use the function to ad products to my shop thru the admin panel, when I click the button Atricles/groups I get the following error message

 

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home/gameorde/public_html/catalog/admin/includes/functions/database.php:13) in /home/gameorde/public_html/catalog/admin/includes/functions/database.php on line 13

 

Could anyone help me to fix this

Share this post


Link to post
Share on other sites
Hi all,

 

i'm working with wysiwyg v1.6.6 Beta. Everything works (almost) fine, but when i want to send a newsletter, i get an error:

Fatal error: Cannot redeclare class newsletter in /home/maarten/public_html/winkel3/admin/includes/modules/newsletters/newsletter.php on line 13

 

Does anyone can tell me how i can fix this problem?

 

greets,

Maarten

Maarten,

 

Did you ever get this figured out? I am having the same problem.

 

Cannot redeclare class newsletter in /.../newsletter.php on line 13.

 

Any ideas?


while (!succeed) {try()};

 

GMT -6:00

Share this post


Link to post
Share on other sites

If you install the InfoPages v0.1 (2003/03/02) mod look out! It will screw up WYSIWYG. I have confirmed the conflict between the two, but I can't figure a way to make them work together. If I go in and comment out the code for infopages in application_top.php, column_left.php, and configure.php in admin then I can browse and upload pictures. With infopages enabled when you go to upload a picture it is saying ... See bottom of post.

 

How to fix?

 

I've been on this for 3 hours now...I am doing to kill myself now and go to sleep. Maybe someone would be kind enough to leave me a nice little wakeup solution to this problem. This is the last bug I have to work out in a perfect install with 24 additional contributions installed.

 

 

Some stuff from the install of InfoPages as follows:

 

Add changes to the following files

===========================================================

## ADMIN AREA ##

===========================================================

includes/configure.php:

 

// Module: InfoPages

require(DIR_WS_MODULES . 'infopages/configure.php');

 

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

includes/application_top.php:

 

// Module: InfoPages

require(DIR_WS_INFOPAGES . 'application_top.php');

 

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

includes/column_left.php:

 

// Module: InfoPages

require(DIR_WS_INFOPAGES . 'boxes/infopages.php');

 

The error when opening the file browser/display window to upload a picture...

 

Warning: main (includes/modules/infopages/configure.php): fail to open stream: No such file/directory in home/spyder/public_html/catalog/admin/includes/ configure.php on line 39

 

I love you all! HELP ME!!! Plz!! My last bug! :blink:

Share this post


Link to post
Share on other sites

This script doesn't work on macintosh with IE. Do you have a solution ?



Regards
-----------------------------------------
Loïc

Contact me by skype for business
Contact me @gyakutsuki for an answer on the forum

 

Share this post


Link to post
Share on other sites
If you install the InfoPages v0.1 (2003/03/02) mod look out! It will screw up WYSIWYG. I have confirmed the conflict between the two, but I can't figure a way to make them work together. If I go in and comment out the code for infopages in application_top.php, column_left.php, and configure.php in admin then I can browse and upload pictures. With infopages enabled when you go to upload a picture it is saying ... See bottom of post.

 

How to fix?

 

I've been on this for 3 hours now...I am doing to kill myself now and go to sleep. Maybe someone would be kind enough to leave me a nice little wakeup solution to this problem. This is the last bug I have to work out in a perfect install with 24 additional contributions installed.

 

 

Some stuff from the install of InfoPages as follows:

 

Add changes to the following files

===========================================================

## ADMIN AREA ##

===========================================================

includes/configure.php:

 

// Module: InfoPages

require(DIR_WS_MODULES . 'infopages/configure.php');

 

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

includes/application_top.php:

 

// Module: InfoPages

require(DIR_WS_INFOPAGES . 'application_top.php');

 

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

includes/column_left.php:

 

// Module: InfoPages

require(DIR_WS_INFOPAGES . 'boxes/infopages.php');

 

The error when opening the file browser/display window to upload a picture...

 

Warning: main (includes/modules/infopages/configure.php): fail to open stream: No such file/directory in home/spyder/public_html/catalog/admin/includes/ configure.php on line 39

 

I love you all! HELP ME!!! Plz!! My last bug! :blink:

basically, it's opening the wrong file.

 

for your specific installation, change:

// Module: InfoPages

require(DIR_WS_MODULES . 'infopages/configure.php');

to:

// Module: InfoPages

require('modules/infopages/configure.php');

 

this is a quick fix, but it did the job.

Share this post


Link to post
Share on other sites

hey

i just followed _Easy_MS1_ Installation.txt installed everything on my website

but i got this error when i try to access catalog from administrator control panel

Fatal error: Call to undefined function: tep_array_merge() in

 

c:\inetpub\wwwroot\catalog\admin\categories.php on line 714

 

Can anyone plz tell me what's wrong?

 

i am using oscommerce 2.2ms2 and HTML WYSIWYG v1.6.6 Beta

 

Someone plz help!!!!

Share this post


Link to post
Share on other sites

You probably have version MS2 of oscommerce and this is released for MS1. To remedy your situation do this:

 

replace categories with your old categories from MS2. The read the step by step instructions and just add in the lines in step 1.1 and 1.2 to your new categories.php. That should work. If you want to be safe you should do this also for the other files in the release.

 

dWP

Share this post


Link to post
Share on other sites

Fix for Info pages

 

If you installed infopages your html editor is not able to upload pictures due to conflict with the definition in configure.php in admin/includes.

 

Fix it by changing it to this.

 

// Module: InfoPages

#require(DIR_WS_MODULES . 'infopages/configure.php');

require('modules/infopages/configure.php');

 

 

Have great day!

Share this post


Link to post
Share on other sites

A quick question for you guys, i am currently using WYSIWYG HTMLArea1.6.6 how do i upgrade to 1.7

 

1 more quesion is HTML_WYSIWYG_SQL.sql in 1.6.6 same as the one in 1.7 if not

how do i use phpmyadmin to delete the old HTML_WYSIWYG_SQL.sql file.

 

Thank you very much

Share this post


Link to post
Share on other sites

Is this a error on installation instruction?

 

on the step by step instruction says

 

STEP 1.1g --> FIND: /admin/categories.php
 ===========================================================================
=========
 Look/search for this around line 1051:
 ===========================================================================
=========


       } else { // create category/product info
         $heading[] = array('text' => '<b>' . EMPTY_CATEGORY . '</b>');

         $contents[] = array('text' => TEXT_NO_CHILD_CATEGORIES_OR_PRODUCTS);
       }
       break;
   }

   if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) {
     echo '            <td width="25%" valign="top">' . "\n";

     $box = new box;
     echo $box->infoBox($heading, $contents);

     echo '            </td>' . "\n";
   }
?>


 ===========================================================================
=========
 [COLOR=red]And directly UNDERNEATH IT add this:[/COLOR]
 ===========================================================================
=========



       } else { // create category/product info
         $heading[] = array('text' => '<b>' . EMPTY_CATEGORY . '</b>');

         $contents[] = array('text' => TEXT_NO_CHILD_CATEGORIES_OR_PRODUCTS);
       }
       break;
   }

   if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) {
     echo '            <td width="25%" valign="top">' . "\n";

     $box = new box;
     echo $box->infoBox($heading, $contents);

     echo '            </td>' . "\n";

     // Add neccessary JS for WYSIWYG editor of category image
     if($action=='edit_category'){
       if (HTML_AREA_WYSIWYG_DISABLE != 'Disable'){
         echo '
                 <script language="JavaScript1.2" defer>
                 var config = new Object();  // create new config object
                 config.width  = "250px";
                 config.height = "35px";
                 config.bodyStyle = "background-color: white; font-family: Arial; color: black; font-size: 12px;";
                 config.debug = ' . HTML_AREA_WYSIWYG_DEBUG . ';
                 config.toolbar = [ ["InsertImageURL"] ];
                 config.OscImageRoot = "' . trim(HTTP_SERVER . DIR_WS_CATALOG_IMAGES) . '";
                 editor_generate("categories_image",config);
                </script>
              ';
       }
     }

   }

 

 

And directly UNDERNEATH IT add this:

 

do you suppose to replace the code instead of adding it underneath?

Share this post


Link to post
Share on other sites

First of all, let me say this is the best contribution i have ever seen

Great work for all you guys.

 

 

but let me ask a dumb question:

 

my original image which look like this CS868SL.jpg

 

but after i load it up with WYSIWYG EDITOR or without it look like this

bad.jpg

 

The image is automatically resized.

 

how can i make it look like my original picture? can WYSIWYG do it? or is there a setting from oscommerce or is there a contribustion that can do it?

 

can someone tell me in detail please, i am kind of dumb.

 

Thank you very much

Share this post


Link to post
Share on other sites

Go to your catalog/admin and select "Images". Then delete the values after Small Image Height, Heading Image Height etc.

 

This will solve your problem ( I think).

 

Bye from a cold but sunny Netherlands.

Share this post


Link to post
Share on other sites

thanks waitsee!

 

this has solved my problem, but i have another question for you, when i click on the "click to enlarge" the picture shows up in a pop up window but it's the same size as the original one. i have the larger size of the picture, but i don't know where to upload? i don't see there is any function for upload enlarge picture.

 

can you help me out plz?

Share this post


Link to post
Share on other sites

hello...

 

i've tried to set up the wysiwyg-editor 1.7 on my ms2 osc-shop.

i've tried the fresh copy&paste-install as well as the step-by-step-instructions.

 

my problem is:

when i'm in the admin-interface, i can't find anything to config the wysiwyg.

usually there should be something like "enable wysiwyg" or "width" ans so on, shouldn't it?

 

the import into the database was successfull, all entries are there.

 

the textboxes are still the normal html-boxes.

 

what went wrong during my install?

 

thx, LuxorN

Share this post


Link to post
Share on other sites

fixed it...

 

now i can configure wysiwyg-editor and i can use ist for newsletters, mainpage and email.

 

but the product-description has still the normal boxes.

 

i think i will read the 38 pages of this thread now... :(

Share this post


Link to post
Share on other sites

I am on ms2 but when i want to upload a image (on my desk computer), i have a response : "you can't upload".

how can i solve this problem.

All my directory in ctalog/image are in write.



Regards
-----------------------------------------
Loïc

Contact me by skype for business
Contact me @gyakutsuki for an answer on the forum

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×