Our new Indie Games subforum is now open for business in G&T. Go and check it out, you might land a code for a free game. If you're developing an indie game and want to post about it, follow these directions. If you don't, he'll break your legs! Hahaha! Seriously though.
Our rules have been updated and given their own forum. Go and look at them! They are nice, and there may be new ones that you didn't know about! Hooray for rules! Hooray for The System! Hooray for Conforming!

Integrating a Blog Into a Website

HewnHewn Registered User regular
edited May 2007 in Help / Advice Forum
I've poured through Blogger and Wordpress support documents and forums without much help finding a simple and elegant solution. Or maybe it is there, and well, I'm pretty amateur at this sort of thing. The explanations I find via Google often just tell me how to use some frame trickery for the blog, to modify the blog template to match my site, or to simply have it on a different page all-together.

What I'm looking for is nothing robust, or at least, as robust as much of the descriptions provide. Basically I'd just like my homepage to be easily updated via some blog or news utility that allows me to make posts without messing with the HTML. All other pages are relatively static and I will update manually. So just the main page with news posts that can be updated and archived (set to archive after say, 3 or 4 posts, on the main page).

What I don't need are comments or any other fancy tools. A small bar to the side with archives for the months, as is common on blogs, would be great.

I basically just design my webpages with Frontpage (yes, I heard you groaning). I can get a nice looking presentation going, but how do I go about plugging this news updater into my content table? Recommended programs would be dandy. Something that I can copy and paste and then tweak is ideal. Should this be a far more elaborate project than I am giving it credit, please let me know that as well.

Oh, and my domain has all the PHP, mySQL, and other goodies required for any of this stuff.

EDIT: Diagram to make up for my poor explanation.
fancypants.jpg

Hewn on
cathSIG.jpg

Posts

  • powersspowerss Registered User
    edited May 2007
    The easiest way to do this is to use RSS2HTML (google it) (awesome!) to take your blog's RSS feed and output it onto your hompage.

    You can't really integrate Wordpress's output onto a non-templated design.

    HOWEVER...

    If you want to go old-school, all my old websites were powered off...

    Newspro.

    I think it's right up your alley.

    http://www.elektrik-sheep.com/newspro/newspro.zip

    Lightweight, integrates with an Server-side include (remember to rename your index with .shtml!) and it super easy to use.

    Read the readme!

  • Tweaked_Bat_Tweaked_Bat_ Registered User regular
    edited May 2007
    Or, if you want to use PHP rather than CGI, a free, easy to setup alternative is Xpression news, or CuteNews (although cutenews requires payment to remove the "powered by" message at the bottom of your news section)

    These are really simple PHP scripts, where you just include a line or two of PHP into wherever you want the news to appear. They come with simple templates that you can tinker with to get the right look. Or, you can strip the template completely down to it's core if your page is influenced by a style sheet or something like that.

    They have archiving functions, and they also have comments/RSS functionality, but those can be removed/disabled. EDIT: I'm not sure about CuteNews, but Xpression uses XML to do all of it's archiving and shit, so you don't even need to setup a MySQL database.

    This is a better solution than a blog if you only plan on updating one page on your site with small pieces of simple content. Less hassle, and a lot of flexibility.

    Don't forget to rename the page where you include the PHP to .php (as oppose to .html)!

    (there is a readme file, so all that is explained anyway).

  • ÆthelredÆthelred Registered User
    edited May 2007
    1. Install Wordpress into a subdirectory. Make it /news/ or something readable since it's what people will see.

    2. Put this in your 'display posts here' frame:

    <? require "/path/to/public_html/news/wp-blog-header.php"; ?>

    <?php query_posts('showposts=20'); ?>
    <?php while (have_posts()) : the_post(); ?>

    <h5 class="storytitle"><a class="nobold" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h5>
    <h6>Posted by <?php the_author() ?> on <?php the_time('F j, Y'); ?> at <?php the_time('g:i a'); ?> <?php edit_post_link(__('Edit This')); ?> </h6>

    <?php the_content(__('(more...)')); ?>

    <?php wp_link_pages(); ?>

    <h6><?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Add your comment (%) ')); ?></h6>

    <?php endwhile;?>



    That's just my formatting of course; you can change that. I have my wordpress in the /news/ folder and use that code to display the posts on my main page.

    I also however cautiously second the suggestion to use CuteNews. It really is very simple, but it's a tad buggy and the un-loggoed version is unsupported now, which lacks basic features like RSS and the archiving is a bit weird - it doesn't have automatic archiving either from what I can remember. It's only good if you're certain you'll never ever want anything more complex (there's no conversion script from CN to Wordpress or anything; had to do it by hand..).

    pokes: 1505 8032 8399
  • HewnHewn Registered User regular
    edited May 2007
    Thanks for everything so far guys. This is exactly the sort of stuff I wanted to know. I've got much tinkering to do.

    Tip o' the hat to you all.

    cathSIG.jpg
Sign In or Register to comment.