Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#259 closed New Feature (duplicate)

Easy way to change upload/browse fold

Reported by: ftjoker Owned by:
Priority: Normal Milestone:
Component: File Browser Version: FCKeditor 2.4
Keywords: Cc:

Description

Hi,

i use fckeditor for my website and many users can connect to add articles but i dont want them to use the same fold

I work in php, here are the change i did..

in file fckconfig.js

FCKConfig.fckFold = FCKURLParams[ 'fckFold' ];

Browsers link become :

[blablabla]?Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension + '?fckFold=' + FCKConfig.fckFold;

In fckeditor_php4 & 5 :

if ( $this->fckFold != ) $Link .= "&fckFold={$this->fckFold}" ;

before Render the linked hidden field.

In the filebrowser upload and download

config.php : $ConfigUserFilesPath? = '/Imgs/' . $_GETfckFold? ;

When i call the fckeditor :

include("../FCKeditor/fckeditor.php"); $oFCKeditor = new FCKeditor('article') ; $oFCKeditor->BasePath = '../FCKeditor/' ; $oFCKeditor->Value = $buffer; $oFCKeditor->Height = 500; $oFCKeditor->fckFold = $fck_fold; $oFCKeditor->Create() ;

$fck_editor is a md5 value and in the Imgs fold, i got many fold created with 32 chars :)

I hope you'll use it

THX for your job

Sorry for my english i'm french ;)

Change History (2)

comment:1 Changed 12 years ago by Frederico Caldeira Knabben

Keywords: change upload fold removed
Resolution: duplicate
Status: newclosed

DUP of 210

comment:2 Changed 12 years ago by Frederico Caldeira Knabben

Sorry... DUP of #210

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy