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 10-30-2010 04:59 AM

Re: CKEditor with image upload please?
 
Can you ensure you've set both the directory userfiles and userfiles/images to 777?

If that doesn't work, can you copy in the error message exactly as you see it? Is it Can;t create http:/directory ?

BBM_ 10-30-2010 05:03 AM

Re: CKEditor with image upload please?
 
Hi Darren,

Here is the info as requested.

/userfiles is set to 0777
/userfiles/images is set to 0777

The exact error message is,

Error creating folder "xxx.xxx.xxx.xxx/userfiles/images/" (can't create xxx.xxx.xxx.xxx directory)

with xxx being the ip address of the server.

EDIT: to clarify the public_html directory is set to 0750

I hope this helps.

dmpinder 10-30-2010 05:15 AM

Re: CKEditor with image upload please?
 
hmm OK it could be that your server doesn't store the web files in the same directory as mine.

I'm assuming you're trying to edit the line like this:
$Config['UserFilesAbsolutePath'] = '/home/sites/domain.co.uk/public_html/userfiles/' ; in the file fckeditor/editor/filemanager/connectors/php/config.php. That is probably where you're having an issue.

I think the solution might be this:

1. Create a new file on the root of your site called info.php
2. The contents of this file should be just:
<?php phpinfo(); ?>
3. Upload this file and view it in your browser. There will be a ton of info about your server.
4. Do a search on this page for the value for DOCUMENT_ROOT, it should be held within the Environment area. Find the value of this, it will be what you need to paste in as part of the file path. In mine, the value is /home/sites/domain.co.uk/public_html and then I add the userfiles/images. I suspect your DOCUMENT_ROOT is different in structure than mine (different server configuration), so that's your best bet.

Let me know how you get on.

BBM_ 10-30-2010 05:25 AM

Re: CKEditor with image upload please?
 
Wow Darren,

A huge thank you to you! Your steps outlined above have solved my problem and now the images are loading correctly.

You certainly know your server stuff.

Once again many kind thanks. Also thanks for teaching me something new :)

dmpinder 10-30-2010 05:40 AM

Re: CKEditor with image upload please?
 
Your welcome, I'm glad it worked!

nickff 11-09-2010 05:46 AM

Re: CKEditor with image upload please?
 
Quote:

Originally Posted by PhilJ
Here's an easier alternative to CKFinder - http://kcfinder.sunhater.com

Hey all,

I've tried adding KCFinder to CKFinder and it works great outside of one issue - by default ANYONE can access the resource browser via the right URL. In order to restrict it to only admins, you have to due some SESSION work ala this page:

http://kcfinder.sunhater.com/docs/integrate#session

I have no clue where to add the proper session info to restrict the browser to logged in admins.

Anyone have any ideas on this? I'm desperate :(

larenespitler 02-24-2011 05:27 PM

Re: CKEditor with image upload please?
 
Do you anticipate any problems if I download the latest FCK Editor to my xcart website?

I was thinking I could just download it and install it in the folder /xcart/fckeditor.

What do you think.
Larene

dmpinder 02-25-2011 12:20 AM

Re: CKEditor with image upload please?
 
Hi Larene,

I don't see a problem with trying that. Just download the files from their website and use those files instead.

You'll have to follow my instructions very closely, and be aware some of the line numbers I quote may have changed, so you may need to search for the relevant code instead.

Good luck,

Darren

Blainevk 09-26-2013 11:31 PM

Re: CKEditor with image upload please?
 
Hello All,

Does anyone know if "FCKEditor" could be used for uploading Partner's Profile Image on the Registration Page?


Looking for your response.


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

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