Embedding vs Wrapping Gallery with Serendipity
Posted: Thu Dec 01, 2005 9:49 pm
I've read the entire thread and I have a different solution to offer:
Instead of trying to embed Gallery in Serendipity and consequently hack up Serendipity's nice code, it is much easier to just wrap the Serendipity skin around Gallery.
2 steps are necessary:
In gallery/html_wrap you will see two files - wrapper.header.default and
wrapper.footer.default
paste the following into wrapper.header default
<body>
<link rel="stylesheet" type="text/css" href="http://yourdomain.com/serendipity.css" />
<div id="serendipity_banner">
<h1>Your Gallery Name Here</h1><BR>
</div>
<table id="mainpane">
<tr>
<td id="serendipityLeftSideBar" valign="top"> <div class="serendipitySideBarItem container_serendipity_html_nugget_plugin">
<h3 class="serendipitySideBarTitle serendipity_html_nugget_plugin">
<ul id="serendipity_categories_list" style="list-style: none; margin: 0px; padding: 0px">
<!-- I use an include to put in a specialized left navigation scheme. You can copy and paste the left column information from the source code, including plugins instead. Make sure you delete the include.-->
<?php include("left.php"); ?>
</div>
</td>
<td id="content" valign="top"><!-- CONTENT START -->
paste the following into wrapper.footer.default
<td id="serendipityRightSideBar" valign="top">
<div class="serendipitySideBarContent">
<CENTER>Welcome to the Gallery</CENTER><BR>
<!-- the welcome to the gallery is in place because I need some text at the top of the right sidebard in order for adsense to work properly. Then I use a simple include statement to show the ads. You can just copy and past the information in the source code for your right sidebar if you like and delete the include-->
<?php include 'ads/ad1.php'; ?>
</div>
</td>
</tr>
</table><TR><TD>
<TABLE width="100%"><TR><TD><CENTER>@copy.Footer Information.</CENTER></TR></TD>
</table>
There are two strenths to this option:
First, you do not hack up Serendipity Code
Second, you get all the gallery titles and headers for your photos
for example, look at the titles that show up for this gallery,
http://ffaat.pointclark.net/gallery/
when you use a variation of the hack provided.
Compare it to the titles shown on my gallery pages
http://greennature.com/gallery/
when you click on animal pictures, for example, the title comes up animal pictures
this is what you want for Search Engine Optimization rather than having your blog name show up on every single page.
I've used this method for 4 different sections of my site, including gallery:
http://greennature.com/travel/
http://greennature.com/dictionary/
http://greennature.com/clipart.php
the only real portion of my site running under gallery is the articles all listed under
http://greennature.com
Hope this helps

Instead of trying to embed Gallery in Serendipity and consequently hack up Serendipity's nice code, it is much easier to just wrap the Serendipity skin around Gallery.
2 steps are necessary:
In gallery/html_wrap you will see two files - wrapper.header.default and
wrapper.footer.default
paste the following into wrapper.header default
<body>
<link rel="stylesheet" type="text/css" href="http://yourdomain.com/serendipity.css" />
<div id="serendipity_banner">
<h1>Your Gallery Name Here</h1><BR>
</div>
<table id="mainpane">
<tr>
<td id="serendipityLeftSideBar" valign="top"> <div class="serendipitySideBarItem container_serendipity_html_nugget_plugin">
<h3 class="serendipitySideBarTitle serendipity_html_nugget_plugin">
<ul id="serendipity_categories_list" style="list-style: none; margin: 0px; padding: 0px">
<!-- I use an include to put in a specialized left navigation scheme. You can copy and paste the left column information from the source code, including plugins instead. Make sure you delete the include.-->
<?php include("left.php"); ?>
</div>
</td>
<td id="content" valign="top"><!-- CONTENT START -->
paste the following into wrapper.footer.default
<td id="serendipityRightSideBar" valign="top">
<div class="serendipitySideBarContent">
<CENTER>Welcome to the Gallery</CENTER><BR>
<!-- the welcome to the gallery is in place because I need some text at the top of the right sidebard in order for adsense to work properly. Then I use a simple include statement to show the ads. You can just copy and past the information in the source code for your right sidebar if you like and delete the include-->
<?php include 'ads/ad1.php'; ?>
</div>
</td>
</tr>
</table><TR><TD>
<TABLE width="100%"><TR><TD><CENTER>@copy.Footer Information.</CENTER></TR></TD>
</table>
There are two strenths to this option:
First, you do not hack up Serendipity Code
Second, you get all the gallery titles and headers for your photos
for example, look at the titles that show up for this gallery,
http://ffaat.pointclark.net/gallery/
when you use a variation of the hack provided.
Compare it to the titles shown on my gallery pages
http://greennature.com/gallery/
when you click on animal pictures, for example, the title comes up animal pictures
this is what you want for Search Engine Optimization rather than having your blog name show up on every single page.
I've used this method for 4 different sections of my site, including gallery:
http://greennature.com/travel/
http://greennature.com/dictionary/
http://greennature.com/clipart.php
the only real portion of my site running under gallery is the articles all listed under
http://greennature.com
Hope this helps