boogdesign links

Links contains a big list of links, with a little bit of commentary

Rob Crowther, London, UK based Blogger, Web Developer, Web Designer and System Administrator - read my Curriculum Vitae

Buy my book!

Book CoverHello! HTML5 and CSS3 available now

Buy my other book!

Book CoverEarly access to HTML5 in Action available now

Category: Content Management

09/19/06

09:14:39 pm Permalink New Boog Design Home Page Features

Categories: Programming, Content Management, Web

I've just been updating the boogdesign home page so that it displays recent updates from the rest of the site. I used Magpie RSS rather than hacking around with databases, as I figured it would be easier to extend later and less code in the short term. Here's the code:

<?php
$rss1 = fetch_rss("http://www.boogdesign.com/b2evo/xmlsrv/rss2.php?blog=1");
echo "<ul>";
for ($i=0; $i<=3; $i++) {
	$href = $rss1->items[$i]['link'];
	$title = $rss1->items[$i]['title'];
	$date_timestamp = $rss1->items[$i]['date_timestamp'];
	echo "<li><a href=\"$href\">$title</a> <span style=\"font-size: small\">(".strftime("%c", $date_timestamp).")</span></li>";
}
echo "</ul>";
?>

It displays the most recent four posts, the post titles linked to the posts, with a timestamp. Since my existing index page was already linked directly from several places I added a redirect directive to index.html:

<meta http-equiv="refresh" content="0;index.php"/>

And I edited my .htaccess page to force index.php to be the default page:

DirectoryIndex index.php

Tweet this!
Send feedback »PermalinkPermalink

10/14/04

04:16:59 pm Permalink PHPWiki

Categories: Content Management

Now available from catalyst2, so now available from boogdesign.com &amp;#58;&amp;#41;

--edit

No longer available &amp;#58;&amp;#40;

I've updated the link to point at the current Wiki.


Tweet this!
Send feedback »PermalinkPermalink