Jump to content
Sign in to follow this  
MaxiDVD

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

Recommended Posts

Just installed this contribution, had no problems at all and works like a charm.

 

Great job and thanks

 

 

Carl

Share this post


Link to post
Share on other sites

WYSIWYG 1.7

 

2.2-MS2-CVS tep_snapshot-20030709

 

I have set up a test store with the same snapshot so that i can test the contribs b4 i use it on my live store. If it works ok all i do is transfer the updated php files to my live store and add any mysql docs needed.

 

 

Carl

Share this post


Link to post
Share on other sites

Hummm... same version for html, but I don't use CVS for my OSC, I've download the file at 15.07.2003

 

When I upload a image, I receive a error box with the text "File 'test.gif'

could not be created"....

And when I wish to create a new folder, I receive a error box with the text "Folder 'myFolder' could not be created"....

 

Is that a config path problem if my file manger work well?

 

Many thx for your help and time, I must open the shop next week and I'm a little afraid with that problem ;o(

 

 

Regards, Dom

Share this post


Link to post
Share on other sites

Hi,

 

I just instaled my 2ms2 and WYSIWYG 1.7.

 

When I try to edit the product I am geting the standart page without the editor. :(

 

I do have the WYSIWYG tab in my config. Everything is enabled.

 

THanks


MIrro_IL

Share this post


Link to post
Share on other sites

I have this working perfectly on my local apache server. And had it workigng perfectly when I set it up on what will be my production server...

 

After doing a database transfer from my local system, to the production system, all of the links / images are broken in the image manager. Clicking on any of the links results in a "action cancled" page (see the right window).

 

It still allows me to create new folders, but trying to click on it aftwards results in the same problem.

 

Not sure what I broke.. here is a screenie...any tips would be most apprecaited.

 

imagemanager.jpg


Rav

Share this post


Link to post
Share on other sites

never mind, I seem to have fixed it. Not sure why, but it was due to the way I had the paths setup in the confiure.php.


Rav

Share this post


Link to post
Share on other sites

Hi, I need help?

 

I?ve added the WYSIWYG editor to the header.php file, and it works great, until we go to a secure page ? (like logon or create a new profile, checkout pages, etc). The pad lock disappears when it loads the image(s) in the header file that I?ve added through WYSIWYG. When I look at the properties for the image (right click on it), the url is for the Non SSL, but all the other pic?s on the secure page (outside of the header) have the SSL url before them.

 

Does anyone know where I can change some of the code & in which files, so that when I insert an image through the WYSIWYG image inserter, it loads the SSL url before the Pic not the Non SSL url like it does.

 

Your Help would be very much appreciated

 

Using MS1 WYSIWYG V1.6.6

 

Cheers Shortie

Share this post


Link to post
Share on other sites

Hi,

 

I have added the WYSIWYG editor to my website (email, newsletter and main paige) It all works great but for one thing, it iwll not work from the Admin section, Catalog, Define Main Page.

 

I get this error:

 

Define Main page  English  

 

ERROR_FILE_NOT_WRITEABLE  

 

mainpage.php

 

Can anyone give me a clue as to what is going on or how I can fix it?

 

Thanks

Leon


I'm having a great Day - hope you are too!

 

Leon

Share this post


Link to post
Share on other sites

Thanks,

 

I just "chmod 777" the file itself define_mainpage.php

 

I also attemped to chmod 777 the directory "admin" but it would not let me. All I could get out of it was 770 that is nothing in the World column was checked.

 

Still getting the same error.

 

Define Main page  English  

ERROR_FILE_NOT_WRITEABLE  

mainpage.php

 

Thanks for the help so far but got any other ideas?


I'm having a great Day - hope you are too!

 

Leon

Share this post


Link to post
Share on other sites

Thanks that fixed that part of it, but now.....

 

The page in the Define page window seems to be nto displaying right, take a look.

 

In the admin section go here: http://ministryhelps.com/store/admin/defin...b7e5a6d7c133c79

 

And since that is fixed the http://www.ministryhelps.com/store/ is fine but the

 

http://www.ministryhelps.com/store/default.php has a VERY small error.

 

What's New Here?

 

 

Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?

 

Parse error: parse error, expecting `')'' in /home/ministry/public_html/store/includes/languages/english/mainpage.php on line 16

 

 

I think both are related in some way.

 

Any ideas on this one?

 

BY THE WAY THANKS A WHOLE LOTS! I am just learning all this...


I'm having a great Day - hope you are too!

 

Leon

Share this post


Link to post
Share on other sites

Hi bibleman

 

Open Define Mainpage from admin, and delete everything that is in the html editor then save it again, that should get rid of the error you have, you could also try opening: store/includes/languages/english/mainpage.php with notepad or some editor and delete everything on the page make it "Blank" then save it again.

 

Cheers MaxiDVD :-)

Share this post


Link to post
Share on other sites

Lee you are the man!!!

 

This contribution is so good.

 

Is there any easy way to edit information files?

 

Shipping & Returns

Privacy Notice

etc.


MIrro_IL

Share this post


Link to post
Share on other sites

THANKS LEE

THAT DID IT!

 

YEAH!

 

When you come to SC let me know and I will invite you over for a glass of Ice TEA!


I'm having a great Day - hope you are too!

 

Leon

Share this post


Link to post
Share on other sites

Hi Mirro_IL

 

You should install this contribution, Its great for creating, editing and deleting those pages.. also about 5-6 pages back in this forum you will see others have done this modification - with instructions on how to get the HTML editor to work with it..

 

Heres the "Information Pages Unlimited" Contribution

http://www.oscommerce.com/community/contributions,1026

 

Cheers MaxiDVD :lol:

Share this post


Link to post
Share on other sites

Hey everybody.

 

I have just follow the file Step_by_step_Installation_ Instructions.txt and ran into a small problem in admin/includes/boxes/catalog.php.

 

I have allready installed Admin Access Level Accounts for MS2 and this contrib has also modifided the file catalog.php.

 

So how can I combine the following codes.

 

The code made by Admin Access Level Accounts for MS2

tep_admin_files_boxes(FILENAME_PRODUCTS_EXPECTED, BOX_CATALOG_PRODUCTS_EXPECTED));

 

The code from HTML WYSIWYG Editor for Product Desc, MS1 2.2

'<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a><br>' .

 

Hope it would be possible to combine them because i really need both of them (because of their functionality)

 

Thanx


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

 

Regards Jubii

Share this post


Link to post
Share on other sites

How about this:

  if ($selected_box == 'catalog') {

// BOF Admin w/access levels begin

// old    $contents[] = array('text'  => '<a href="' . tep_href_link(FILENAME_CATEGORIES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_CATEGORIES_PRODUCTS . '</a><br>' .

   $contents[] = array('text'  =>

// old OSC line                      '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES . '</a><br>' .

// old OSC line                      '<a href="' . tep_href_link(FILENAME_MANUFACTURERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_MANUFACTURERS . '</a><br>' .

// old OSC line                      '<a href="' . tep_href_link(FILENAME_REVIEWS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_REVIEWS . '</a><br>' .

// old OSC line                      '<a href="' . tep_href_link(FILENAME_SPECIALS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_SPECIALS . '</a><br>' .

// old OSC line                      '<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a><br>' .

                                  tep_admin_files_boxes(FILENAME_CATEGORIES, BOX_CATALOG_CATEGORIES_PRODUCTS) .

                                  tep_admin_files_boxes(FILENAME_PRODUCTS_ATTRIBUTES, BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES) .

                                  tep_admin_files_boxes(FILENAME_MANUFACTURERS, BOX_CATALOG_MANUFACTURERS) .

                                  tep_admin_files_boxes(FILENAME_REVIEWS, BOX_CATALOG_REVIEWS) .

                                  tep_admin_files_boxes(FILENAME_SPECIALS, BOX_CATALOG_SPECIALS) .

      tep_admin_files_boxes(FILENAME_XSELL_PRODUCTS, BOX_CATALOG_XSELL_PRODUCTS) .

      tep_admin_files_boxes(FILENAME_EASYPOPULATE, BOX_CATALOG_EASYPOPULATE) .

// BOF - MaxiDVD Added Line For WYSIWYG HTML Area:

// Old line - changed for Admin w/levels  '<a href="' . tep_href_link(FILENAME_DEFINE_MAINPAGE, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_DEFINE_MAINPAGE . '</a>');

      tep_admin_files_boxes(FILENAME_DEFINE_MAINPAGE, BOX_CATALOG_DEFINE_MAINPAGE) .

// EOF - MaxiDVD Added Line For WYSIWYG HTML Area

                                  tep_admin_files_boxes(FILENAME_PRODUCTS_EXPECTED, BOX_CATALOG_PRODUCTS_EXPECTED));

// EOF - Admin w/access levels

 }



 $box = new box;

 echo $box->menuBox($heading, $contents);

?>

           </td>

         </tr>

<!-- catalog_eof //-->

Except for word wrap - Self expalining???

Share this post


Link to post
Share on other sites

Hello, I have downloaded the editor. My download only had 2 files in it.

Coupon admin. and gv mail.php. Where are the instructions?

 

Thanks

Share this post


Link to post
Share on other sites

Hello, I was just going through the install with the instructions when I found this:

 

 

 

STEP 1.3 --> OPEN: /admin/includes/filenames.php

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

=====

Add this DEFINE around line 26: (or alphabetically)

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

=====

 

// MaxiDVD Added Line For WYSIWYG HTML Area: BOF

define('FILENAME_DEFINE_MAINPAGE', 'define_mainpage.php');

// MaxiDVD Added Line For WYSIWYG HTML Area: EOF

 

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

=====

@@@@@@@@@@@ END /ADMIN/INCLUDES/APPLICATION_TOP.PHP - SAVE AND CLOSE FILE @@@@@@@@@

 

 

 

 

 

 

 

STEP 1.4 --> OPEN: /admin/includes/languages/(your - language).php

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

=====

Look for this around line 70:

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

=====

 

// categories box text in includes/boxes/catalog.php

 

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

=====

Add this line to the bottom of the section around line 78: (or alphabetically)

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

=====

 

// MaxiDVD Added Line For WYSIWYG HTML Area: BOF

define('BOX_CATALOG_DEFINE_MAINPAGE', 'Define MainPage');

// MaxiDVD Added Line For WYSIWYG HTML Area: EOF

 

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

=====

@@@@@@@@@@@ END /ADMIN/INCLUDES/FILENAMES.PHP - SAVE AND CLOSE FILE @@@@@@@@@

 

 

 

 

notice the difference in the open and close lines. What changes need to be made and in which files??

 

Thank you

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  

×