Content show up twice. um. yeah.
Posted: Tue Mar 01, 2005 5:47 pm
Ok. After having some odd permissions problem I couldn't figure out, I did a fresh install of s9y.
I'm using it in a semi-embedded mode. (you have to see the site to know what I mean).
Anyhow, my site index file that acts as a wrapper to get the blog content and such so it can be included looks like this:
blog.php is the s9y index file.
content.php is my site layout file.
Now, everything was working fine until I updated stuff on the server and got problems and had to reinstall s9y.
But after this fresh install, it's either not working, or doing oddness.
With the index as above, loading the site just gives a blank page.
When I comment out the ob_end_clean line, I get the blog, then my content (which includes the blog).
Well, take a look for yourself.

http://techiem2.no-ip.com:444
So basically, I'm trying to figure out why the blog is showing up before it's actually called.
hehe.
Any ideas?
Thanks.
Mark II
I'm using it in a semi-embedded mode. (you have to see the site to know what I mean).
Anyhow, my site index file that acts as a wrapper to get the blog content and such so it can be included looks like this:
Code: Select all
index.php
<?php
$_REQUEST['page'] = 'blog';
// Let serendipity generate our content:
ob_start();
require 'blog.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';
?>
content.php is my site layout file.
Now, everything was working fine until I updated stuff on the server and got problems and had to reinstall s9y.
But after this fresh install, it's either not working, or doing oddness.
With the index as above, loading the site just gives a blank page.
When I comment out the ob_end_clean line, I get the blog, then my content (which includes the blog).
Well, take a look for yourself.
http://techiem2.no-ip.com:444
So basically, I'm trying to figure out why the blog is showing up before it's actually called.
hehe.
Any ideas?
Thanks.
Mark II