Using Gallery images in Mambo new items?

brianlees

Joined: 2002-08-17
Posts: 51
Posted: Wed, 2004-11-17 16:33

Does anyone have a plan to allow you to use images in Gallery within a news item, like the way you seleft images in the right tab section when entering an item? That would be REALLY nice and would truly "integrate" Gallery into Mambo. Right now, it is just an independant area that happens to coexist within Mambo.

If I new how to code php, I would offer to do it....but unfortunately, I don't.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Wed, 2004-11-17 16:42

I'm sure someone could write a mambot for it, but I have the feeling that it would be incredibly slow.

 
kai_tom

Joined: 2004-04-08
Posts: 347
Posted: Wed, 2004-11-17 18:30

The easiest way is to place Gallery's albums directory in your /mamboroot/images/stories/.
Then you can use the images in the content with {mosimage}, the mosthumb mambot or editor.

Kai

 
brianlees

Joined: 2002-08-17
Posts: 51
Posted: Sun, 2004-11-21 04:47

Could you use a symbolic link instead of moving the directory? I would prefer to keep my gallery image directory separate from Mambo, if possible.

 
gary_d

Joined: 2004-11-19
Posts: 26
Posted: Sun, 2004-11-21 06:12

Yes, a symbolic link works:

cd images/stories
ln -s ../../albums/albumForCaptions gallery_captions

Notice that my example has a seperate gallery album for captions.. this keeps people away, lets me keep that album "fit and trim" (no full-sized images are needed there), and prevents problems if I happen to move a photo between gallery albums (which moves its physical location on disk.) So, whenever I want to use a photo (or thumbnail of a photo) for a caption, I COPY it to the hidden captions album, and then access either filename.jpg or filename_thumbnail.jpg from mambo.

 
brianlees

Joined: 2002-08-17
Posts: 51
Posted: Tue, 2004-11-23 05:33

Thanks.

Any word on Mambo functionality in Gallery 2? Since it is DB driven, I would think that it would not suffer from the image move problem you describe.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Tue, 2004-11-23 09:01
Quote:
Any word on Mambo functionality in Gallery 2?

It'll happen, but nobody's working on it at the moment. I've semi-put it on my things to do.

Quote:
Since it is DB driven, I would think that it would not suffer from the image move problem you describe.

G2 being DB-driven doesn't change how Mambo creates its list of images... it would definitely make it easier to create a separate mambot, however.

 
gary_d

Joined: 2004-11-19
Posts: 26
Posted: Tue, 2004-11-23 11:48
brianlees wrote:
Any word on Mambo functionality in Gallery 2? Since it is DB driven, I would think that it would not suffer from the image move problem you describe.

I've played around with G2 alphas... from what I've seen, images are still stored in seperate directories based on what album they are in... implying that if an image is moved from one album to another, that the physical image file is also moved. :(

Of course, its not a beta yet, so who can tell how things will work out...

 
brianlees

Joined: 2002-08-17
Posts: 51
Posted: Wed, 2005-01-05 02:57

Does Gallery 2 not have a single ID that represents the image, no matter where it is moved? If it does, couldn't the Mambo module/mambot/component/whatever reference that ID and the Gallery DB would point it to the correct image? Or, is Gallery 2 still hard linked to a static directory structure?

 
brianlees

Joined: 2002-08-17
Posts: 51
Posted: Fri, 2005-01-07 16:38

I guess I should post the question in the Gallery 2 forum...

 
rsbrace

Joined: 2005-07-08
Posts: 13
Posted: Thu, 2005-08-04 23:21

The easiest way to integrate G2 images in mambo if you cannot create the symlink.

Install the MosCE editor and config as your default mambo editor.
Now install G2 inside your mambo directory.
Config MosCE file browser to show the G2 image folder.
Be suer to also set create new folders chmod to 777 in both programs so you can write thumbs to the image folders.

It took a little playing around but it is working like a charm now.
You can also try FCRediter.