using $GALLERY_EMBEDDED_INSIDE for html template

rma

Joined: 2002-08-16
Posts: 2
Posted: Fri, 2002-08-16 21:37

I think this is the right forum for this... I can't seem to get gallery to recognize the $GALLERY_EMBEDED_INSIDE global. I don't have nuke or any third party app. I am just trying to wrap my html template around gallery. I added a line to wrapper.header and wrapper.footer ...

global $GALLERY_EMBEDDED_INSIDE;

$GALLERY_EMBEDED_INSIDE = 1;

switch($GALLERY_EMBEDDED_INSIDE) {
case "nuke":
...

based on these lines i found in albums.php

<? if (!$GALLERY_EMBEDDED_INSIDE) { ?>
</body>
</html>
<? } ?>

Anyway I am still getting this output when running gallery:

<html>
<head>
<title>My Photos</title>
<link rel="stylesheet" type="text/css" href="http://debian.inside.jaymejohnston.com/css/embedded_style.css">
<link rel="stylesheet" type="text/css" href="http://debian.inside.jaymejohnston.com/css/standalone_style.css"></head>
<body>

<!-- gallery.header begin -->

<!-- My web page begin -->
<html>
<head>
<title>JaymeJohnston.com</title>

<script language="JavaScript" src="/mouse-overs.js"></script>
</head>
<body bgcolor="#EEEEEE" text="#000000" link="#000000" alink="#000000" vlink="#0000ff">

Is there something else I need to do?

--Jayme

 
drewish

Joined: 2002-08-19
Posts: 16
Posted: Mon, 2002-08-19 20:40

I having the same problem, I need javascript in the headers for my mouseovers to work. I don't think the embedding is the right way to do it. It seems like creating a [code]header.default and using includeHtmlWrap() to read it into albums.php view_album.php and view_photo.php (maybe a some other files) would be the best way to do it.

I'll keep you posted on what I figure out.

 
wanderlost

Joined: 2002-08-17
Posts: 2
Posted: Mon, 2002-08-19 22:10

I'd like to know where to find head elements as well - I'd like to be able to change the stylesheet depending on the user's skin on my site. I've got the skinning working on the rest of the site, but I'm having issues with gallery because I'm not sure where the head elements are specified. It seems to me like they're in several different files - and I'm a bit timid about changing them everywhere if that could screw something up... some input would be MUCH appreciated. Here's my <!-- BBCode Start --><A HREF="http://gallery.menalto.com/modules.php?op=modload&amp;name=phpBB_14&amp;file=index&amp;action=viewtopic&amp;topic=62&amp;0" TARGET="_blank">original question</A><!-- BBCode End --> if that helps any :smile:

 
rma

Joined: 2002-08-16
Posts: 2
Posted: Tue, 2002-08-20 03:18

Ok, I'm a little farther now. Here is what I figured out.
If you modify:
wrapper.header
wrapper.footer
index.php

change index.php:
snip...
else {
// embedded jayme by default
$GALLERY_EMBEDDED_INSIDE = "jayme";
include("albums.php");
}
?>
---------
Change wrapper.header and wrapper.footer to include your html like this:
...snip
case "jayme":
include ('header.php');
break;
}
?>
...snip
case "jayme":
include('footer.php');
break;
}
?>
-----------
In your header.php make sure you have a line something like this to include the gallery css:
...snip
<head>
<?= getStyleSheetLink(); ?>
...snip
-----------

This fixes the first page but when I click on a link to view an album I get none of my html template. Looks like there is something else to be done. Did anyone else get any farther?