Can anybody help? I'm struggling with this for weeks now.
My provider switched to php5 and thought it was an opportunity to get the latest version fo ckfinder/ckeditor. I am ready to take a payed licence, but I have to know if this works. Until now I spent several hours of trying, searching. I really don't know anymore.
Ckeditor works fine, but integrating ckfinder not. I get: uploading not possible check ckfinder config.
In this config I have (now, tried several other options):
$baseUrl = '/userfiles/';
$baseDir = '/domains/swswelzijn.nl/public_html/ckfinder/userfiles/';
I made the Files, Images etc directories in ckfinder/userfiles and made them writable.
On the page where I use the editor I have:
<?php
include_once '/../../ckeditor/ckeditor.php'; //is absolutely correct from the page I work on.
$ckeditor = new CKEditor();
$ckeditor->basePath = '/ckeditor/';
$ckeditor->config['filebrowserBrowseUrl'] = '/../../ckfinder/ckfinder.html';
$ckeditor->config['filebrowserImageBrowseUrl'] = '/../../ckfinder/ckfinder.html?type=Images';
$ckeditor->config['filebrowserFlashBrowseUrl'] = '/../../ckfinder/ckfinder.html?type=Flash';
$ckeditor->config['filebrowserUploadUrl'] = '/../../ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files';
$ckeditor->config['filebrowserImageUploadUrl'] = '/../../ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images';
$ckeditor->config['filebrowserFlashUploadUrl'] = '/../../ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash';
$ckeditor->editor('editor1'); (btw: I can put here my textareafield ? Not that it works ...)
?>
Could anybody give me a solution? Please?
My provider switched to php5 and thought it was an opportunity to get the latest version fo ckfinder/ckeditor. I am ready to take a payed licence, but I have to know if this works. Until now I spent several hours of trying, searching. I really don't know anymore.
Ckeditor works fine, but integrating ckfinder not. I get: uploading not possible check ckfinder config.
In this config I have (now, tried several other options):
$baseUrl = '/userfiles/';
$baseDir = '/domains/swswelzijn.nl/public_html/ckfinder/userfiles/';
I made the Files, Images etc directories in ckfinder/userfiles and made them writable.
On the page where I use the editor I have:
<?php
include_once '/../../ckeditor/ckeditor.php'; //is absolutely correct from the page I work on.
$ckeditor = new CKEditor();
$ckeditor->basePath = '/ckeditor/';
$ckeditor->config['filebrowserBrowseUrl'] = '/../../ckfinder/ckfinder.html';
$ckeditor->config['filebrowserImageBrowseUrl'] = '/../../ckfinder/ckfinder.html?type=Images';
$ckeditor->config['filebrowserFlashBrowseUrl'] = '/../../ckfinder/ckfinder.html?type=Flash';
$ckeditor->config['filebrowserUploadUrl'] = '/../../ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files';
$ckeditor->config['filebrowserImageUploadUrl'] = '/../../ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images';
$ckeditor->config['filebrowserFlashUploadUrl'] = '/../../ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash';
$ckeditor->editor('editor1'); (btw: I can put here my textareafield ? Not that it works ...)
?>
Could anybody give me a solution? Please?
Re: upload images not working
then it simply means, that you should enable CKFinder in the configuration file.
Find the checkAuthentication function in the configuration file (config.php) and make sure that it returns true, to be able to use CKFinder.
E.g. on a testing environment set it simply to "return true" (but remember to use a more secure authentication method on a production server).
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+