Ticket #259 (closed New Feature: duplicate)

Opened 3 years ago

Last modified 3 years ago

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

Changed 3 years ago by fredck

  • keywords change upload fold removed
  • status changed from new to closed
  • resolution set to duplicate

DUP of 210

Changed 3 years ago by fredck

Sorry... DUP of #210

Note: See TracTickets for help on using tickets.