Page 1 of 1
FCKeditor image path
Posted: Wed Jan 18, 2006 6:40 pm
by One Eye Pied
Hello,
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
One Eye Pied
Posted: Mon Jan 23, 2006 12:16 pm
by One Eye Pied
I found this topic :
http://www.s9y.org/forums/viewtopic.php?t=3177
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.
Thank you again !
One Eye Pied
Posted: Mon Jan 23, 2006 1:07 pm
by garvinhicking
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
Posted: Mon Jan 23, 2006 2:01 pm
by One Eye Pied
Thanks for the answer.
I'm searching in the FCKEditor Forum, if I find a solution, I'll post it in this forum, it can be usefull
One Eye Pied
Posted: Mon Jan 23, 2006 2:10 pm
by garvinhicking
Yes, that would be good. I hope someone can help you!
Best regards,
Garvin
Posted: Thu Feb 09, 2006 10:36 am
by One Eye Pied
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.
One Eye Pied
Posted: Thu Feb 09, 2006 11:59 am
by Josh
Thank you for posting these tricks.
I followed them, but it did not work out for me.
You advised this change:
and
Code: Select all
!in_array( $sResourceType, array('File','','Flash','Media')
For me this means that there is blank line after "File", when I click on "insert/modify image", then "browse", then "ressource type."
Nothing happens when I click on this blank line. I do not see the images that I have uploaded through s9y.