Using Serendipity with Gallery

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Pat

Embedding vs Wrapping Gallery with Serendipity

Post by Pat »

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

:)
Pat

addendum

Post by Pat »

oops, I meant the only real section of my site running under Serendipity are the articles in the root of the domain.

http://greennature.com/
davecjr
Regular
Posts: 167
Joined: Fri Oct 29, 2004 3:09 pm
Contact:

Post by davecjr »

Any idea if this would work the same way with Coppermine?
Pat

Post by Pat »

davecjr wrote:Any idea if this would work the same way with Coppermine?
I've never used Coppermine, therefore, I do not know which specific files in Coppermine you would edit.

However, the idea of wrapping another software program in Serendipity skins is very generic, and reason suggests that it should work.
smartieskiller
Regular
Posts: 43
Joined: Sun Mar 12, 2006 3:15 am

Post by smartieskiller »

Need help with this gallery
i installed it ,the pluggins too (serendipity_event_g2embed) i made a link to the gallery but when i click on it it open il another window.I want it to open inside my blog (i've seen that on a serendipty user blog)
I'm tryng to do step by step the follwing tread but i can't find the "init.php" gallery file..

Any help will be welcome

thx :D
edufl13
Posts: 2
Joined: Fri Jun 15, 2007 3:40 pm

Post by edufl13 »

gerald wrote:Hi,

I followed all setps and get:
Fatal error: Call to undefined function: serendipity_smarty_shutdown() in /var/www/html/gallery/deinit.php on line 1
?
I get the same error message using s9y 1.1.2 and gallery 1.5.

Or doesn´t this work with newer Versions any more?
Post Reply