FCKeditor image path

Creating and modifying plugins.
Post Reply
One Eye Pied
Regular
Posts: 30
Joined: Wed Jan 18, 2006 6:35 pm
Contact:

FCKeditor image path

Post 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
One Eye Pied
Regular
Posts: 30
Joined: Wed Jan 18, 2006 6:35 pm
Contact:

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
One Eye Pied
Regular
Posts: 30
Joined: Wed Jan 18, 2006 6:35 pm
Contact:

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

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/
One Eye Pied
Regular
Posts: 30
Joined: Wed Jan 18, 2006 6:35 pm
Contact:

Post 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
Josh
Regular
Posts: 110
Joined: Mon Jul 18, 2005 3:02 pm
Location: Berlin
Contact:

Post by Josh »

Thank you for posting these tricks.

I followed them, but it did not work out for me.

You advised this change:

Code: Select all

['File','File'],
['Image',''], 
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.
Post Reply