3d – discontents http://discontents.com.au working for the triumph of content over form, ideas over control, people over systems Mon, 13 Sep 2021 04:34:08 +0000 en-US hourly 1 https://wordpress.org/?v=4.8.17 https://creativecommons.org/licenses/by/4.0/ 90077936 Cooliris-enabled scrapbook http://discontents.com.au/cooliris-enabled-scrapbook/ http://discontents.com.au/cooliris-enabled-scrapbook/#comments Mon, 09 Feb 2009 12:08:08 +0000 http://discontents.com.au/?p=659

There’s more 3D goodness for you to enjoy now that the Mapping our Anzacs scrapbook is Cooliris-enabled. If you have Cooliris installed, you’ll notice that the Cooliris icon on your browser toolbar lights up when you visit the site. Just click on the icon to browse all the photos posted to the scrapbook on a glorious 3D wall.

Scrapbook posts in 3D
Scrapbook posts in 3D

(If you don’t have Cooliris then go and get it. It can be used both in Internet Explorer and Firefox, though you’ll probably need to have admin rights to install for IE.)

Having given the 3D treatment to digitised files from the National Archives of Australia and portrait images from the Australian Dictionary of Biography, it wasn’t too hard to do. The scrapbook is a Tumblr site and the api makes it easy to extract all the photos. So I created a php file to gather all the details and then write them to a media-rss file. Then it was just a matter of  inserting a link to it in the scrapbook.

Code follows:

[code language=”php”]

loadHTML($result);
$xpath = new DOMXPath($dom);
$attrs = $xpath->evaluate(“//posts/@total[1]”);
foreach ($attrs as $attr) {
$total = $attr->nodeValue;
}
$num_pages = ceil($total/50);
$start_next = $start+50;
$start_previous = $start-50;

echo “n”;
echo “n”;
echo “n”;
echo “Mapping our Anzacs scrapbookn”;
echo “Photos posted to the Mapping our Anzacs scrapbookn”;
echo “http://our-anzacs.tumblr.comn”;
if ($start_previous >= 0) {
echo ““;
}
if ($start_next <= $total) { echo "
n”;
echo “
n”;
?>

[/code] ]]>
http://discontents.com.au/cooliris-enabled-scrapbook/feed/ 4 https://creativecommons.org/licenses/by/4.0/ 659