EE + G2 (via multiroot)

SyrusPhotography

Joined: 2007-04-25
Posts: 1
Posted: Wed, 2007-04-25 06:20

I have an integration of G2 with Expression Engine, but have found and traced a problem to the multiroot style of a captive account.

Taking it out of Expression Engine and trying to use it as multiroot the same problem occurs...

when permissions for everyone are removed, and only permissions for the multiroot user are allowed, Everything works except the images. All images show as broken unless I am logged on as a user in another window. you have to force a reload due to caching to notice it unless you are on a computer that has no cached images.

I have found what I think is the problem but am not sure how to fix it. The IMG tag links that are in the output generated by the multiroot file below reference the G2Uri instead of the embedUri. The actual href links point to the embedUri.

any help is appreciated...

This is the multiroot file:

<?php
require('/home/mysapbas/public_html/fetishjade/my/montage/embed.php');
$ret = GalleryEmbed::init(
array('embedUri' => '/zoo/cool.php',
'g2Uri' => '/montage/',
'apiVersion' => array(1, 2)
));
if ($ret) {
print '<body>' . $ret->getAsHtml() . '</body>';
return;
}

$gallery->setConfig('login', true);
$gallery->setConfig('defaultAlbumId', 3366);
$gallery->setConfig('anonymousUserId', 3914);

GalleryMain();
?>

 
kuber

Joined: 2007-08-15
Posts: 16
Posted: Thu, 2008-10-02 05:23

I want to work on a full modular integration of Gallery2 for Expression Engine. Does anyone have tips, suggestions, or want to help?