I prefer to do it the wrapper way but there are some problems the url for my blog is http://www.shinebox.nl/index.php?weblog so how do I use this in the wrapper.php ??
Code: Select all
<?php
$_REQUEST['page'] = 'blog';
// Let serendipity generate our content:
ob_start();
require 'index.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!
require 'content.php';
?>s9y is installed in http://www.shinebox.nl/weblog, the mainsite in http://www.shinebox.nl
My biggest problem is howto change this line "$_REQUEST['page'] = 'blog';"
This is what I think, but doesn't works:
Code: Select all
<?php
$_REQUEST[''] = 'webblog';
// Let serendipity generate our content:
ob_start();
require 'index.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!
require '../index.php';
?>Thanx in advance