Announcement

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

#1 2007-01-11 07:46:02

jelmer
Xinha Community Member
Registered: 2007-01-11
Posts: 11

ExtendedFileManager (EFM) on remote server

hello, i am trying to implement Xinha to my custom-build CMS which is allocated on a central server.

but now, i want to (only!) have ExtendedFileManager on a remote server, so i don't have problems with writing permissions of images and files.

How to accomplish this?

Thanks!

Offline

#2 2007-01-13 08:41:11

jelmer
Xinha Community Member
Registered: 2007-01-11
Posts: 11

Re: ExtendedFileManager (EFM) on remote server

Can someone please help me?

Offline

#3 2007-01-13 12:33:59

jelmer
Xinha Community Member
Registered: 2007-01-11
Posts: 11

Re: ExtendedFileManager (EFM) on remote server

I get several Javascript-errors, which make me think that an external server has no access to window.opener (=my central CMS). Is that true or is it maybe something else?

Offline

#4 2007-01-13 13:42:16

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

Re: ExtendedFileManager (EFM) on remote server

This could be related to this: Same Origin Policy

Offline

#5 2007-01-13 14:36:49

jelmer
Xinha Community Member
Registered: 2007-01-11
Posts: 11

Re: ExtendedFileManager (EFM) on remote server

Yes, that's probably why it won't work. I have tried your standaloneEFM, but it can't use it with other Xinha popups (plugins) at the same time, because they use the same variable names and function names.

Do you have any advice for me? I think of all Xinha located on remote server and then load it into my CMS.

Offline

#6 2007-01-13 14:45:14

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

Re: ExtendedFileManager (EFM) on remote server

I'm afraid that won't work either, I suppose

Offline

#7 2007-01-13 15:11:06

jelmer
Xinha Community Member
Registered: 2007-01-11
Posts: 11

Re: ExtendedFileManager (EFM) on remote server

You're right, Xinha does something, but with errors.

How do you (and others) handle this problem in your CMS? I don't want users to see each others images and i too want to have them stored locally on their own domain. So my only options is to make a copy via ftp (php) to their own domain.

Last edited by jelmer (2007-01-13 15:15:48)

Offline

#8 2007-01-13 15:28:33

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

Re: ExtendedFileManager (EFM) on remote server

I'm afraid that trying to setting up Xinha to behave like you want it is not the best (if posiible at all) solution and you should try to look for a lower-level solution so that Xinha does run on the same server as the images accessed by it.

You could e.g. store the images on the 'CMS server' and, after editing (or periodically) synchronize resources folder with another 'website server'.

So you would have to mirror images folder to remote server, there are various methods of doing this depending on your environment, try looking for rsync on wikipedia for more info.

If the 'cms server' and 'website server' are just different domains/accounts all running from the same server (e.g. cms.example.com and www.example.com all residing on the same filesystem) you could instruct the www.example.com web server to serve the image files from a different place in a filesystem e.g.

/home/www-example-com/public_html => images/home/cms-example-com/public_html/images

There are various ways to do that e.g. mod_rewrite in Apache, UNIX symbolic links.

Cheers,
Chris

Offline

Board footer

Powered by FluxBB