Hello!
Currently, I have Gallery 1.5.6 set up with joomla.
Now I have a simple php file and just want to include Gallery in that php file. There is no joomla in that php file.
I explain to you the structure: there is an index.php which includes different php files. The index.php contains the html header file / navigation, and also the footer.
The file included is now fotos.php. This file should include the Gallery script.
So, the first thing I did is:
<?php include("path/to/gallery/index.php"); ?>
And it worked. The list of albums was displayed. But - the gallery was not embedded, i.e. the Gallery background was displayed and not the background I specified in my index.php before. HTML headers were in the source twice, and so on...
So how can I solve it that the gallery is really embedded into the php file?
I tried this:
<?php
$GALLERY_EMBEDDED_INSIDE = "foobar";
include("path/to/gallery/index.php");
?>
And I just got an error message:
Fatal error: UserDB failed to initialize!
Does anybody know what to do?
Posts: 6818
Hello,
sorry for the loong delay.
In the meanwhile we released Gallery 1.5.9 which contains the BIG security fixes from 1.5.8 and two more security fixes discoverd afterwards.
Please upgrade.
Gallery 1.x can not be included that way.
But is a nice idea for 1.5.10 or 1.6.1
Right now you need to "include" your website into Gallery.
Means you have to modify header and footer that it looks like embedded into your page, but actually its not.
Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6