Recent Topics

1 Aug 17, 2007 01:09    

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&amp;path=ASIN/<?php $Blog->disp( 'notes', 'htmlbody' ); ?>&amp;tag=moonchildch-20&amp;camp=1789&amp;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]

3 Aug 19, 2007 16:13

I didn't know about the evoAmazon plugin! I'll have to try it out. It looks to me like the biggest difference is that my way seems less complicated, but also less flexible. No extra tabs and such, but I can only post one book per blog. It's perfect for the sidebar thing, but the plugin would certainly be more useful for [url=http://moonchild.ch/sales/index.php?blog=5]pages like this one[/url]!


Form is loading...