Jump to content
Sign in to follow this  
MaxiDVD

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

Recommended Posts

Hmm, curious!

 

I have 30 contribs installed but your solution doesnt work for me. :(

 

I solved the problem (the codes on the admin page) 3 weeks ago only the sript error left back. B)

 

Other pages will produce debug messages but the site working fine so I dont care about it any more. :P

Share this post


Link to post
Share on other sites

How can I add the HTML area feature to Information Pages Unlimited 1.1f 's text area?

Share this post


Link to post
Share on other sites
How can I add the HTML area feature to Information Pages Unlimited 1.1f 's text area?

Done! :rolleyes:

Share this post


Link to post
Share on other sites

Hello all,

 

We've installed the HTML WYSIWYG Editor for Product Desc, MS1 2.2 into osCommerce 2.2.2 on a new site. It's a great contribution, but there appears to be a problem that we can't solve. Can you please help us?

 

 

As long as we haveThe "Product Description Basic/Advanced Version" set to Basic, the WYSIWYG editor seems to work fine. However when it is set to Advanced, the WYSIWYG editor disappears, and only the standard box appears where only HTML code can be inserted. (I was under the impression that Advanced mode was also WYSIWYG but with more icons in the editor.)

 

Has anyone ever experienced this? I don't have a clue how to fix this.

 

Thanks,

Mike

Share this post


Link to post
Share on other sites

I found a solution for the newsletter in oscommerc. If you want include a sheet in the newsletter, you have a problem.

 

You can solve it by that :

 

function add_html($html, $text = NULL, $images_dir = NULL) {

############### Changed "################

// $this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), '<br>', $html);

$this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), ' ',$html);

// $this->html = $html;

// ############## End changed ###########

Edited by Gyakutsuki


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

Hi all,

 

I was wondering if someone could help,

 

I'm having an issue where this contribution seems to be working perfectly except that when you click on either insert image or change colour or anything that pops up I recieve a 404 page not found error. After looking throught my logs it appears that it is because it is looking for it in the wrong directory.... ie

 

File path is:

/home/inquisitivemind/public_html/aussie/admin/htmlarea/popups/

 

but its actually looking for them here:

/home/inquisitivemind/public_html/aussie/aussie/admin/htmlarea/popups/

 

I have checked the config.inc.php file and cent really see anything wrong... i tried changing the the SCRIPT_DIR and SCRIPT_URL paths manually and this would not fix the issue.

 

Anyone have any clues?

 

 

Thanks,

 

Edwin

Share this post


Link to post
Share on other sites
Hi all,

 

I was wondering if someone could help,

 

I'm having an issue where this contribution seems to be working perfectly except that when you click on either insert image or change colour or anything that pops up I recieve a 404 page not found error. After looking throught my logs it appears that it is because it is looking for it in the wrong directory.... ie

 

File path is:

/home/inquisitivemind/public_html/aussie/admin/htmlarea/popups/

 

but its actually looking for them here:

/home/inquisitivemind/public_html/aussie/aussie/admin/htmlarea/popups/

 

I have checked the config.inc.php file and cent really see anything wrong... i tried changing the the SCRIPT_DIR and SCRIPT_URL paths manually and this would not fix the issue.

 

Anyone have any clues?

 

 

Thanks,

 

Edwin

 

Is any one able to help at all with this i'm having some real issues with this and have been working on this for hours but still can't find a solution!

Edited by inquisitivemind

Share this post


Link to post
Share on other sites

Hi all,

 

I was wondering if someone could help,

 

I'm having an issue where this contribution seems to be working perfectly except that when you click on either insert image or change colour or anything that pops up I recieve a 404 page not found error. After looking throught my logs it appears that it is because it is looking for it in the wrong directory.... ie

 

File path is:

/home/inquisitivemind/public_html/aussie/admin/htmlarea/popups/

 

but its actually looking for them here:

/home/inquisitivemind/public_html/aussie/aussie/admin/htmlarea/popups/

 

I have checked the config.inc.php file and cent really see anything wrong... i tried changing the the SCRIPT_DIR and SCRIPT_URL paths manually and this would not fix the issue.

 

Anyone have any clues?

 

 

Thanks,

 

Edwin

 

Is any one able to help at all with this i'm having some real issues with this and have been working on this for hours but still can't find a solution!

 

 

 

I have tried adusting all the paths in the two config file manually and entering absoulte paths but its still not working... The path structure the the script files or popups is not being generated correctly.

 

It could have something to do witht the fact that this particular domain is an addon domain... and it is the subfolder where the addon domain is being hosted that is being duplicated. What do others think?

 

PLEASE anyone help me!

Edited by inquisitivemind

Share this post


Link to post
Share on other sites

Ok after a lot of unnecessary work it occured to me that the modrewrite feature in public_html was still on.... ie from silencers contribution sef links. when i switched the comand off in the admin folder all was goods again

Share this post


Link to post
Share on other sites

Why define_mainpage.php can change only mainpage.php in current language?

 

It's mean that i must change default language before change other one.

 

Does your really want me to do this?

 

 

tell me how modify to do it easier

Share this post


Link to post
Share on other sites

^ as i ask above , sorry I found language chager at right of page now.

 

b/c my screen is wide screen , so i don't look at that side :P

Share this post


Link to post
Share on other sites

Hello,

 

added this contrib ver 1.7 to a working OS2.2.2

All settings apperear in the admin and are all enabled but I dont see the HTML AREA buttons anywhere, just the standard text boxes.

 

What Am I missing? I re-read the installation docs and everything is fine.... Anyone get this?

 

thanks for your reply.

Share this post


Link to post
Share on other sites

Ok,

 

Went home last night and it works fine there... I can see the buttons.

 

I tried from 2 different PC's at work and they dont work.

 

What part of IE would prevent this? Im using IE 6 with SP4 on a WIN2000 PRo

Share this post


Link to post
Share on other sites

I could manage to make the script work, but I had to proceed little corrections.

First of all, don't copy and paste the script but rigorously follow the step by step instructions. Then add the following lines to the application_top.php

 

In the catalog/admin/includes folder:

// MaxiDVD Added Line For WYSIWYG HTML Area: BOF

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

// MaxiDVD Added Line For WYSIWYG HTML Area: EOF

 

In the catalog/includes folder:

// MaxiDVD Added Line For WYSIWYG HTML Area: BOF

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

// MaxiDVD Added Line For WYSIWYG HTML Area: EOF

 

Then set the permission of the mainpage.php in the catalog/includes/languages/english/ folder to 666 for the mainpage to be writable.

 

_________________

 

Some modifications should be made on the mainpage to write the text in English and any other language at once with every languages in one single page. As the script is set, we have to load once in English and write the mainpage in English, then change the admin language to be able to write the text in the other language. If not written in every languages, the mainpage won't be shown at all.

Share this post


Link to post
Share on other sites

Hi,

 

We need to distribute a HTML newsletter, and are therefore looking at this contribution. Some questions please:

 

1. What is difference between these two contributions:

 

MS2 HTML WYSIWYG Editor, Product Desc, Email +

 

HTML WYSIWYG Editor for Product Desc, MS1 2.2

 

2. Can either be used to put out a HTML newsletter, or do we need additional contributions.

 

3. In reference to Q1, this thread is obviously for contribution #1279, does anyone know of a thread for the other contribution (#1347).

 

4. Any problems with either contribution, considering the following:

 

(i) The site is a snapshot somewhere between MS-1 and MS-2

(ii) We have already heavily customised, heavily loaded the site with osC contributions.

 

Thanks,

 

Peter

Share this post


Link to post
Share on other sites

Anyone know off hand what I could have missed when installing wysiwyg 1.7 to make the information I currently have not show up in the window when going to update that same information.. instead I get just a blank page. I can edit however I want but after saving it just dissappears.. it does update the site though..

Share this post


Link to post
Share on other sites

Hi,

 

Usually a blank page in PHP will mean one of two occurances, (i) the PHP scipt does not actually have any 'output' to do, to the browser (no echo's or html code to display), or (ii) you have a PHP error, and 'display_errors' is turned off, so can you check your error log file ??

 

Peter

Edited by peterr

Share this post


Link to post
Share on other sites

i am using this contribution, the only part not working properly is when adding images.

image manager has underneath it array

Image Manager

Array

 

On the right site I get:

 

Warning: filesize(): Stat failed for /home/domain/dir/images/Array (errno=2 - No such file or directory) in /home/domain/dir/admin/htmlarea/popups/viewer.php on line 23 which holds:

 

if(($bytes = filesize(IMAGE_DIR . $file)) < 1024)


John Oligario

 

Knowledge Base Contributions

Share this post


Link to post
Share on other sites

Can anyone use version 1.7 to edit the e-mails sent to customers when they creat an account or place an order?


L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Share this post


Link to post
Share on other sites

Hi,

 

Just installed this contribution, sent an email, the html features appear to be working okay, except for inserting any images, the code generated:

 

<P><IMG alt=3D"" hspace=3D0 src=3D"http://www.example.com/test/i=
mages/someimage.jpg" align=3Dbaseline border=3D0></P>

 

.. notice all the "3D" characters all over the place. Any clues ?

 

Peter

Share this post


Link to post
Share on other sites

Hi,

 

I noticed the 'enable/disable' for the main page didn't work, looked at the code in default.php and saw why. :D

 

Here is the fix, it works ...

 

<!-- BEGIN:HTML WYSIWYG Editor for Product Desc, MS1 2.2 (1279) -->
	 <?php
   if (HTML_AREA_WYSIWYG_DISABLE_DEFINE == 'Disable') {
             echo '<td class="main"><br>' . TEXT_MAIN . '</td>';
   } else {
  	 echo '<td class="main">';
  	 include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFINE_MAINPAGE);
  	 echo '</td>';
         }
      	 ?>
	 <!-- END:HTML WYSIWYG Editor for Product Desc, MS1 2.2 (1279) -->

 

Peter

Share this post


Link to post
Share on other sites

As anyone applied the image loader to the admin manufacturers page yet?(admin/manufacturers.php)

 

It seems very similar to the admin categories page and would benifit from the image loader when upload a manufacturers image.

Share this post


Link to post
Share on other sites
Hi,

 

I noticed the 'enable/disable' for the main page didn't work, looked at the code in default.php and saw why.  :D

 

Here is the fix, it works ...

 

<!-- BEGIN:HTML WYSIWYG Editor for Product Desc, MS1 2.2 (1279) -->
?	<?php
? ?if (HTML_AREA_WYSIWYG_DISABLE_DEFINE == 'Disable') {
? ? ? ? ? ? ?echo '<td class="main"><br>' . TEXT_MAIN . '</td>';
? ?} else {
? ?	echo '<td class="main">';
? ?	include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFINE_MAINPAGE);
? ?	echo '</td>';
? ? ? ? ?}
? ? ? ?	?>
?	<!-- END:HTML WYSIWYG Editor for Product Desc, MS1 2.2 (1279) -->

 

Peter

 

Thanks, but next time, please tell us what file to edit. I figured it out as index.php though. Good work!


L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Share this post


Link to post
Share on other sites
As anyone applied the image loader to the admin manufacturers page yet?(admin/manufacturers.php)

 

It seems very similar to the admin categories page and would benifit from the image loader when upload a manufacturers image.

 

I could not get the image loader to work because I have the big and smal image per product contribution installed so I took it out of everything except the actual WYSIWYG text area editors.


L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

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  

×