Mambo media manager images and G2

charlier

Joined: 2005-07-19
Posts: 11
Posted: Tue, 2005-07-19 02:26

I'd like to be able to use images stored in G2 in my Mambo articles. I tried symlinking ../images/stories in Mambo to g2data/albums in G2. It sort of worked but some things were broken.

How can I use the Mambo Media Manager to view and therefore add images to my Mambo articles using G2. Note that I am not trying to manage G2 from w/in the Media Manager component of Mambo.

I guess i'm going to need to tell G2 that the g2data file is located at images/stories. Is that correct? What about permissions based issues from w/in Mambo? Any other issues? Any help appreciated.

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Tue, 2005-07-19 05:11

charlier,

yes you can place the g2data in media manager, but all other date will be placed there also!!!
You lose all permission if you do, everybody how has acces to the media manager will be able to brows the pictures.

more likely solution would be to edit the code of media manager to fetch a list of photo's from gallery2

grtz,
Michiel

 
charlier

Joined: 2005-07-19
Posts: 11
Posted: Tue, 2005-07-19 15:03

Any quick suggestions on where that code is located? I should be able to modify it to read from g2/g2data/albums if you can point me to the right files in Mambo.

Thanks,

Charlie

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Tue, 2005-07-19 16:36

charlier,

you could try include/mambo.php

line 37 fot paths

the scanning function starts at line 3530

!!make back up before you alter that file!!

regards,
Michiel

 
volleyclub

Joined: 2003-05-04
Posts: 32
Posted: Thu, 2005-07-21 11:52

Hey guys, it would be a great feature, an invaluable improvement to the integration!!
charlier, how is it going?
Do you think you'll be able to achieve it?