Cross linking an album between two installations of Gallery

camturner

Joined: 2002-09-11
Posts: 2
Posted: Wed, 2002-09-11 19:53

Hello all,

I'm going to assume that this is a bit of an odd request. I didn't see any mention of it in the FAQ or in the forums, but if it's there then please simply refer me to it as I may have used the wrong terms when searching.

I have a domain "turnerfamily.ca" for my family-line and my wife has a new domain (different) for her, her sisters and her parents. We have a photoalbum on my site of photos from our trips and wedding etc that we share with friends and family who visit my site. But now she'd like to have the same pictures on her domain under her own installation of gallery.

I control the server that both of these domains are hosted from (virtual hosting), and I'd like to conserve space (ie not have two copies of all of these pictures). Also any changes to one should be refelcted in the other..

So I guess my question is.. How do I place a single album (and any sub-albums created in it) into two different installations of gallery? I tried soft and hard linking the dirsctories on the file system, but gallery just ignores the link.

I'm a PHP developer so I could probably re-work it so that it works within the code.. but I want to be able to upgrade the version of gallery in the future and i doubt i'd have time to make these changes robust enough to submit them to the project.

If anyone has ideas i'd love to hear them.

Cam

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Thu, 2002-09-12 10:29

Gah, the server ate my first post :sad:

Ok, what you probably want to do is install gallery twice, one per virtual host.
Then in under one of the hosts, symlink the albums directory to the other.
Make sure your setup allows following symlinks and you should probably be
all set. Should allow for different customized looks with the same album data.

 
camturner

Joined: 2002-09-11
Posts: 2
Posted: Fri, 2002-09-13 19:20

Actaully i tried that.. It worked but not the way I wanted it to. I don't want to share ALL of the album data between the two installations.... Just one of the nested albums. My family page has places for my brothers etc to upload. They didn't marry my wife :smile: so their pictures shouldn't be on her family's pages (nor should her sisters photos be on my families page).

Me and my brothers/parents are on a.com
Her and her sister/parents are on b.com

The problem is that for the pictures that are both hers and mine (like our wedding etc), we'd like them to appear under BOTH galleries, without maintaining two copies of the images (no problem to maintain two sets of the data files though). I doubt it can be done without some programming, but i'm curious.

Any ideas?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2002-09-14 04:02

You're right -- it can't be done without some programming.

I think that it will be possible to closely approximate what you want in G2, but that functionality may not be available in the first release.

-Bharat