Announcement

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

#1 2009-10-23 17:57:00

thomas75
New member
Registered: 2009-10-23
Posts: 1

ExtendedFileManager to handle different users directories

Hi,

I'm trying to integrate xinha in my website and I'd like to let users upload images to their home directory.
This means that the $IMConfig['images_dir'] and $IMConfig['images_url'] are dynamic and need to be passed to backend.php file.
Has anyone an idea how to do that ? Via the XinhaConfig.js ?
Really appreciate your help.
Thomas

Offline

#2 2009-10-28 05:04:44

Ch.Foveau
New member
Registered: 2009-10-28
Posts: 1

Re: ExtendedFileManager to handle different users directories

Salut,

Alors j'ai réussi à le faire sans XinhaConfig.js modificateur

J'ai simplement modifié, un fichier d'ExtendedFileManager.
Voici le chemin
xinha / plugins / ExtendedFileManager / config.inc.php

Dans ce fichier, j'ai modifié la ligne suivante:
Images_dir IMConfig $ [ ''] = "../../../../$ utilisateur / images ";

Il suffit de Mettre un lien RELATIF avec un dossier en variable selon utilisateur pour Atteindre Les dossiers des images des utilisateurs.

En espérant Avoir pu t'aider.

Last edited by Ch.Foveau (2009-10-28 09:13:43)

Offline

#3 2009-11-10 09:30:52

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: ExtendedFileManager to handle different users directories

This goes in where you have your xinha_config (of course, you need to have PHP run over it)...

  with (xinha_config.ImageManager)
  {
    <?php
      require_once('/path/to/xinha/contrib/php-xinha.php');
      xinha_pass_to_php_backend
      (       
        array
        (
         'images_dir' => '/home/your/directory',
         'images_url' => '/directory'
        )
      )
    ?>
  }

Similar for ExtendedFileManager.


James Sleeman

Offline

Board footer

Powered by FluxBB