X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   CKEditor with image upload please? (https://forum.x-cart.com/showthread.php?t=53524)

dmpinder 08-05-2010 08:29 AM

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

larenespitler 08-05-2010 08:38 AM

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

larenespitler 08-05-2010 10:07 AM

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?

larenespitler 08-05-2010 12:10 PM

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

larenespitler 08-05-2010 12:14 PM

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

larenespitler 08-06-2010 10:44 AM

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

dmpinder 08-06-2010 11:34 AM

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

BBM_ 10-30-2010 03:40 AM

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.

dmpinder 10-30-2010 03:56 AM

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

BBM_ 10-30-2010 04:03 AM

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.


All times are GMT -8. The time now is 02:25 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.