Showing Only Blog Posts On a Page

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Extrix
Regular
Posts: 7
Joined: Thu Mar 30, 2006 1:21 am
Location: Olds,
Contact:

Showing Only Blog Posts On a Page

Post by Extrix »

Hello,

I was wondering how (if you even can) you just show Blog posts, without the themes or anything. Like, I'm trying to setup a site for a friend and downloaded this blog system, set it up and all and now, I would like to make it so that, when they load the site, in the main frame, It JUST shows the posts and not the title or anything that like.. Is there like a .php code or something you can just stick into the frame so it will show the posts you have made and that is it? (AKA Not the title and stuff above that)

I hope you understand what I mean.. :P

Any help would be greatly appreciated.

Thanks!

(P.S. Is there a VERY SIMPLE skin out or something that JUST shows the blogs perhaps?)
(P.S.S. I hope this is the right spot to post this!)
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

what you're talking about doing is embedding your blog into another website, and there are many threads in these forums that describe how to do this. I have never done this before but maybe just knowing that you want to embed your blog will be the start you need to find other info.

Good luck,

Carl
Extrix
Regular
Posts: 7
Joined: Thu Mar 30, 2006 1:21 am
Location: Olds,
Contact:

Post by Extrix »

:)

Thanks alot for telling me what the heck I was doing :P Okay, yeah I posted because I wasn't sure what I was really looking for =/ But now I know!

Thanks for the fast reply aswell!!
Extrix
Regular
Posts: 7
Joined: Thu Mar 30, 2006 1:21 am
Location: Olds,
Contact:

Post by Extrix »

Awesome! I got it!

It was just a simple setting in Administration > Configuration > Appearance and Options and then you go down to Is serendipity embedded? and press Yes.

Thanks again! ;)

Although, how do I change the font / font color now?
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

ok you need to first off change your template and see if that changes the font/size/color. If it does then we know you'll need to customise the stylesheet for the serendipity theme, but if nothing changes than take a look at the source code for your own site and see if serendipity is using styles that you need to add to your website stylesheet - does that make sense, maybe I haven't explained myself well enough.

Carl
Extrix
Regular
Posts: 7
Joined: Thu Mar 30, 2006 1:21 am
Location: Olds,
Contact:

Post by Extrix »

When I change themes, it stays the same. It totally takes out the color and everything.. it's just plain text.. just black.. and using the default Times New Roman or whatever it's called.. Like, I can put in a stylesheet but I am wondering how because, I am using an IFrame right? so if I link the IFrame to the blog index page, how am I supposed to edit that page?

Hope you know what I mean..
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

Please accept my apologies for not being to help more, the only info I can find that might help is this thread

BTW, loving the look of your site, and your artwork is impressive - any chance we could encourage you to contribute something that we could turn into a template for serendipity? It would need to be in the form of an html template like you might download from OSWD.org but with your photoshop skills should be a no brainer for you. We could even help you with the coding if you'd like to follow through to the end.

Cheers

Carl
Extrix
Regular
Posts: 7
Joined: Thu Mar 30, 2006 1:21 am
Location: Olds,
Contact:

Post by Extrix »

carl_galloway wrote:Please accept my apologies for not being to help more, the only info I can find that might help is this thread

BTW, loving the look of your site, and your artwork is impressive - any chance we could encourage you to contribute something that we could turn into a template for serendipity? It would need to be in the form of an html template like you might download from OSWD.org but with your photoshop skills should be a no brainer for you. We could even help you with the coding if you'd like to follow through to the end.

Cheers

Carl
Thanks for all your help aswell! VERY appreciated and I will consider your offer :)

Thanks again!
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

Awesome, thanks for understanding my limitations, here's hoping someone with experience of embedding comes online to get you through the next steps.
Extrix
Regular
Posts: 7
Joined: Thu Mar 30, 2006 1:21 am
Location: Olds,
Contact:

Post by Extrix »

So pretty much, my current state is that I have sucessfully 'imbedded' Serendipity into my frame, but now it shows just plain text (Times New Roman) with a white background. Now, the question is how to change the font and colors?

I tried putting it into HTML and putting in a Stylesheet but then ended up with:

Code: Select all

Warning: Cannot modify header information - headers already sent by (output started at /home/extrix/public_html/devonator/news.php:2) in /home/extrix/public_html/devonator/blog/index.php on line 19
Pretty much a bunch of those. So I looked around and I guess you need a wrapper ? But I am not quite sure how to use it exactly... Anyone got a suggestion?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Usually if you embed serendipity, it does not emit any HTML headers, so no CSS references as well. Because usually your application that s9y is embedded into should show the HTML.

The PHP error message you get happens when you omit the "ob_start()" php directive as indicated on www.s9y.org in the documentation on the embed mode.

What I suggest you instead of embedding is to modify your serendipity template files like index.tpl - this contains all the header stuff. There you could modify and move all the stuff around your framework needs for iframe inclusion...

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Extrix
Regular
Posts: 7
Joined: Thu Mar 30, 2006 1:21 am
Location: Olds,
Contact:

Post by Extrix »

Err, I don't think I want to do that quite yet = /

I would like to try the wrapper thing first, but I don't quite understand it?

Maybe someone can.. simplify it for me? Sorry, I'm a noob at PHP.. When you put in the wrapper code at the top of your page or whatever, I don't understand like, how it makes this 'wrapper.php' file... Hmm maybe someone can post the code for me that I need to put in?

Hope ya know what I mean =X
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hm, modifying your index.tpl would be way easier than using embed mode.

Please search through the forums for "embed", there are many threads about this, and I sadly currently have no time to look that up for you or repeat the process...

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply