Hello,
i got a question. I'm trying to dynamically modify any image uploaded with the upload-function of FCKEditor. In case to do that, i am looking for a way to change the image path from f.e. "/folder/folder/image.jpg" to "/folder/folder/somephpscript.php?file=image.jpg".
Is there a way to do that?
Greetings,
Raven
i got a question. I'm trying to dynamically modify any image uploaded with the upload-function of FCKEditor. In case to do that, i am looking for a way to change the image path from f.e. "/folder/folder/image.jpg" to "/folder/folder/somephpscript.php?file=image.jpg".
Is there a way to do that?
Greetings,
Raven
Re: Changing the image URL after Upload
Re: Changing the image URL after Upload
In fckconfig.js set:
var _FileBrowserLanguage = '[whatever yours is]' ; // asp | aspx | cfm | lasso | perl | php | py
In editor/filemanager/connectors/[whatever yours is]/config.xxx set:
' SECURITY: You must explicitly enable this "connector" (set it to "True").
' WARNING: don't just set "ConfigIsEnabled = true", you must be sure that only
' authenticated users can access this file or use some kind of session checking.
Dim ConfigIsEnabled : ConfigIsEnabled = true
' Path to user files relative to the document root.
' This setting is preserved only for backward compatibility.
' You should look at the settings for each resource type to get the full potential
Dim ConfigUserFilesPath : ConfigUserFilesPath = "[your path]"
eg Dim ConfigUserFilesPath : ConfigUserFilesPath = "/ftproot/images/"
Re: Changing the image URL after Upload
as far as i get your post you tried to explain where i can change the /folder/folder/ part.
Buti want to add a script in this path. When i tried to change the [your_path] to folder/myscript.php?f= it didn't work. so i just have to append this myscript.php?f= somewhere.
Or maybe ican put this in the [your_path]-thingie?
Re: Changing the image URL after Upload