You are not logged in.
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
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
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
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
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