I am using Drupal 6 and the latest downloads of the fckeditor. I have the fckeditor installed but cannot get the image browser to work. I am working on a local computer so the site is not uploaded yet. I am using MAMP.

I have changed the config.php by adding the line
require_once "../../../../../filemanager.config.php";

straight below this line:

$Config['UserFilesAbsolutePath'] = '' ;

But the image upload browser still does not exist. (ie the upload tab in the browser does not show up.

Now I am going onto the second step of
2. As of Drupal 5.2, additional step is required: locate file named
settings.php inside your drupal directory (usually sites/default/settings.php)
and set $cookie_domain variable to the appropriate domain
(remember to uncomment that line). If you not do this, FCKeditor will
claim that file browser is disabled

My questions is: If you are using a local computer what exactly would the appropriate domain be?

I am hoping that once i change this step that something may happen and the image upload browser will work.

Any help would be appreciated.

Thanks

Comments

alexrayu’s picture

One thing that I can recommend is this: download my SiteHound Drupal, and get an FCKEditor module from it. It comes with the FCK in it and is preconfigured - you only need to edit the cookie domain setting in settings.php to get it working. Then you can compare the settings and see what was missing.

- Alexei Rayu.

Drupal Related Services | Sitehound Drupal | Worm Catcher Alpha - blacklist needed!

Jimmel’s picture

Thanks for that.

I have changed the $Config['Enabled'] = true ;
form false to true and that has allowed me to upload files without an error.
But i have left out the line
require_once "../../../../../filemanager.config.php";

as it gives me an error.
These were the only difference with the config file.

However I still don't have the upload tab in the image properties window which open when you first attempt to upload a picture. There are 3 tabs in this window image info, links and advanced.
Any idea on how to get this tab to show. Is it something to do with the cookie domain.

Cheers

Jimmel’s picture

Just to let you know that the upload tab is now there.

While looking up image tab and drupal fckeditor i found the answer.

I went to Administer -> FCKeditor settings -> Edit profile -> File browser settings. There under advanced profiles/file browser type/allow quick uploads i changed the setting from false to true. This resulted in the image upload tab in the image browser showing up.

Changing the the config file from false to true as in the above post also helped. It seem that I did not have to set a domain name in the settings file. It also seems that the line
require_once "../../../../../filemanager.config.php"; does not need to be added.

This is for a site on a local computer using MAMP, the other setting which were not needed for this site may still be required for the site when it is uploaded to a live server. I will add to this post when I test out putting the site live.

Thanks
Jimmel

alexrayu’s picture

You need to enable file uploads in the editor setup page. I kinda took it for granted.

- Alexei Rayu.

Drupal Related Services | Sitehound Drupal | Worm Catcher Alpha - blacklist needed!

prasannah.ganeshan’s picture

Thanks guys. I was struggling with the same issue. It was really helpful what you guys have done.

Thanks
-Prasannah

mascot’s picture

Upload tab appears once we enable the quick upload for the FCK editor settting. Thanks guys

Anonymous’s picture

I used this thread to help me make the upload tab appear for the image, and that works fine. But when I log in as a test editor it doesn't show! I checked permissions to make sure the editor role could administer ckeditor, and I check to make sure they could upload images, but it still doesn't show. Any ideas? What am I forgetting?