I want to use the serendipity blog on my website. But i have several Problems with making it work in my Homepage. I am using an own written CMS (using Smarty as well) called viá index.php?fetchId=3
The Blog is in the subfolder blog/
Now have a look @ my index.php
Code: Select all
<?php //blog loader
if($_GET['fetchId'] == 3) {
ob_start();
chdir ("blog/");
require 'index.php';
chdir ("../");
$blog_data = ob_get_contents();
ob_end_clean();
}
chdir('../clancore3');
require_once ( 'libs/class.mysql.php' );
require_once ( 'class.cms.php' );
require_once ( 'libs/config.inc.php' );
chdir('../tiberiandesign');
$db = new db($sql['host'],$sql['user'],$sql['password'],$sql['name']);
$cms = new ClanCoreCMS($db);
$cms->assign('cmsMenu',$cms->fetchMenu());
$cms->assign("blog", $blog_data);
$cms->display('index.top2.tpl');
if(isset($_GET['fetchId']))
$cms->fetchSite($_GET['fetchId']);
else
$cms->fetchHome();
$cms->display('index.bottom.tpl');
?>On this site of course there is no templates loaded.
What have I to do, having my Layout on all Blog sites?
thanks for your help and sorry for my bad english