Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

CKEditor with image upload please?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 08-05-2010, 08:29 AM
 
dmpinder dmpinder is offline
 

Advanced Member
  
Join Date: Jun 2009
Posts: 86
 

Default Re: CKEditor with image upload please?

Hi Larene,

You disable the HTML Editor module itself not by going into the General Settings page, but by instead going to the Modules page (modules.php). You will see an entry for the HTML Editor, just uncheck the box and save that page.

Darren
__________________
Darren

X-Cart Gold 4.3.1
Reply With Quote
  #12  
Old 08-05-2010, 08:38 AM
 
larenespitler larenespitler is offline
 

Member
  
Join Date: Aug 2010
Posts: 17
 

Default Re: CKEditor with image upload please?

[quote=larenespitler]2. Disable the existing HTML Editor module

How do you do this? I went to the X-cart admin area and looked at General Settings and HTML Editor, but it doesn't let me just turn it off.


I figured it out, dah.... go to Modules and turn it off.

Larene
__________________
x-cart 4.4.5
Reply With Quote
  #13  
Old 08-05-2010, 10:07 AM
 
larenespitler larenespitler is offline
 

Member
  
Join Date: Aug 2010
Posts: 17
 

Default Re: CKEditor with image upload please?

It is still not working. I have made every change you suggested. I put the folder /fckeditor in the root directory, (Apache document root folder), then I also tried copying it into the xcart folder, (root)/xcart.

When I turn off HTML Editor in the Modules section, and I try to edit categories, I do not see the WYSIWYG link.

Any ideas?
__________________
x-cart 4.4.5
Reply With Quote
  #14  
Old 08-05-2010, 12:10 PM
 
larenespitler larenespitler is offline
 

Member
  
Join Date: Aug 2010
Posts: 17
 

Default Re: CKEditor with image upload please?

Thank you SOOOO much Darrin! You are the best! This is awesome!

My problem was I changed /skin1/home.tpl instead of /skin1/single/home.tpl.

I didn't know if the program created the directories within /userfiles/ like /userfiles/images, etc, so I created them.

(root)/userfiles/images
(root)/userfiles/file
(root)/userfiles/media
(root)/userfiles/flash

I also made them writeable.
chmod 777 (root)/userfiles/images
chmod 777 (root)/userfiles/media
chmod 777 (root)/userfiles/flash
chmod 777 (root)/userfiles/file
__________________
x-cart 4.4.5
Reply With Quote
  #15  
Old 08-05-2010, 12:14 PM
 
larenespitler larenespitler is offline
 

Member
  
Join Date: Aug 2010
Posts: 17
 

Default Re: CKEditor with image upload please?

One more question, do we need to be concerned about the security issue mentioned in:

http://www.arscommunity.com/wiki/articles/x-cart-ckfinder

Have you seen this?

Larene
__________________
x-cart 4.4.5
Reply With Quote
  #16  
Old 08-06-2010, 10:44 AM
 
larenespitler larenespitler is offline
 

Member
  
Join Date: Aug 2010
Posts: 17
 

Default Re: CKEditor with image upload please?

I found another file that should be changed. {skin}/admin/main/languages.tpl

Before the code {/foreach} on line 231, insert:

Code:
{if $active_modules.FCKEditor ne ""} <script type="text/javascript"> var oFCKeditor = new FCKeditor('var_value[{$lbl.name}]'); oFCKeditor.BasePath = "../fckeditor/"; oFCKeditor.Height="400"; oFCKeditor.ToolbarSet="Default"; oFCKeditor.ReplaceTextarea(); </script> {/if}

This will add WYSIWYG to the edit languages module. This is needed if you want to edit the X-cart home page.

Larene
__________________
x-cart 4.4.5
Reply With Quote
  #17  
Old 08-06-2010, 11:34 AM
 
dmpinder dmpinder is offline
 

Advanced Member
  
Join Date: Jun 2009
Posts: 86
 

Default Re: CKEditor with image upload please?

Hi Larene,

I've replied to your email directly.

For anyone else reading and wondering about the security issue, what I told Larene is that I don't fully understand the vulnerability myself but I'd recommend you go ahead and patch the file just in case there is a potential problem.

I haven't included the security fix in my file download, so please do this yourself.

Darren
__________________
Darren

X-Cart Gold 4.3.1
Reply With Quote
  #18  
Old 10-30-2010, 03:40 AM
 
BBM_ BBM_ is online now
 

X-Adept
  
Join Date: May 2010
Location: Australia
Posts: 595
 

Default Re: CKEditor with image upload please?

Hi Darren,

I have completed these steps but keep getting the following error,

"Error creating folder http://xxx.xxx.xxx.xxx/public_html/userfiles/images/" (Can;t create http:/directory

I assume this is a permission error but I have set the file to 777 as per your instructions.

your assistance is appreciated.
__________________
Multiple instances of X-cart
Reply With Quote
  #19  
Old 10-30-2010, 03:56 AM
 
dmpinder dmpinder is offline
 

Advanced Member
  
Join Date: Jun 2009
Posts: 86
 

Default Re: CKEditor with image upload please?

Hi BBM,

Are you sure your file path should include public_html? That's only really used for the server-side or FTP client, it shouldn't appear in a file path used on the site. Try removing it from the path and see if that works.

Darren
__________________
Darren

X-Cart Gold 4.3.1
Reply With Quote
  #20  
Old 10-30-2010, 04:03 AM
 
BBM_ BBM_ is online now
 

X-Adept
  
Join Date: May 2010
Location: Australia
Posts: 595
 

Default Re: CKEditor with image upload please?

Hi Darren,

Many thanks for the response. I have removed the public_html and still have the error that I can not create xxx.xxx.xxx.xxx directory?

If you have any suggestions it would be appreciated.

EDIT: what's weird is I can browse to the folder.
__________________
Multiple instances of X-cart
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:49 AM.

   

 
X-Cart forums © 2001-2020