Dear all,
I am trying to integrate ckfinder with ckeditor at phpbb forum v3.0.5, the ckeditor works fine and it is very great, then i also want the editor can provide upload function. After the ckfinder copied to the forum, i have added the following codes to the below files.
overall_header.html
add :
<script type="text/javascript" src="/ckfinder/ckfinder.js"></script>
posting_editor.html
find :
<div id="message-box">
<textarea <!-- IF S_UCP_ACTION and not S_PRIVMSGS and not S_EDIT_DRAFT -->name="signature" id="signature" style="height: 9em;"<!-- ELSE -->name="message" id="message"<!-- ENDIF --> rows="15" cols="76" tabindex="3" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" class="inputbox">{MESSAGE}{DRAFT_MESSAGE}{SIGNATURE}</textarea>
add after :
var editor = CKEDITOR.replace( 'message',{customConfig : '/ckeditor/config.js'});
CKFinder.SetupCKEditor( editor, '/ckfinder/' ) ;
permission 777 has set to 'userfiles' folder
the flash window has shown the "Browse Server" button and "Upload" tab, but whenever the ckFinder open or upload a file to server, it would displayed a error as 'The file browser is disabled for security reasons. Please contact your system administrator and check the CKFinder configuration file.'
May i know how to solve this problem, is there any step i missed during the installation? thanks alot.
I am trying to integrate ckfinder with ckeditor at phpbb forum v3.0.5, the ckeditor works fine and it is very great, then i also want the editor can provide upload function. After the ckfinder copied to the forum, i have added the following codes to the below files.
overall_header.html
add :
<script type="text/javascript" src="/ckfinder/ckfinder.js"></script>
posting_editor.html
find :
<div id="message-box">
<textarea <!-- IF S_UCP_ACTION and not S_PRIVMSGS and not S_EDIT_DRAFT -->name="signature" id="signature" style="height: 9em;"<!-- ELSE -->name="message" id="message"<!-- ENDIF --> rows="15" cols="76" tabindex="3" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" class="inputbox">{MESSAGE}{DRAFT_MESSAGE}{SIGNATURE}</textarea>
add after :
var editor = CKEDITOR.replace( 'message',{customConfig : '/ckeditor/config.js'});
CKFinder.SetupCKEditor( editor, '/ckfinder/' ) ;
permission 777 has set to 'userfiles' folder
the flash window has shown the "Browse Server" button and "Upload" tab, but whenever the ckFinder open or upload a file to server, it would displayed a error as 'The file browser is disabled for security reasons. Please contact your system administrator and check the CKFinder configuration file.'
May i know how to solve this problem, is there any step i missed during the installation? thanks alot.
Re: Error: The file browser is disabled for security reasons
I uploaded ckfinder and made sure the permissions were correct, and then tried to run the sample script (standalone.php) but got the same message.
I have tried this in Firefox, IE (8), Chromium and Safari.
I cannot work this out.
Re: Error: The file browser is disabled for security reasons
This is where I admint crass stupidity!
In config.php the authentication has the true return commented out and a return false added add the end.
Simply uncomment
return isset($_SESSION['IsAuthorized']) && $_SESSION['IsAuthorized'];
and dirtch the
return false.
Add
<?php
session_start();
$_SESSION['IsAuthorized'] = true;
?>
to the standalone.php file and all words well.
Sometimes we programmers are very stupid!
Re: Error: The file browser is disabled for security reasons
only to anyone that should really have access to file uploads.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+