1
trspice
Added FCK Editor hack but need help to find images in uploads folder
  • 2008/10/29 4:16

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


I added the FCKeditor hack by phppp and it works great but for the old images location which is the uploads folder. The editor created a folder called fckeditor in uploads and places all uploaded images there and when I click 'browse server' to view images it only looks there and I can't see the previous images in uploads folder.

Can someone point me to the file(s) I need to edit so the browse root folder is 'uploads'?

I thought about moving all the images from uploads to fckeditor but that would affect all the paths throughout the site.... Thanks
There's nothing but science....
The Reggae Album

2
Burning
Re: Added FCK Editor hack but need help to find images in uploads folder
  • 2008/10/29 8:37

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi,

You should take a look to this file :config.php ($uploadPath variable)
(xoopseditor/fckeditor/editor/filemanager/connectors/php/...)

Note : I'm talking about Mark Boyden version, don't know yet phppp's one.

@+
Still learning CSS and... english

3
trspice
Re: Added FCK Editor hack but need help to find images in uploads folder
  • 2008/10/29 20:24

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


Well Mark Boyden's method does not find the files either. I have made all kinds of changes to the config file but still no luck. Such a perfect HTML editor yet full of flaws.
There's nothing but science....
The Reggae Album

4
Burning
Re: Added FCK Editor hack but need help to find images in uploads folder
  • 2008/10/29 20:46

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


have you cleaned cache folder ?
FCKeditor creates his own cache files :(
Still learning CSS and... english

5
trspice
Re: Added FCK Editor hack but need help to find images in uploads folder
  • 2008/10/29 22:42

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


I just cleared the cache and still no difference. I am using XOOPS 2.0.16 but that shouldn't matter.

I edited class\xoopseditor\FCKeditor\editor\filemanager\upload\php\config.php and left the $uploadPath empty

if(!defined("XOOPS_FCK_FOLDER") || !$uploadPath preg_replace("/[^a-z0-9_-]/i"""XOOPS_FCK_FOLDER) ){
    
$uploadPath "";
}


This now uploads images to the root/uploads folder but the file browser's root folder is still uploads/Image and all that I have tried, it still cannot browse the uploads folder.
There's nothing but science....
The Reggae Album

6
kerkyra
Re: Added FCK Editor hack but need help to find images in uploads folder
  • 2008/10/31 11:20

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


hey mate edit
class\xoopseditor\FCKeditor\editor\filemanager\connectors\php\config.php
find this line
Quote:

$Config['FileTypesPath']['Image'] = $Config['UserFilesPath'] . 'image/' ;

and change it to
Quote:

$Config['FileTypesPath']['Image'] = $Config['UserFilesPath'] . '' ;

i think this should do the trick.
www.guidemap.gr - Beta is out...

Login

Username:
Password:

Lost Password? Register now!

Who's Online

81 user(s) are online (49 user(s) are browsing Support Forums)


Members: 1


Guests: 80


heyula,

more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits