Forum Moderators: coopster

Message Too Old, No Replies

simple question I would think. blog on site?

web blog on site, embeded blog

         

drooh

3:20 am on Oct 30, 2006 (gmt 0)

10+ Year Member



Hey this to me seems like an obvious thing. Im trying to figure out how to incorporate a blog into my website. I know how to use php & mysql and I am familiar with wordpress. I have seen numerous sites (including sitepoint) that seem to have embeded blogs into their website. I have searched google w/ no avail. Can someone point me in the right direction?

Do I need to just build my own using php & mysql?

Is there a way to embed a portion of the blog into a div?

Any help would be much appreciated. Thanks all!

music_man

6:39 am on Oct 30, 2006 (gmt 0)

10+ Year Member



What would you like to embed in your webpage? If you are wanting to just show the blog, then you could get your Wordpress RSS feed and parse that into your webpage. Magpie RSS I think does that.

Try making a directory called /blog (where / is your root directory (where your homepage is)). Then .htaccess protect that directory.

Inside your /blog directory, make an index.php file and a display.php file.

In your index.php you can make the commands to add, edit or delete blog entries. I suggest using php cases inside the index.php file to refer to different actions (like adding and editing) then you won't have to have edit.php, add.php etc files.

With the display.php file, you have a mysql query to look at the blog posts and put them into an HTML format.

Back in your root directory, call display.php and it should display your blog