trouble with embedding (another one...)
Posted: Thu Apr 24, 2008 6:39 pm
Hi
First i'am sorry to bother you with a question that's already been asked, but i don't really manage to get serendipity to work as an embedded version.
So what I did :
I installed (in /serendipity ) serendipity with the embedded option turned on.
I made a sample webpage and a wrapper :
sample webpage (named blog.php ):
the wrapper :
and i choose blog.php as my indexFile
So the blog is displaying when i load blog.php, but all the links are pointing to something like /serendipity/post-number... instead of "blog.php?......" and so all the "others things" won't be displayed. I tried to change relative path to / and add this option to my wrapper
with that some of the links are working the way i want them "blog.php?/..." but some aren't (the admin one for example).
I don't know what i'am doing wrong (i don't even know if what i'am saying is clear).
So if someone can help me it would be great.
thank you.
ps : excuse my english mistakes
First i'am sorry to bother you with a question that's already been asked, but i don't really manage to get serendipity to work as an embedded version.
So what I did :
I installed (in /serendipity ) serendipity with the embedded option turned on.
I made a sample webpage and a wrapper :
sample webpage (named blog.php ):
Code: Select all
<?php
require("wrapper.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>untitled</title>
</head>
<body>
<p>other things </p>
<?php
echo $serendipity_contents;
?>
</body>
</html>
Code: Select all
<?php
ob_start();
chdir("serendipity/");
require("index.php");
chdir("../");
$serendipity_contents = ob_get_contents();
ob_end_clean();
?>
So the blog is displaying when i load blog.php, but all the links are pointing to something like /serendipity/post-number... instead of "blog.php?......" and so all the "others things" won't be displayed. I tried to change relative path to / and add this option to my wrapper
Code: Select all
$_SERVER['REQUEST_URI'] = './serendipity/' . $_SERVER['REQUEST_URI'];
I don't know what i'am doing wrong (i don't even know if what i'am saying is clear).
So if someone can help me it would be great.
thank you.
ps : excuse my english mistakes