Patrick's Blog

Integrate WordPress blog into your website

September 5th, 2005

As I reported two days ago, the news on galaxysoft.ch are now dynamically created from my WordPress blog. I’d like to share the small script I’ve written for this purpose. The blog class: blog aggregation class.

To use this you need PHP 5. The function grabRSS can then be called e.g. by grabRSS("http://www.example.com/blog/wp-feed.php", 5) to get the latest 5 entries of the WordPress blog located at www.example.com. Instead of just echo”ing the blog entries I decided to save them in an instance of the class BlogEntry and then to return an array of BlogEntry‘s. You can then for example use a Smarty template to really show them on your website.

Where I assigned the array the function grabRSS returned to the Smarty variable $WEBSITE_NEWS.

Posted in website | Comments Off

Blog online

September 3rd, 2005

I now installed the excellent blog software from WordPress. I don’t plan to use this blog to post about my personal life, but rather for publishing smaller code snippets or post news related to this website. The news section on the index is now dynamically generated from the latest blog entries.

Posted in website | Comments Off

New website partially online

September 2nd, 2005

The new website is now finally online (at least the important parts). Improvements include: a better PHP/Smarty codebase, a new webhoster, PHP 5 and a new design. I hope with the site now up and running, I can provide updates more often. Smaller things of the page are still in development (e.g. the logo or the index), but I hope I can finalize this remaining parts in the next few days.

Posted in website | Comments Off