I try to install the FCKeditor plugin on my Serendipity 0.9 blog, but I have a little problem :
The FCKeditor Path for images is "/Serendipity/Uploads/Image/", but my old images are in "/Serendipity/Uploads/".
How can I change the standard FCKeditor Image Path to "/Serendipity/Uploads/" ?
Thank for helping !
I hope my question was clear because english isn't my native language
But I can't find an answer. I follow exactly the plugin instruction.
Is there a way to reassign the basic path for fckeditor image to "/uploads/" from "/uploads/image/" ?
Sorry if I insist, but this is my brother who is using this blog, and he isn't very good with a computer.
Sadly I am not that good with FCKEditor, and I didn't find where in the code it uses "image".
Maybe you can ask on the FCKEditor Forums how to configure the image path?
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Yes, that would be good. I hope someone can help you!
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
With the help of the fckeditor forum, I found a way to change the default image path.
It isn't THE solution, cause uploading image throught fckeditor always use a unique default path, and cannot use the serendipity folders for images category.
So the best way for using this tricks, is to upload images throught sernedipity, and to include them in the page throught fckeditor.
Here is the tricks :
1. /FCKeditor/editor/filemanager/browser/default/frmresourcetype.html
change those lines :
var aTypes = [
['File','File'],
['Image','Image'],
['Article','Article'],
['Category','Category']
] ;
to :
var aTypes = [
['File','File'],
['Image',''],
['Article','Article'],
['Category','Category']
] ;
2. /FCKeditor/editor/filemanager/browser/default/connectors/php/connector.php
Change the line :
if ( !in_array( $sResourceType, array('File','Image','Flash','Media') ) )
to :
if ( !in_array( $sResourceType, array('File','','Flash','Media') ) )
3. /FCKeditor/fckconfig.js
changed this line :
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/
connector.php' ;
to :
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=&Connector=connectors/php/connector.php' ;
Then, when you want to include an image to rour post with fckeditor, click on "insert/modify image", then "browse", then in "ressource type" choose "image". You can now select the right folder and the good image.