Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2008-07-20 19:30:12

AndréS
New member
Registered: 2008-07-20
Posts: 1

ExtendedFileManager how to install a new directory

Hello,

I don´t know how I configure the EFM so that a new directory will be acepted.
At first I did changes in config.inc.php in the plugins directory subdirectory EFM. Even a mistake had brought the Browser to show me (after I took it back) the changes.
Now I changed again, but nothing happend.

*/
$IMConfig['images_dir'] = $_SERVER['DOCUMENT_ROOT'].'/images';
//You may set a different directory for the link mode; if you don't, the above setting will be used for both modes
//$IMConfig['files_dir'] = 'demo_files';

/*
 The URL to the above path, the web browser needs to be able to see it.
 Please remove scripting capabilities in this directory
 for this directory (i.e. disable PHP, Perl, CGI; see .htaccess file in demo_images folder).
*/
$IMConfig['images_url'] = $_SERVER['DOCUMENT_ROOT'].'/images';
//$IMConfig['files_url'] = '../images';

This is the code.
Please I need a step by step way.

I wana have a way to the directory liks this:

www.domain.tld/maybeAOtherDirectory/ownimages


I can´t write an exactly domain, because this is a little CMS.

Thanks for help.

AndréS

Offline

#2 2008-07-29 06:03:42

Pioden
Xinha Community Member
From: Bangor, Wales
Registered: 2008-06-06
Posts: 39
Website

Re: ExtendedFileManager how to install a new directory

Andre I think this is a bug in the EFM code. I posted about the same(?) problem a while ago. I'm hoping to get time to try and fix the bug sometime in August. In the meantime I used Image Manager and that works nicely.

Huw

Offline

#3 2008-11-26 16:30:46

jimhans
New member
Registered: 2005-09-06
Posts: 5

Re: ExtendedFileManager how to install a new directory

I think it is a bug, too. The ExtendedFileManager don´t like working when xinha is in a subdirectory.
Or did anyone makes other experience?

Last edited by jimhans (2008-11-26 16:31:41)

Offline

#4 2008-11-27 09:50:40

tuthtu
New member
Registered: 2008-11-20
Posts: 3

Re: ExtendedFileManager how to install a new directory

Nope; the same for me.
I did not get the backend-config to work so i patched config.inc.php.
Xinha is in [host]/include/scripts/Xinha
the path to the upload directory is given with $_GET['f'] = '/act/cms/'.
the script with the editor is '/admi/'
setting images_dir to [DOCUMENT_ROOT]$_GET['f'] does not work
setting images_dir to ../../../../..$_GET['f'] does not work
setting images_url to $_GET['f'] does not work
and the only message i got is: 'invalid directory demo_images'

is there any other way to upload pdf's or other files?
Greetings
   tuthtu

Offline

#5 2008-11-28 14:27:58

jimhans
New member
Registered: 2005-09-06
Posts: 5

Re: ExtendedFileManager how to install a new directory

The problem i mean is when xinha is not in the root. Then i got the problem with the EFM.
I looked at the code from EFM. The path from the iframe is relative. So if xinha is not in the root, the relative path is wrong.

The EFM editor.php has this code:

<iframe src="<?php print $IMConfig['backend_url']; ?>__function=editorFrame&img=<?php if(isset($_GET['img'])) echo rawurlencode($_GET['img']); ?>&mode=<?php echo $insertMode ?>" name="editor" id="editor"  scrolling="auto" title="Image Editor" frameborder="0"></iframe>

The $IMConfig['backend_url'] is defined in config.inc.php
as
$IMConfig['backend_url'] = "backend.php?__plugin=ExtendedFileManager&";

You see, it is relative. And i think that is the problem.

I think i will change the config file as solution.

Offline

Board footer

Powered by FluxBB