Announcement

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

#1 2006-08-04 11:55:41

PE
New member
Registered: 2006-03-10
Posts: 3

image upload directory

I got Xinha working with EFM, but the upload directory is now /Xinha/plugins/ExtendedFileManager/demo_images

Where could I change that in /my-directory_images?

Offline

#2 2006-08-04 19:09:06

koto
Xinha Pro
Registered: 2006-01-09
Posts: 58

Re: image upload directory

The configuration of the plugin is the same as ImageManager plugin, if you're familiar with it.

You can specify the config variables in two ways

1. Static configuration - simply edit the config.inc.php file in EFM directory and change the 'images_dir' and 'images_url' settings

2. Dynamic configuration (you can specify the settings while instantiating the editor, useful if you need to dynamically change the config based on e.g. user  account logged in to your application) - to do this, the xinha configuration and startup must be done not in .js file, but in .php file - appropriate snippets of code to insert to this file are included in readme.txt file in EFM directory.

Cheers,
Chris Kotowicz

Offline

#3 2006-08-30 06:34:51

topgun
New member
Registered: 2006-08-30
Posts: 6

Re: image upload directory

Hi, I currently have the same problem.

When I am trying to config the image manager as following:

<?php
        session_start();
        $IMConfig = array();
        $IMConfig['images_dir'] = '/usr/export/www/vhosts/funnetwork/hosting/retaliator/smg/';
        $IMConfig['images_url'] = 'http://retaliator.re.funpic.de/smg/';
        $IMConfig = serialize($IMConfig);
        if(!isset($_SESSION['Xinha:ImageManager']))
        {
          $_SESSION['Xinha:ImageManager'] = uniqid('secret_');
        }       
       ?>

Actually the image manager is working but when I submit the form I receive wrong image sources:

<img width="38" height="10" src="smg/mehr.gif" alt="mehr.gif" />

instead of

<img width="38" height="10" src="http://retaliator.re.funpic.de/smg/mehr.gif" alt="mehr.gif" />

Can anyone help me

thx rob

Offline

#4 2006-08-30 09:08:40

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: image upload directory

If there's any more need for discussion, please write here http://xinha.gogo.co.nz/punbb/viewtopic.php?id=573 to keep things together

Offline

Board footer

Powered by FluxBB