Serendipity
From Tuxwiki
Serendipity
Installation
I slightly had to modify the way how to embed serendipity in an existing web page. In contrast to what is said in the installation instructions, I renamed the index.php which is shipped with serendipity to serendipity.php and made the index.php itself the wrapper script (called wrapper.php in the installation instructions). The web server is configured to serve index.php by default (if no index.html exists), so everything inside serendipity still works even if the index.php is not explicitly given in the URL (this happens for example when clicking on the "Back to weblog" button in the administration page).
The new index.php then looks like this:
<?php
// Let serendipity generate our content:
ob_start();
require 'serendipity.php';
$blog_data = ob_get_contents();
ob_end_clean();
// Now we include our normal content building file.
// This one has to make use of your $blog_data variable to print
// the content where appropriate!
chdir('/srv/myhomepage');
require 'content.php';
?>
This way the serendipity installation can reside in a sub directory below the main page contents, and the only file which needs to be modified in the serendipity installation directory is the index.php.
I also uncommented all the global styles in the style.css of the theme I choose, to avoid conflicts with any style definitions for the rest of the site.
Missing image
Test.png
Image:test.png

