[Nfb-web] embedding a blog into an existing site
Dan
DOzuna at BlueBottle.com
Mon Aug 13 22:58:40 CDT 2007
Hi Benjamin,
I had to drop this little project for a while, but I'm working on it again.
Thanks for the info. I don't know PHP, but I've been going through the
documentation for it and WordPress. In the mean time a friend sent me this
bit of code and I'm wondering if it will allow me to do what I want.
<?php
require('./wp-blog-header.php'); // alter to path to wp-blog-header.php
script on your site
?>
<!- if you want to have a title graphic it goes here ->
<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
# <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent
Link: <?php the_title(); ?>"><?php the_title(); ?></a> <small> in <?php
the_category(',
') ?> </small><small><?php the_time('m-d-Y'); ?> <?php the_time('g:i a
'); ?></small><br />
<?php endforeach; else: ?>
<!- put what you want here when there are no posts ->
<?php endif; ?>
Thanks,
Dan
----- Original Message -----
From: "Benjamin Hawkes-Lewis" <bhawkeslewis at googlemail.com>
To: "NFB Webmaster's List" <nfb-web at nfbnet.org>
Sent: Wednesday, July 11, 2007 4:24 PM
Subject: Re: [Nfb-web] embedding a blog into an existing site
> If you know PHP you can use the current homepage as a template and make
> Wordpress API calls to pull recent entries out of the Wordpress
> database. You can base these calls on the front page template for
> WordPress's default theme.
>
> PHP documentation: http://www.php.net/docs.php
>
> Basic PHP tutorial: http://www.tizag.com/phpT/
>
> WordPress documentation: http://codex.wordpress.org/Main_Page
>
> Hope that helps
>
> --
> Benjamin Hawkes-Lewis
>
> Dan wrote:
> > Hi Benjamin,
> >
> > I'm learning as I go here, so I appreciate the info you provided. I
> > inherited this site a couple of months ago and I'm coding everything by
> > hand. Although, a few people have recommended that I look into using
Drupal.
> > My boss saw a site where on the home page a blog was "embedded". I don't
> > know what other term to use for this. Also on this home page is a link
to
> > the (full) WordPress blog. She said that the only portion that appears
on
> > the home page are the most recent entries. Of course when I asked her
for
> > the URL for the page she couldn't remember it. What options do I have to
do
> > something like this? The WordPress installation isn't a big deal but,
> > placing it into our home page is what I'm not sure about. Any
> > ideas/suggestions would be appreciated.
> >
> > Thanks,
> >
> > Dan
> >
> > ----- Original Message -----
> > From: "Benjamin Hawkes-Lewis" <bhawkeslewis at googlemail.com>
> > To: "NFB Webmaster's List" <nfb-web at nfbnet.org>
> > Sent: Saturday, June 30, 2007 5:48 PM
> > Subject: Re: [Nfb-web] embedding a blog into an existing site
> >
> >
> >> iframe is not the best way to do this. iframe is deprecated markup,
> >> meaning it should not be used for new content:
> >>
> >> http://www.w3.org/TR/html4/present/frames.html#edef-IFRAME
> >>
> >> Frames of all sorts should (generally speaking) be avoided because of
> >> their manifold usability problems:
> >>
> >> http://www.w3.org/TR/WCAG10-HTML-TECHS/#frames
> >>
> >>
> >
http://www.456bereastreet.com/archive/200411/who_framed_the_web_frames_and_usability/
> >> Certainly they should be avoided for a use-case as ordinary as a blog.
> >>
> >> What is the best way to do what you want is highly dependent on what
> >> technologies are used to create your existing website and precisely
what
> >> you mean by "embedding". Normally, one would just make a WordPress
> >> installation and customize its templates for your company's branding
and
> >> add navigation to the rest of the site. In other words, there would be
> >> no client-side embedding and all mixing of content would be done
> >> server-side.
> >>
> >> --
> >> Benjamin Hawkes-Lewis
> >>
> >> Dan wrote:
> >>> Hi list,
> >>>
> >>> My boss would like to embed a blog into our existing web site. Would
> > using an IFrame be the best way to do this? I've been playing with an
IFrame
> > today and see that it embeds the entire blog (a friend's blog). Is there
a
> > way to "manipulate" the IFrame so that only the entries are visible? Our
> > blog doesn't exist yet, but WordPress is one of the 1 click installs our
> > hosting provider offers. Any suggestions/ideas would be appreciated.
> >>> Thanks,
> >>>
> >>> Dan
> >>> http://www.bluebottle.com Find out how you can get spam free email.
> >>> http://www.bluebottle.com
> >>>
> >>>
> >>>
>
>>> ------------------------------------------------------------------------
> >>>
> >>> _______________________________________________
> >>> Nfb-web mailing list
> >>> Nfb-web at nfbnet.org
> >>> http://www.nfbnet.org/mailman/listinfo/nfb-web
> >> _______________________________________________
> >> Nfb-web mailing list
> >> Nfb-web at nfbnet.org
> >> http://www.nfbnet.org/mailman/listinfo/nfb-web
> >>
> >>
> >> --
> >> No virus found in this incoming message.
> >> Checked by AVG Free Edition.
> >> Version: 7.5.476 / Virus Database: 269.9.14/882 - Release Date:
6/30/2007
> > 3:10 PM
> >
> > ----------------------------------------------------------------------
> > Free pop3 email with a spam filter.
> > http://www.bluebottle.com/tag/5
> >
> > _______________________________________________
> > Nfb-web mailing list
> > Nfb-web at nfbnet.org
> > http://www.nfbnet.org/mailman/listinfo/nfb-web
> >
>
> _______________________________________________
> Nfb-web mailing list
> Nfb-web at nfbnet.org
> http://www.nfbnet.org/mailman/listinfo/nfb-web
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.476 / Virus Database: 269.10.4/898 - Release Date: 7/12/2007
4:08 PM
>
>
----------------------------------------------------------------------
Free pop3 email with a spam filter.
http://www.bluebottle.com/tag/5
More information about the Nfb-web
mailing list