Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


Guest

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!

Link to comment
Share on other sites

  • Replies 557
  • Created
  • Last Reply

Top Posters In This Topic

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?

Link to comment
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?

Link to comment
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

Link to comment
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

Link to comment
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:

Link to comment
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.

Link to comment
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!!!!

Link to comment
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

Link to comment
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!

Link to comment
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

Link to comment
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?

Link to comment
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

Link to comment
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.

Link to comment
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?

Link to comment
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

Link to comment
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... :(

Link to comment
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

 

Link to comment
Share on other sites

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...