<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CoffeeBear.net &#187; Plugins</title>
	<atom:link href="http://coffeebear.net/tag/plugins/feed/" rel="self" type="application/rss+xml" />
	<link>http://coffeebear.net</link>
	<description></description>
	<lastBuildDate>Fri, 10 Feb 2012 00:53:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Fixing Now-Reading’s Admin Menu</title>
		<link>http://coffeebear.net/2009/08/08/fixing-now-readings-admin-menu/</link>
		<comments>http://coffeebear.net/2009/08/08/fixing-now-readings-admin-menu/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 14:49:29 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Now-Reading]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://coffeebear.net/?p=939</guid>
		<description><![CDATA[I like using Now-Reading to track what books I’m currently reading, have read and want to read on my website. Unfortunately the plugin’s author has been too busy of late to update the plugin and one of the recent updates to WordPress caused Now-Reading’s admin menu to break (when using the single menu option). PHP [...]]]></description>
			<content:encoded><![CDATA[<p>I like using <a href="http://robm.me.uk/projects/plugins/wordpress/now-reading/" title="Now-Reading plugin for WordPress">Now-Reading</a> to track what books I’m currently reading, have read and want to read on my website. Unfortunately the plugin’s author has been too busy of late to update the plugin and one of the recent updates to WordPress caused Now-Reading’s admin menu to break (when using the single menu option). PHP is not a programming language that I’m really familiar with but I did some poking around in Now-Reading’s code and found if I changed this snip of code:</p>
<pre name="code" class="php">
	if ( $options['menuLayout'] == NR_MENU_SINGLE ) {

		add_menu_page('Now Reading', 'Now Reading', 9, 'admin.php?page=add_book', 'now_reading_add');

		add_submenu_page('admin.php?page=add_book', 'Add a Book', 'Add a Book',$nr_level , 'add_book', 'now_reading_add');

		add_submenu_page('admin.php?page=add_book', 'Manage Books', 'Manage Books', $nr_level, 'manage_books', 'nr_manage');

		add_submenu_page('admin.php?page=add_book', 'Options', 'Options', 9, 'nr_options', 'nr_options');
</pre>
<p>To read like this:</p>
<pre name="code" class="php">
	if ( $options['menuLayout'] == NR_MENU_SINGLE ) {

		add_menu_page('Now Reading', 'Now Reading', 9, 'add_book', 'now_reading_add');

		add_submenu_page('add_book', 'Add a Book', 'Add a Book',$nr_level , 'add_book', 'now_reading_add');
		add_submenu_page('add_book', 'Manage Books', 'Manage Books', $nr_level, 'manage_books', 'nr_manage');
		add_submenu_page('add_book', 'Options', 'Options', 9, 'nr_options', 'nr_options');
</pre>
<p>Then Now-Reading’s single admin menu worked properly again.</p>
<p><small><a href="http://coffeebear.net/2009/08/08/fixing-now-readings-admin-menu/">Fixing Now-Reading’s Admin Menu</a> © <a href="http://coffeebear.net" rel="cc:attributionURL">Mark McKibben</a>, <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States</a>.</small></p>]]></content:encoded>
			<wfw:commentRss>http://coffeebear.net/2009/08/08/fixing-now-readings-admin-menu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>XBMC-Hulu Update</title>
		<link>http://coffeebear.net/2009/02/04/xbmc-hulu-update/</link>
		<comments>http://coffeebear.net/2009/02/04/xbmc-hulu-update/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 18:45:08 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[hulu]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[videos]]></category>
		<category><![CDATA[xbmc]]></category>
		<category><![CDATA[xbox]]></category>

		<guid isPermaLink="false">http://coffeebear.net/?p=800</guid>
		<description><![CDATA[I’ve been using the Hulu plugin now for a few days and it’s great but I do run into the occasional problem.  So I’ve been following the thread over at XBMC Forums about it as the plugin is under active development.  In a recent post to that thread, one of the developers said: Please use [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve been using the Hulu plugin now for a few days and it’s great but I do run into the occasional problem.  So I’ve been following the thread over at <a title="Hulu Plugin for XBMC (Hulu Plugin Release Thread) | XBMC Community Forum" href="http://xbmc.org/forum/showthread.php?t=42041">XBMC Forums</a> about it as the plugin is under active development.  In a recent post to that thread, one of the developers said:</p>
<blockquote cite="http://xbmc.org/forum/showpost.php?p=278034&amp;postcount=418"><p>Please use the google addons.<br />
Right now google addons is more in sync.</p>
<p>Sometimes I use my personal googlecode just to back stuff up, or sync it between my home computer and the one at work. Anytime I’m ready for you guys to try something out I’ll just stick it in the google addons svn &amp; if it’s broken I’ll just revert it.</p></blockquote>
<p>Which is a good tip as the thread has links to a wide variety of versions of the plugin scattered throughout its 45 pages.  Unfortunately the tip does not really clear things up in my particular case.  As I stated <a title="XBMC + Hulu = GOLD! &amp;laquo; CoffeeBear.net" href="http://coffeebear.net/archives/2009/01/26/xbmc-hulu-gold/">previously</a> I’m using a copy of the plugin from <a title="xbmc-hulu | Google Code" href="http://code.google.com/p/xbmc-hulu/">xbmc-hulu</a>. The developer who made the above comment is recommending people use the version of the plugin from <a title="xbmc-addons | Google Code" href="http://code.google.com/p/xbmc-addons/">xbmc-addons</a> instead of his personal version at <a title="rwparris2 xbmc plugins | Google Code" href="http://code.google.com/p/rwparris2-xbmc-plugins/">rwparris2-xbmc-plugins</a> but makes no mention of the version at <a title="xbmc-hulu | Google Code" href="http://code.google.com/p/xbmc-hulu/">xbmc-hulu</a> which shows that developer’s username as one of the project owners.</p>
<p>Bah.</p>
<p>I suppose I’ll just have to download the <a title="xbmc-addons | Google Code" href="http://code.google.com/p/xbmc-addons/">xbmc-addons</a> version of the hulu plugin, try it out and compare it to the <a title="xbmc-hulu | Google Code" href="http://code.google.com/p/xbmc-hulu/">xbmc-hulu</a> version.  As soon as I’ve had a moment to do so, I’ll post my results.</p>
<p><strong>UPDATE:</strong> I’m not seeing any difference between the <a title="xbmc-addons | Google Code" href="http://code.google.com/p/xbmc-addons/">xbmc-addons</a> &amp; <a title="xbmc-hulu | Google Code" href="http://code.google.com/p/xbmc-hulu/">xbmc-hulu</a> versions so far.  However after reading the thread on <a title="Hulu Plugin for XBMC (Hulu Plugin Release Thread) | XBMC Community Forum" href="http://xbmc.org/forum/showthread.php?t=42041">XBMC Forums</a>, I did go through the trouble of configuring the plugin (under the XBox version -&gt; Videos -&gt; Plugins -&gt; Hulu -&gt; press the white button on your controller).  Setting a default video quality makes using the plugin much nicer (cuts out 2–3 button presses when trying to watch a specific video).  You can enter your Hulu account username/password but there doesn’t appear to be a benefit to doing so yet.</p>
<p><strong>UPDATE2:</strong>Per the <a title="XBMC Community Forum - View Single Post -  Hulu Plugin for XBMC (Hulu Plugin Release Thread)" href="http://xbmc.org/forum/showpost.php?p=279569&amp;postcount=444">XBMC Forums</a>, <a title="xbmc-hulu | Google Code" href="http://code.google.com/p/xbmc-hulu/">xbmc-hulu</a> has been removed in favor the version available via XBMC SVN Repo Installer and the SVN Repo Installer pulls from <a title="xbmc-addons | Google Code" href="http://code.google.com/p/xbmc-addons/">xbmc-addons</a>.</p>
<p><strong>UPDATE:</strong> Per the <a href="http://xbmc.org/forum/showthread.php?p=287677">XBMC-Hulu plugin release thread</a>, there is no currently working version of the plugin.</p>
<p><small><a href="http://coffeebear.net/2009/02/04/xbmc-hulu-update/">XBMC-Hulu Update</a> © <a href="http://coffeebear.net" rel="cc:attributionURL">Mark McKibben</a>, <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States</a>.</small></p>]]></content:encoded>
			<wfw:commentRss>http://coffeebear.net/2009/02/04/xbmc-hulu-update/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Testing… 1…</title>
		<link>http://coffeebear.net/2009/01/11/testing-1/</link>
		<comments>http://coffeebear.net/2009/01/11/testing-1/#comments</comments>
		<pubDate>Sun, 11 Jan 2009 17:55:26 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://coffeebear.net/?p=713</guid>
		<description><![CDATA[I recently added a couple of plugins to this site (and a friend’s that I maintain) to try making administrating them easier.  Both sites also happen to use a plugin to crosspost to LiveJournal and now things are acting flaky. I’ve disabled the most likely culprit and now am writing this post to see if [...]]]></description>
			<content:encoded><![CDATA[<p>I recently added a couple of plugins to this site (and a friend’s that I maintain) to try making administrating them easier.  Both sites also happen to use a plugin to crosspost to LiveJournal and now things are acting flaky.</p>
<p>I’ve disabled the most likely culprit and now am writing this post to see if I’m right about which plugin is causing the problem.  Wish me luck.</p>
<p>Side note: Our snowblower stopped working during the last snow-storm.  The engine runs, but the auger stopped turning.  This weekend we got a bunch more snow, so I opened up the snowblower, figured out what the problem was and fixed it.  I fought the snowblower and I won!  :)  Unfortunately while troubleshooting it, I also fought my vice-grips and the vice-grips won (I’ve got the blood blister and cuts to prove it).</p>
<p><strong>UPDATE:</strong> My first guess was wrong but I’ve figured out which plugin is causing the problem and deactivated it.  For the record, <a href="http://www.phoenixheart.net/2008/11/referrer-detector">Referrer Detector</a> &amp; <a href="http://code.google.com/p/ljxp/">LiveJournal Crossposter</a> do not play nice together.</p>
<p><small><a href="http://coffeebear.net/2009/01/11/testing-1/">Testing… 1…</a> © <a href="http://coffeebear.net" rel="cc:attributionURL">Mark McKibben</a>, <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States</a>.</small></p>]]></content:encoded>
			<wfw:commentRss>http://coffeebear.net/2009/01/11/testing-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Now-Reading Tweaks v2</title>
		<link>http://coffeebear.net/2008/09/12/now-reading-tweaks-v2/</link>
		<comments>http://coffeebear.net/2008/09/12/now-reading-tweaks-v2/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 22:48:58 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Now-Reading]]></category>

		<guid isPermaLink="false">http://coffeebear.net/?p=636</guid>
		<description><![CDATA[Some time back, I tried to make Rob Miller’s Now-Reading plugin display who’s reading each book on the individual pages. But the PHP code I posted at that time didn’t work like I thought it did, my interests changed and I moved onto other things. Today I had a visitor stop by asking about my [...]]]></description>
			<content:encoded><![CDATA[<p>Some <a href="http://coffeebear.net/archives/2008/04/25/now-reading-tweaks/" title="Now-Reading Tweaks | CoffeeBear.net">time back</a>, I tried to make Rob Miller’s <a title="Now-Reading plugin for WordPress" href="http://robm.me.uk/projects/plugins/wordpress/now-reading/">Now-Reading plugin</a> display who’s reading each book on the individual pages.  But the PHP code I posted at that time didn’t work like I thought it did, my interests changed and I moved onto other things.  Today I had a <a href="http://coffeebear.net/archives/2008/04/25/now-reading-tweaks/#comment-24422" title="Comment by elle | Now-Reading Tweaks| CoffeeBear.net">visitor</a> stop by asking about my broken tweak.  So I took another look at the code and I believe I’ve got something that works this time.</p>
<pre name="code" class="php">// Now-Reading Plugin: Get the display name of the book's reader
function mlm_book_reader( $echo=true ) {
	global $book;

	$user_info = get_userdata($book->reader);

	if ( $echo )
		echo $user_info->display_name;
	return $user_info->display_name;

}</pre>
<p>This grabs “Display name publicly as” from the user’s profile and displays it on the page.  I put the function in the functions.php file of the theme I’m using (so any automatic upgrades of the plugin won’t erase it).  Then I put &lt; ?php mlm_book_reader() ?&gt; into my custom single.php template and viola!</p>
<p>Note: this has only been tested on WordPress 2.6.2 with Now-Reading 4.4.3.</p>
<p><small><a href="http://coffeebear.net/2008/09/12/now-reading-tweaks-v2/">Now-Reading Tweaks v2</a> © <a href="http://coffeebear.net" rel="cc:attributionURL">Mark McKibben</a>, <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States</a>.</small></p>]]></content:encoded>
			<wfw:commentRss>http://coffeebear.net/2008/09/12/now-reading-tweaks-v2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Now-Reading: Default Filters on Book-Meta</title>
		<link>http://coffeebear.net/2008/06/05/now-reading-default-filters-on-book-meta/</link>
		<comments>http://coffeebear.net/2008/06/05/now-reading-default-filters-on-book-meta/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 16:01:39 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Now-Reading]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://coffeebear.net/?p=623</guid>
		<description><![CDATA[Ever since upgrading to the latest version of Rob Miller’s Now-Reading plugin, I noticed my single book pages were working but not displaying everything correctly. Specifically books I’d marked having been borrowed from my local library were being displayed as: I borrowed this book fromlibrary When they should simply have a line reading “I borrowed [...]]]></description>
			<content:encoded><![CDATA[<p>Ever since upgrading to the latest version of Rob Miller’s <a title="Now-Reading | Roblog" href="http://robm.me.uk/projects/plugins/wordpress/now-reading">Now-Reading</a> plugin, I noticed my single book pages were <em>working</em> but not displaying everything correctly.  Specifically books I’d marked having been borrowed from my local library were being displayed as:</p>
<blockquote>
<ul>
<li>I borrowed this book fromlibrary</li>
</ul>
</blockquote>
<p>When they should simply have a line reading “I borrowed this book from my local library”.  I had spent much<br />
time fiddling with my templates trying to figure out how the upgrade broke them and today I figured it out.  The truth is my template was just fine.  The problem is the newer version of Now-Reading was applying a new filter to book-meta<sup>1</sup>.  That filter is <a title="Function Reference/wpautop | WordPress Codex" href="http://codex.wordpress.org/Function_Reference/wpautop">wpautop</a> and it was wrapping my variable in &lt;p&gt; … &lt;/p&gt; tags.  Those tags screwed up the display and made my variable checks fail.  To correct the problem, I went into now-reading/default-filters.php and commented out <code>add_filter('book_meta_val', 'wpautop');</code>.  Now my single book pages look like they’re supposed to again.  Yeah!</p>
<p><sup>1</sup> This is a custom field available in the back-end of the plugin and it is where I store the information telling my template if I borrowed the book and from whom I borrowed it.</p>
<p><small><a href="http://coffeebear.net/2008/06/05/now-reading-default-filters-on-book-meta/">Now-Reading: Default Filters on Book-Meta</a> © <a href="http://coffeebear.net" rel="cc:attributionURL">Mark McKibben</a>, <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States</a>.</small></p>]]></content:encoded>
			<wfw:commentRss>http://coffeebear.net/2008/06/05/now-reading-default-filters-on-book-meta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Now-Reading Tweaks</title>
		<link>http://coffeebear.net/2008/04/25/now-reading-tweaks/</link>
		<comments>http://coffeebear.net/2008/04/25/now-reading-tweaks/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 19:14:41 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Books]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Now-Reading]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Upgrade]]></category>

		<guid isPermaLink="false">http://coffeebear.net/?p=617</guid>
		<description><![CDATA[I use Rob Miller’s excellent Now-Reading plugin to track all the books I’ve read and am reading here at CoffeeBear. After my recent site upgrade I decided to tweak the single book template for my library. I noticed that the latest version of Now-Reading allows you to note who read a given book on multiuser [...]]]></description>
			<content:encoded><![CDATA[<p>I use Rob Miller’s excellent <a title="Now-Reading plugin for WordPress" href="http://robm.me.uk/projects/plugins/wordpress/now-reading/">Now-Reading plugin</a> to track all the books I’ve read and am reading here at CoffeeBear. After my recent <a title="WordPress Upgrade | CoffeeBear.net" href="http://coffeebear.net/archives/2008/04/23/wordpress-upgrade/">site</a> <a title="Library Fixed and Other Changes | CoffeeBear.net" href="http://coffeebear.net/archives/2008/04/23/library-fixed-and-other-changes/">upgrade</a> I decided to tweak the single book template for my library. I noticed that the latest version of Now-Reading allows you to note who read a given book on multiuser sites. As my wife occassionally posts here I wanted my reads to be marked as mine, but the default output of the function Rob implemented only displays the user’s login name. Seriously Rob, what were you thinking? If you did not want to give end users the option to select how they want their name to print out why wouldn’t you go with display_name?</p>
<p>I looked at the code Rob used and with a little help from the <a title="Practical PHP Programming" href="http://hudzilla.org/phpwiki/">Practical PHP</a> I hacked together my own function based on Rob’s. By default print_reader2 works the exactly the same as print_reader<sup>1</sup> but by feeding it an additional parameter, you get your choice of what to use to display as reader’s name:</p>
<ul>
<li>0: Prints out the user_login aka the username you use to log into WordPress.</li>
<li>1: Prints user_nicename, appears to simply be an all lower case version of the user’s nickname<sup>2</sup>.</li>
<li>2: Prints display_name, from the “Display name publicly as” field in your WordPress profile.</li>
<li>3: Prints first_name, from the “First name” field in your WordPress profile.</li>
<li>4: Prints nickname, from the “Nickname” field in your WordPress profile.</li>
</ul>
<pre name="code" class="php">function print_reader2( $echo=true, $reader_id = 0, $display = 0 ) {
	global $userdata;

	$username='';

	switch($display) {
		case "1": if (!$reader_id) { get_currentuserinfo(); $username = $userdata-&gt;user_nicename; } else { $user_info = get_userdata($reader_id); $username = $user_info-&gt;user_nicename; }; break;
		case "2": if (!$reader_id) { get_currentuserinfo(); $username = $userdata-&gt;display_name; } else { $user_info = get_userdata($reader_id); $username = $user_info-&gt;display_name; }; break;
		case "3": if (!$reader_id) { get_currentuserinfo(); $username = $userdata-&gt;first_name; } else { $user_info = get_userdata($reader_id); $username = $user_info-&gt;first_name; }; break;
		case "4": if (!$reader_id) { get_currentuserinfo(); $username = $userdata-&gt;nickname; } else { $user_info = get_userdata($reader_id); $username = $user_info-&gt;nickname; }; break;
		default: if (!$reader_id) { get_currentuserinfo(); $username = $userdata-&gt;user_login; } else { $user_info = get_userdata($reader_id); $username = $user_info-&gt;user_login;};
   }
	if ($echo)
		echo $username;
	return $username;
}</pre>
<p><strong>Side note:</strong> WordPress 2.5.1 got released today and it includes a security fix, be sure to update your blogs!</p>
<p><sup>1</sup> At least, I think it does. I’m not a programmer and I only know enough PHP to be dangerous to myself.<br />
<sup>2</sup> The <a title="WordPress Codex" href="http://codex.wordpress.org/">WordPress Codex</a> does not appear to define what this field is used for or why it exists, so that’s just my guess.</p>
<p><small><a href="http://coffeebear.net/2008/04/25/now-reading-tweaks/">Now-Reading Tweaks</a> © <a href="http://coffeebear.net" rel="cc:attributionURL">Mark McKibben</a>, <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States</a>.</small></p>]]></content:encoded>
			<wfw:commentRss>http://coffeebear.net/2008/04/25/now-reading-tweaks/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Library Fixed and Other Changes</title>
		<link>http://coffeebear.net/2008/04/23/library-fixed-and-other-changes/</link>
		<comments>http://coffeebear.net/2008/04/23/library-fixed-and-other-changes/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 15:40:42 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Now-Reading]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://coffeebear.net/?p=616</guid>
		<description><![CDATA[The library issues I was having appear to be resolved. When I upgraded WordPress, I simply overwrote the existing files (‘cuz I’m lazy) and then I went into my permalink settings and hit the update button (without actually making any changes). This is supposed to be enough to get the plugin I use for the [...]]]></description>
			<content:encoded><![CDATA[<p>The library issues I was having appear to be resolved.  When I upgraded WordPress, I simply overwrote the existing files (‘cuz I’m lazy) and then I went into my permalink settings and hit the update button (without actually making any changes).  This is supposed to be enough to get the plugin I use for the library to reset the permalinks but that didn’t happen this time.  I ended up deleting all of WordPress’ core file, re-uploading them, changing my webhost’s configuration to support PHP5, upgrading to the very latest copy of the plugin and re-saving my permalink settings before I was able to get the library working correctly again.</p>
<h3>Other Changes</h3>
<p>I also noticed when I upgraded/changed themes last time I forgot to add back in the magic codes to have ads from Google AdSense appear in a couple of places on my site.  Those are ads are now back, though I do use another plugin to hide them from regular readers and on current content.  Basically, if you are just stopping by (e.g. found me via a search engine) you will see ads.  If you’ve been here a few times in the past couple of weeks, then you most likely won’t.  Mind you these ads aren’t making me rich<sup>1</sup>, but they do help offset the costs of <strike>my online addiction</strike> webhosting.</p>
<h4>New Theme</h4>
<p>Yeah, I wasn’t a big fan of the previous theme I was using but it was good enough for a short term solution.  The current theme<sup>2</sup> is better but still needs more tweaks to make it mine.  Things are likely to be in a state of flux until further notice around here.  Things I still need to do:</p>
<ul>
<li>Add one or more random photos to the sidebar or possibly the footer.</li>
<li>
</li>
<li>Work up a better header image.</li>
<li>Style the footer more to my liking.</li>
<li>Fix the sidebar formatting issues in <abbr title="Internet Explorer">IE</abbr><sup>3</sup></li>
</ul>
<p><sup>1</sup> I haven’t even had enough clicks on the silly Google AdSense ads to get paid yet<br />
<sup>2</sup> In case you happen to be curious, it’s a slightly tweaked version of the <a href="http://sndbx.org/results/designs/shades-of-gray/" title ="Shades of Gray | Sandbox Designs Competition">Shades of Gray</a> style for the <a href="http://www.plaintxt.org/themes/sandbox/" title="Sandbox theme | PlainTxt.org">Sandbox</a> theme.<br />
<sup>3</sup> Odds of this happening are tiny.  I only use IE at work and then only rarely.  If the slight offsets in the sidebar offends your design sensibilites, get <a href="http://www.spreadfirefox.com/node&amp;id=56767&amp;t=1">Firefox</a>!</p>
<p><small><a href="http://coffeebear.net/2008/04/23/library-fixed-and-other-changes/">Library Fixed and Other Changes</a> © <a href="http://coffeebear.net" rel="cc:attributionURL">Mark McKibben</a>, <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States</a>.</small></p>]]></content:encoded>
			<wfw:commentRss>http://coffeebear.net/2008/04/23/library-fixed-and-other-changes/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>WordPress Plugins: PHPInfo and PluginsUsedPlugin</title>
		<link>http://coffeebear.net/2007/12/10/wordpress-plugins-phpinfo-and-pluginsusedplugin/</link>
		<comments>http://coffeebear.net/2007/12/10/wordpress-plugins-phpinfo-and-pluginsusedplugin/#comments</comments>
		<pubDate>Mon, 10 Dec 2007 18:49:29 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://coffeebear.net/archives/2007/12/10/wordpress-plugins-phpinfo-and-pluginsusedplugin/</guid>
		<description><![CDATA[I’ve been working on some stuff behind the scenes here at CoffeeBear.net with the intention of eventually upgrading the site’s backend and developing a new theme for the site. In the process of doing all this behind the scenes works, I’ve been trying out new plugins and wanted a quick way to check my server’s [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve been working on some stuff behind the scenes here at CoffeeBear.net with the intention of eventually upgrading the site’s backend and developing a new theme for the site.  In the process of doing all this behind the scenes works, I’ve been trying out new plugins and wanted a quick way to check my server’s setup without putting a page for just anybody to view (e.g. creating my own <a href="http://us3.php.net/manual/en/function.phpinfo.php" title="PHP: phpinfo - Manual">phpinfo</a> page).  I found this a <a href="http://wordpress.designpraxis.at/plugins/phpinfo/" title="Phpinfo | WordPress Designpraxis">plugin</a> by Designpraxis which basically adds the output from phpinfo to WordPress’s admin panel.  Unfortunately, it buries the page/info under the Options panel.  So I hacked it up to move the output under the Dashboard panel.  Then I thought, it would be great if it could also list off all the plugins my site uses and what version of those plugins.  I already have the <a href="http://www.andrewsw.com/pages/pluginsUsedPlugin" title="pluginsUsedPlugin | AndrewSW">pluginsUsedPlugin</a> installed but it didn’t support plain-text output.  So I hacked it up to output in plain-text, hacked up Phpinfo to include that plain-text output and then there was much rejoicing.</p>
<p>I thought it only fair to share my hacks, so enjoy or not as you choose. I’m sure there’s a more elegant way to code these changes, but I am not a programmer so if you use these and don’t like how I changed them…  Well, you just have to suffer then.  :p  Feel free to ask questions but keep in mind:</p>
<ul>
<li>I’m not a programmer.</li>
<li>These plugins aren’t originally mine.  I don’t know much about how they work.  I only know enough to hack together my changes.</li>
<li>If my hacked versions don’t work for you, try the originals before asking me for help.  The people who made the originals should have a better idea of why things work/don’t work.</li>
</ul>
<h4>CoffeeBear’s Hacked Plugins</h4>
<ul>
<li>Download <a href="http://coffeebear.net/wp-content/uploads/2007/12/phpinfo-11b.zip" title="PHPInfo 1.1b | CoffeeBear.net">PHPInfo 1.1b</a>.</li>
<li>Download <a href="http://coffeebear.net/wp-content/uploads/2007/12/pluginsusedplugin-0111b.zip" title="pluginsUsedPlugin 0.1.11b | CoffeeBear.net">pluginsUsedPlugin 0.1.11b</a>.
</li>
</ul>
<p><small><a href="http://coffeebear.net/2007/12/10/wordpress-plugins-phpinfo-and-pluginsusedplugin/">WordPress Plugins: PHPInfo and PluginsUsedPlugin</a> © <a href="http://coffeebear.net" rel="cc:attributionURL">Mark McKibben</a>, <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States</a>.</small></p>]]></content:encoded>
			<wfw:commentRss>http://coffeebear.net/2007/12/10/wordpress-plugins-phpinfo-and-pluginsusedplugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Text-Link-Ads Updated</title>
		<link>http://coffeebear.net/2007/11/15/text-link-ads-updated/</link>
		<comments>http://coffeebear.net/2007/11/15/text-link-ads-updated/#comments</comments>
		<pubDate>Fri, 16 Nov 2007 01:05:15 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[tla]]></category>

		<guid isPermaLink="false">http://coffeebear.net/archives/2007/11/15/text-link-ads-updated/</guid>
		<description><![CDATA[Text-Link-Ads is a nice service which I use to help pay the bills for running this site. They just released a new version of their WordPress plugin which I use to put their adverts on this site, so I installed it but in doing so it overwrote a couple of changes I’d made to the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://tinyurl.com/2unbaa" title="Text-Link-Ads">Text-Link-Ads</a> is a nice service which I use to help pay the bills for running this site.  They just released a new version of their WordPress plugin which I use to put their adverts on this site, so I installed it but in doing so it overwrote a couple of changes I’d made to the old plugin.  I had made those changes as I like the service and I definitely like the additional income<sup>1</sup>, but I don’t like how the plugin makes the ad links less than obviously ads.  So my changes in the plugin add a specific class which I can then style via <abbr title="Cascading Style Sheets">CSS</abbr>.  Since I don’t want to have to keep redoing my customizations from scratch each time they release the plugin; I’m posting the code changes I make here.</p>
<p>Under <strong>function outputHtmlAds()</strong>, I changed the following line of code from:<br />
<code>echo "\n&lt;ul&gt;\n";&lt;/ul&gt;</code></p>
<p>to:<br />
<code>echo "\n&lt;ul class=\"tla_sponsor_link\"&gt;\n";&lt;/ul&gt;</code></p>
<p>Also under <strong>function returnPostAd($postId)</strong>, I changed:<br />
<code>return "\n\n&lt;em&gt;".$prefixes[$prefixIndex].":&lt;/em&gt; $ad->before_text &lt;a href=\"$ad->url\">$ad->text&lt;/a&gt; $ad->after_text";</code></p>
<p>to:<br />
<code>return "\n\n&lt;div class=\"tla_sponsor_link\"&gt;&lt;em>".$prefixes[$prefixIndex].":&lt;/em&gt; $ad->before_text &lt;a href=\"$ad->url\">$ad->text&lt;/a&gt; $ad->after_text&lt;/div&gt;";</code></p>
<p>Side note: <a href="http://tinyurl.com/2unbaa" title="Text-Link-Ads">TLA</a>, you guys should change the <a href="http://www.text-link-ads.com/our_blog.php">Our Blog</a> to be called something else as the link doesn’t actually take users to your <a href="http://www.linkbuildingblog.com/" title="Link Building Blog by Text-Links-Ads">blog</a>.</p>
<p><sup>1</sup> I don’t make enough from these ads to get rich mind you.  Just enough to cover the costs of running CoffeeBear.net and maybe a cup of good coffee from my local coffee shop.</p>
<p><small><a href="http://coffeebear.net/2007/11/15/text-link-ads-updated/">Text-Link-Ads Updated</a> © <a href="http://coffeebear.net" rel="cc:attributionURL">Mark McKibben</a>, <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States</a>.</small></p>]]></content:encoded>
			<wfw:commentRss>http://coffeebear.net/2007/11/15/text-link-ads-updated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert from AMM to Now Reading</title>
		<link>http://coffeebear.net/2007/02/18/convert-from-amm-to-now-reading/</link>
		<comments>http://coffeebear.net/2007/02/18/convert-from-amm-to-now-reading/#comments</comments>
		<pubDate>Sun, 18 Feb 2007 19:00:22 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WebDev]]></category>

		<guid isPermaLink="false">http://coffeebear.net/archives/2007/02/18/convert-from-amm-to-now-reading/</guid>
		<description><![CDATA[As part of my upgrading to the latest/greatest version of WordPress, I switched over to using the Now Reading plugin from AMM. I switched because development on AMM seems to have come to a complete halt and it was acting somewhat flaky prior to the upgrade. One of the big problems with switching over was [...]]]></description>
			<content:encoded><![CDATA[<p>As part of my upgrading to the latest/greatest version of WordPress, I switched over to using the <a href="http://robm.me.uk/projects/plugins/wordpress/now-reading/">Now Reading</a> plugin from <a href="http://www.sozu.co.uk/software/amm/" title="Amazon Media Manager">AMM</a>.  I switched because development on AMM seems to have come to a complete halt and it was acting somewhat flaky prior to the upgrade.  One of the big problems with switching over was I didn’t want to have to manually enter in all books I’d already read and rated.  As Now Reading supports storing so much more data, I had to write a bit of custom SQL to import my existing info.  It’s not a great solution, mostly because AMM didn’t store all of the same info (e.g. date entered, started and finished).<br />
<code>INSERT INTO wp_now_reading(b_added, b_started, b_finished, b_title, b_nice_title, b_author, b_nice_author, b_image, b_asin, b_status, b_rating, b_review)<br />
SELECT amm_dateadded, amm_dateadded, amm_dateadded, amm_title,<br />
REPLACE(REPLACE(REPLACE(<br />
REPLACE(REPLACE(REPLACE(<br />
REPLACE(REPLACE(REPLACE(<br />
REPLACE(REPLACE(LCASE(amm_title), ',', '' ), ')', '' ), '(', '' )<br />
, ' ', '-' ), '...', '-' ), ':', '-' )<br />
, '!', '-' ), '?', '-' ), '&amp;', '-' )<br />
, '\'', '' ), '--', '-' ), amm_author, REPLACE(REPLACE(REPLACE( LCASE( amm_author ) , '.', '' ) , '&amp;', 'and' ) , ' ', '-' ), amm_smallImageURL, amm_asin, 'read', amm_rating *2, amm_userComments<br />
FROM wp_amm amm<br />
WHERE amm_ProductGroup = 'Book' AND amm_asin NOT IN (SELECT b_asin FROM wp_now_reading);</code></p>
<p>This short script copied over all my books for me and got everything setup as well as could be expected given the differences in the data. Below is a list of the assumptions I made in writing this script to convert to Now Reading:</p>
<ul>
<li>AMM only stores one date, so I used that for all dates on the books I copied over.</li>
<li>The above script limit itself to books and skips any already in your wp_now_reading table.</li>
<li>Now Reading has additional fields the title &amp; author.  I’m not sure what the “b_nice_author” field is used for, but the “b_nice_title” is used when you go to edit a specific book.  The format of the “b_nice_” fields seems to be to replace anything other than a letter or a number with a hyphen and to have all the letters be lower case.  I tried to make sure I did the same with my script, however you may need to double-check your data before running this to make sure I didn’t miss a symbol you used.</li>
<li>I marked all the books I was copying over as “read”.</li>
<li>AMM only allowed ratings of 1 — 5; while Now Reading allows 1 — 10.  So when I copied the ratings over, I doubled them.</li>
</ul>
<p><strong>NOTE: </strong>If you have questions about this script, post them in the comments here.  Keep in mind that I’m not providing full fledged support for the script and if you don’t know how to run this without asking, then you probably shouldn’t be messing with it. Also, if you’re really going to try running this script, then for god’s sake backup your database <em>FIRST</em>!</p>
<p><small><a href="http://coffeebear.net/2007/02/18/convert-from-amm-to-now-reading/">Convert from AMM to Now Reading</a> © <a href="http://coffeebear.net" rel="cc:attributionURL">Mark McKibben</a>, <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States</a>.</small></p>]]></content:encoded>
			<wfw:commentRss>http://coffeebear.net/2007/02/18/convert-from-amm-to-now-reading/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 2/43 queries in 0.212 seconds using disk: basic
Object Caching 1282/1369 objects using disk: basic

Served from: coffeebear.net @ 2012-02-10 14:59:26 -->
