Announcement

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

#1 2010-09-07 02:54:05

Fasaro
New member
Registered: 2010-08-14
Posts: 4

configurate ImageManager

I used Xinha several times and I love it. Now I want to create a small CMS with diffrent media folders for each user. But I have a problem to configurate Xinha with php. I do the same how it listet up in the ImageManager Plugin discription.

I added 'ImageManager' to the xinha_plugins

and added

with(xinha_config.ImageManager)
 {
  <?php
     require_once('http://localhost/cms/lib/xinha/contrib/php-xinha.php');
     xinha_pass_to_php_backend(
       array(
         'images_dir' => '/path/for/each/user/images', 
         'images_url' => '/for/each/user/images',
         'allow_upload' => true
       )
     ); 
   ?>
 }

to my_config.js.

But the ImageManager show for each user the same folder, the standart xinha image folder. It seems that no changes are done. Where make I a mistake? Can anyone help me?

Nice Regards
Fasaro

Offline

#2 2010-09-07 05:54:48

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

Re: configurate ImageManager

Is your javascript file being run by php?  I doubt it.  Call it my_config.php


James Sleeman

Offline

Board footer

Powered by FluxBB