I have been reading through these forums for a bit as I have been using serendipity, and I have to say I am impressed with the helpfulness so far. I couldn't find anything related to my specific problem, so, here I am posting about it.
Background: The blog is embedded (yes, embedded, more on that shortly) at: http://www.maplelangley.com/jericho.php#1 . Now, it is embedded because of all of the custom formatting, php, etc, that is working in the background to serve up those pages: It is also embedded as a sort of "testing ground" for our next project (still all secret like) that will be even more dynamically generated, so it isn't really useful to (learn a new template language) and then try to modify a template so that it does all of the same dynamic generation... Including as we develop it, changing it multiple times, and therefore having to also go modify the s9y template. We really only choose serendipity in order to have a blog that we could embedd anywhere, and it worked great to start with, but we have started to run into some issues.
Now, the most obvious one is that if you go to http://maplelangley.com/serendipity_admin.php, you can see right away from the login screen that it is not loading the css. This was working before, when I had the "serendipity index file" option set to "ser-index-ser.php" which is what I ended up renaming the index.php provided with serendipity to. However, that means that it loads that file if you click on a blog entry to display just that entry, which of course had no formatting.
I created blog_wrapper.php, and set it as the index file, with all of our current custom formatting: That actually seemed to work, clicking authors, or blog posts, loaded the content in that page, exactly as I wanted. The relevant code from that is:
Code: Select all
<?php
// serendipity stuff:
$keygetter = array_keys($_REQUEST);
$urlpath = 'http://www.maplelangley.com/ser-index-ser.php?'; // set path to orig file
$urlpath .= $keygetter[0]; // append the variables passed to this file
$urlpath = str_replace('_', '.', $urlpath);
ob_start();
require $urlpath;
$blog_data = ob_get_contents();
ob_end_clean();
?>
Now, I assume as a result of that change, the admin backend does not appear to have the serendipity_admin.css file applied (Which as I understand, does not exist, but is generated somehow). Also, when the blog becomes long enough, the "next page" link does not work, linking to "http://www.maplelangley.com/blog_wrappe ... ho/P2.html", which returns an error indicating that the require line inside the wrapper is failing: "http://www.maplelangley.com/ser-index-s ... ho/P2.html"
My questions are:
How can I change this so the backend has CSS and looks pretty again? While I think black text on a white background is fine, end users do not always agree
How do I make the next page link work correctly? This seems odd to me given that the entry and author links work fine. Would it be better perhaps to embedd the original index file (now ser-index-ser.php) in an iframe within that tab? Any other suggestions? I am looking for things that are easy to maintain long term, as the end user may be requiring changes later in the sites lifecycle.
Let me know if there is any other info I can provide for help!