Basic file browser script - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Scripts & Components (http://get-simple.info/forums/forumdisplay.php?fid=11) +--- Thread: Basic file browser script (/showthread.php?tid=1341) |
Basic file browser script - Joshas - 2011-02-27 Greetings, I present to you a simple solution for inserting links and images to pages from CKEditor. It is modified upload.php script and features file and image selection modes, browsing subdirectories. It was tested and works on latest GetSimple 3.0 development versions (r325). I was unable to make a plugin (problems with overriding CKEditor settings after it is initialized), so you'll need to modify one system file. Installation instructions: 1. Extract and upload filebrowser.php to your GetSimple installation /admin/ directory. 2. Modify edit.php and replace following settings (on line 325): Code: filebrowserBrowseUrl : 'filebrowser.php', Usage instructions: In CKEditor select "Link" or "Image" and "Browse Server". After clicking on file name or image thumbnail link will be inserted. I think simple file browser is more than enough in CKEditor. Let's leave all the heavy lifting (file upload, copy, paste, delete, new directory etc. file management tasks) for "Files" page. Basic file browser script - Vulch - 2011-02-28 Nice. If you change line 24 to... Code: $type = isset($_GET['type']) ? $_GET['type'] : ""; Basic file browser script - tazmandev - 2011-03-02 This is awsome. I was very disapointed with the mess of CK editor file upload. And that is because the file browser was inserting the large version of the picture, and I had to manualy modify the link to thumbnail. This script should become Get Simple Core. I know taht filebrowser.php, or is CKeditor file, but all major CMS use customized versions of the WYGWYS editors. Basic file browser script - tazmandev - 2011-03-02 This is not exactly on topic, but is somehow related. In CKeditor, when inserting an image, if we set align propery on image, or add some css, CKeditor will fail to edit the image. It opens an empty dialog, and we have to set the image all over again. Basic file browser script - ccagle8 - 2011-03-02 tazmandev Wrote:This script should become Get Simple Core.already way ahead of you... this will be core for the next release, replacing the temporary version that was put in place a couple weeks ago. |