Embedding help: Adding my header and footer to Gallery2

brianb_adk

Joined: 2006-11-09
Posts: 48
Posted: Thu, 2006-11-16 17:41

Didn't see much while searching for specific SSI call issues - if there's something out there I trust you will point me to it! :)

I seem to missing one small thing in getting my header and footer into Gallery. I followed the tutorial here: http://codex.gallery2.org/index.php/Gallery2:How_to_visually_embed_G2_in_your_own_website_using_embedded_mode and seem to have part of it working. The trouble I'm having is that when I use the php include function, nothing appears on my gallery page - no error, no header menu or footer info.

I set up two files - 'header.shtml' and 'footer.shtml' which contain the <!-- include... statements to my header menu and footer info. The php file then uses php includes to call those .shtml files.

Here is the <body> code of my 'gallery2embedded.php' file:

Quote:
<body class="gallery">
<center>
<tr>
<td height="252" colspan="3" valign="top"><img src="/randomage/randimg_header.cgi" width="1024" height="238" border="0" /></td>
<td width="4">&nbsp;</td>
</tr>
<tr>
<td height="21" colspan="3" valign="top">
<?php include ('header.shtml'); ?>
</td>
<td></td>
</tr>

<?php
echo $g2moddata['bodyHtml'];
?>
<?php include ('footer.shtml'); ?>
</center>
</body>

Here is the link to the attempted embedded gallery: http://www.adkgraphicdesign.com/Photography/gallery2/gallery2embedded.php

And here is the link to my actual site so you can see the header and footer that should be showing: http://www.adkgraphicdesign.com

Hope this is clear - I feel like I'm soooo close.

Continued thanks!

 
brianb_adk

Joined: 2006-11-09
Posts: 48
Posted: Thu, 2006-11-16 18:24

Ooooooo! I tried entering the entire http: path to the .shtml files and it worked! Now, I am still curious why just the file name isn't working... any thoughts on that would be great.