older entries don't keep theme on embed

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
prettynerdygirl
Posts: 1
Joined: Sun Apr 05, 2009 3:34 am

older entries don't keep theme on embed

Post by prettynerdygirl »

So, I have my blog embedded into my website (http://prettynerdygirl.net23.net), but the look of the blog on the homepage doesn't carry over when you go back to view older entries. (example: http://prettynerdygirl.net23.net/serend ... p?/P2.html) How can I fix this? I have user.css in my template directory. I'm not considering not embedding. The blog stays embedded. Immediate help is much appreciated seeing as my new blog is live.
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: older entries don't keep theme on embed

Post by Don Chambers »

I'm not sure you need an embedded installation, and I am fairly certain you do not have it configured properly as an embedded installation.

Why do you feel it needs to be embedded?
=Don=
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Re: older entries don't keep theme on embed

Post by judebert »

Hmmm. Your individual entries don't have any CSS associated with them. This is probably because they have an empty <head> section.

Your comments are having the same problem.

I'm going to second Don on this one, despite your earlier assertion: embedded mode is a reasonably complex capability intended for installations with many existing PHP applications. It's especially difficult because your master PHP file needs to do pretty much everything s9y's index.php and index.tpl do, so that plugins can emit their JS, HTML and CSS in the appropriate places.

For conforming to theme, a new template is a better choice (and since we use Smarty, it's not like you need to learn an entirely new templating language). For existing websites, duplicating existing pages as entries is a better choice. For displaying only headlines and redirecting to the full blog later, using the Javascript interface through a plugin is a better choice.

You seem to be starting a completely new blog, so you don't fall into any of those categories. It would be a lot easier to modify an existing template to fit your website than to embed the blog.

And that's the last time I'm going to mention it unless you want to bring it up again later.

I assume you've followed the Serendipity embedding instructions. Unless I'm mistaken, you need to change your "indexFile" option in the Serendipity admin configuration screen. This would point to the php file that includes your CSS. Right now, you've got the "Is Serendipity embedded?" option selected, which means no <html> or <head> tag is created; only the blog content is output. Therefore your style.css isn't being referenced.

Telling s9y that the index file is actually your master PHP file would cause that master PHP file to be called instead of the usual one. Then you could reference your style.css in the master and get all your formatting back.
Judebert
---
Website | Wishlist | PayPal
Post Reply