Embedding into custom PHP site

geddeth
geddeth's picture

Joined: 2004-05-16
Posts: 52
Posted: Tue, 2004-08-17 22:52

I am trying to embed Gallery 1.4.4 into my own website, and have done so by creating wrapper.header and wrapper.footer in the /html_wrap dir as I have explained here.

However, I've still to figure out how to keep Gallery from inserting it's own HTML header. I assume I ought to copy the default wrapper.header and insert a new case statement with my custom PHP commands. I'd then think that using the name from the case statement in config.php's $gallery->app->embedded_inside_type-statement would do the trick, but it just doesn't.

Can anyone tell me what I'm missing?

Thanks,
G.

 
geddeth
geddeth's picture

Joined: 2004-05-16
Posts: 52
Posted: Thu, 2004-08-26 20:59

Can it really be that noone knows the answer to this?

How do I intergrate Gallery 1 into my own PHP header and footer so that it doesn't display it's own HTML header right after mine?

Thanks,
G.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Thu, 2004-08-26 21:06

Gallery doesn't really use the embedded_inside_type. Gallery automatically detects embedding based on how it's called. If you want to customize it so that the normal HTML isn't sent, you'll need to modify code.

There's no way to do it automatically.