I know lots of people like to include [url=http://www.balupton.com/blogs/b2evo?title=last_fm_plugin&more=1&c=1&tb=1&pb=1]what they're listening to[/url] on their blogs, but I'm more of a reader. So I finally got around to making a little feature that shows what I'm reading. All that's necessary is to type in the ISBN in the back office, and it displays the book cover and links it to Amazon.com.
In the skin's _main.php, I added:
<div class="bSideItem">
<?php
/**
* --------------------------- WHAT I'M READING INCLUDED HERE -----------------------------
*/
require( dirname(__FILE__).'/../_reading.php' );
// ----------------------------- END OF WHAT I'M READING ---------------------------- ?>
</div>
I created a file called _reading.php, and put it in the skins folder.
<?php
/**
* This is the template that displays what I'm reading
*
* This file is not meant to be called directly.
* It is meant to be called by an include in the _main.php template.
*
* b2evolution - {@link http://b2evolution.net/}
* Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
* @copyright (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/}
*
* @package evoskins
*/
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
?>
<h4>What I'm reading:</h4><p align="center">
<a href="http://www.amazon.com/exec/obidos/redirect?link_code=as2&path=ASIN/<?php $Blog->disp( 'notes', 'htmlbody' ); ?>&tag=moonchildch-20&camp=1789&creative=9325">
<img src="http://images.amazon.com/images/P/<?php $Blog->disp( 'notes', 'htmlbody' ); ?>.01.MZZZZZZZ.jpg" alt="what I'm reading" title="what I'm reading" /></a>
</p>
I simply enter the ISBN in the Notes field under the Advanced tab of the Blog Settings and viola! All proceeds go to [url=http://www.circleoflife.org]Circle of Life[/url].
[url=http://www.moonchild.ch/blog/index.php]See it in the sidebar of my blog.[/url]
Looks pretty neat... Can you perhaps outline briefly what this offers that the evoAmazon plugin ( http://b2evo.astonishme.co.uk/index.php/2006/10/12/evoamazon ) does not or vice versa, so that users will have a better idea of which of the two options is the right one for them?
jj.