How do you Embed Gallery into a site that assembles the page

[Syntax]

Joined: 2002-10-26
Posts: 20
Posted: Sat, 2002-10-26 23:51

Here is what I found..
http://www.txraves.org/code/?item=embeddinggallery

They insert this line into the init.php
$GALLERY_EMBEDDED_INSIDE = "sitename";

They create new wrapper.header and wrapper.footer files..
heres how I did mine..

case "sitename":
include('../../header.php');
include('../../maintop.php');
break;

and something similar in the footer..

This works fine and dandy.. site comes up..
but the login button is missing.. and... css styles are gone...
and prefernces in albums no longer affect the fonts, colors ect..

I had to manually insert the css code into the top of my page,
and login using /gallery/login.php then hit the page back..
to see the updated gallery page with the administrator links..

Can someone tell me what to add to my header or how I can do this...
without loosing the css link, the login button,and the preferences attributes?

 
josephp

Joined: 2002-10-03
Posts: 172
Posted: Tue, 2002-11-05 23:44

To make it work, you need to:

CHANGE from:

case "sitename":
include('../../header.php');
include('../../maintop.php');
break;

TO:

<? include('http://www.domain.com/header.php'); ?>
<? include('http://www.domain.com/maintop.php'); ?>

Then it works that way