<?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; PHP</title>
	<atom:link href="http://coffeebear.net/tag/php/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>Author Pages with hCard &amp; jQuery</title>
		<link>http://coffeebear.net/2010/01/18/author-pages-with-hcard-jquery/</link>
		<comments>http://coffeebear.net/2010/01/18/author-pages-with-hcard-jquery/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 05:00:48 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[hCard]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[microformats]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Theme]]></category>

		<guid isPermaLink="false">http://coffeebear.net/?p=972</guid>
		<description><![CDATA[While I’m definitely not the designer that any of the people who created these beautiful hCards, I was greatly impressed by them. In particular, I liked the personal hCard created by Tim Van Damme and decided to make my own version of it. Only since I’m using WordPress rather; than a static site, I wanted [...]]]></description>
			<content:encoded><![CDATA[<p>While I’m definitely not the designer that any of the people who created these <a title="hCard Examples in the wild" href="http://microformats.org/wiki/hcard-examples-in-wild">beautiful hCards</a>, I was greatly impressed by them. In particular, I liked the personal hCard created by <a href="http://timvandamme.com/">Tim Van Damme</a> and decided to make my own version of it. Only since I’m using WordPress rather; than a static site, I wanted the page to be generated automatically from info stored with my user profile within WordPress. Unfortunately WordPress does not by default store all the information I wanted to display as part of the user profile.</p>
<p>Initially when I setup the author page, I used the <a title="WordPress &amp;#8250; Cimy User Extra Fields &amp;laquo; WordPress Plugins" href="http://wordpress.org/extend/plugins/cimy-user-extra-fields/">Cimy User Extra Fields</a> plugin to get those extra fields; however in the words of Lord Downey, “It, uh … lacked elegance.” Don’t get me wrong, Marco Cimmino has created a very powerful and useful plugin. My problem is that it’s too complicated for what I want to do. Then almost as though the WordPress developers read my mind, the release of WordPress 2.9 included a new filter making it simple to add/remove new fields to the user profile page.  So easy in fact that the following bit of PHP code added to my theme’s function.php file was all that was required to add the fields I needed.</p>
<pre class="brush: php; title: ; notranslate">function vl2_contactmethods( $contactmethods ) {
 // Add Twitter
 $contactmethods['twitter'] = 'Twitter';
 //add Facebook
 $contactmethods['facebook'] = 'Facebook';
 //add flickr
 $contactmethods['flickr'] = 'Flickr';
 //add linkedin
 $contactmethods['linkedin'] = 'LinkedIn';
 //add delicious
 $contactmethods['delicious'] = 'Delicious';
 //add phone
 $contactmethods['phone'] = 'Phone';
 //add phone-type
 $contactmethods['phonetype'] = 'Phone Type';
 //add locality
 $contactmethods['locality'] = 'Locality';
 //add region
 $contactmethods['region'] = 'Region';
 //add postalcode
 $contactmethods['postalcode'] = 'Postal Code';
 //add country
 $contactmethods['country'] = 'Country';

 return $contactmethods;
 }
 add_filter('user_contactmethods','vl2_contactmethods',10,1);</pre>
<p>Of course just storing the info with the user’s profile isn’t enough; we also need to be able to pull it back out. This can be done using either the_author_meta or get_the_author_meta. I ended up using get_the_author_meta for two reasons:</p>
<p>1. I’m pulling the author’s meta info outside of the Loop.<br />
2. I wanted to return, not echo the values, so I can manipulate them before displaying them.</p>
<p>But that still wasn’t complicated enough, after all I started this project wanting to generate an hCard, using some jQuery UI to give it a fancy accordion effect. First we load the javascript for that accordion effect, by adding the following to our author.php file.</p>
<pre class="brush: jscript; title: ; notranslate">&lt;script type=&quot;text/javascript&quot;&gt;
 $(function() {
 $(&quot;#accordion&quot;).accordion();
 });
 &lt;/script&gt;</pre>
<p>Next we get all the user fields by:</p>
<pre class="brush: php; title: ; notranslate">&lt;?php if(isset($_GET['author_name'])) :
 // NOTE: 2.0 bug requires: get_userdatabylogin(get_the_author_login());
 $curauth = get_userdatabylogin($author_name);
 $id = $curauth-&gt;ID;
 else :
 $curauth = get_userdata(intval($author));
 $id = $curauth-&gt;ID;
 endif;

 $twitter = get_the_author_meta('twitter', $id);
 $flickr = get_the_author_meta('flickr', $id);
 $linkedin = get_the_author_meta('linkedin', $id);
 $delicious = get_the_author_meta('delicious', $id);
 $lastfm = get_the_author_meta('lastfm', $id);
 $phone = get_the_author_meta('phone', $id);
 $ptype = get_the_author_meta('phone-type', $id);
 $addr = get_the_author_meta('addr', $id);
 $locality = get_the_author_meta('locality', $id);
 $region = get_the_author_meta('region', $id);
 $postalcode = get_the_author_meta('postalcode', $id);
 $country = get_the_author_meta('country', $id);
 ?&gt;</pre>
<p>Now that we’ve got the data and the JavaScript; we need to combine it</p>
<pre class="brush: php; title: ; notranslate">&lt;div id=&quot;authorbox&quot;&gt;
 &lt;?php if (function_exists('get_avatar')) { echo get_avatar((get_the_author_meta('user_email', $id)), '120'); }?&gt;
 &lt;div id=&quot;accordion&quot;&gt;
 &lt;h3&gt;&lt;a href=&quot;#&quot;&gt;About&lt;/a&gt; &lt;span&gt;&lt;span&gt;&lt;?php echo $curauth-&gt;first_name; ?&gt;&lt;/span&gt; &lt;span&gt;&lt;?php echo $curauth-&gt;last_name; ?&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
 &lt;div id=&quot;about&quot;&gt;
 &lt;p&gt;&lt;?php echo $curauth-&gt;description; ?&gt;&lt;/p&gt;
 &lt;/div&gt; &lt;!-- #about --&gt;
 &lt;h3&gt;&lt;a href=&quot;#&quot;&gt;Contact&lt;/a&gt;&lt;/h3&gt;
 &lt;div id=&quot;contact&quot;&gt;
 &lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;?php echo $ptype; ?&gt;&lt;/span&gt;&lt;a href=&quot;callto:&lt;?php echo $phone; ?&gt;&quot;&gt;&lt;?php echo $phone; ?&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
 &lt;p&quot;&gt;&lt;a href=&quot;&lt;?php echo get_the_author_meta('user_url', $id); ?&gt;&quot; rel=&quot;me&quot;&gt;&lt;?php echo get_the_author_meta('user_url', $id); ?&gt;&lt;/a&gt;&lt;/p&gt;
 &lt;p&gt;&lt;span&gt;&lt;?php echo $addr; ?&gt;&lt;/span&gt;&lt;br/&gt;
 &lt;span&gt;&lt;?php echo $locality; ?&gt;&lt;/span&gt;, &lt;span&gt;&lt;?php echo $region; ?&gt;&lt;/span&gt; &lt;span&gt;&lt;?php echo $postalcode; ?&gt;&lt;/span&gt;&lt;br/&gt;&lt;span&gt;&lt;?php echo $country; ?&gt;&lt;/span&gt;&lt;/p&gt;
 &lt;/div&gt; &lt;!-- #contact --&gt;
 &lt;h3&gt;&lt;a href=&quot;#&quot;&gt;Networks&lt;/a&gt;&lt;/h3&gt;
 &lt;div id=&quot;social-networks&quot;&gt;
 &lt;ul&gt;
 &lt;li&gt;&lt;a title=&quot;View &lt;?php echo $curauth-&gt;first_name; ?&gt; &lt;?php echo $curauth-&gt;last_name; ?&gt;'s Profile&quot; href=&quot;http://www.linkedin.com/in/&lt;?php echo $linkedin ?&gt;&quot;&gt;&lt;img src=&quot;&lt;?php bloginfo('template_directory'); ?&gt;/images/linkedin.png&quot; alt=&quot;LinkedIn&quot; width=&quot;48&quot; height=&quot;48&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a title=&quot;Follow &lt;?php echo $twitter ?&gt; on Twitter&quot; href=&quot;http://twitter.com/&lt;?php echo $twitter ?&gt;&quot;&gt;&lt;img src=&quot;&lt;?php bloginfo('template_directory'); ?&gt;/images/twitter.png&quot; width=&quot;48&quot; height=&quot;48&quot; alt=&quot;Twitter&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a title=&quot;See &lt;?php echo $flickr ?&gt;'s photostream&quot; href=&quot;http://www.flickr.com/photos/&lt;?php echo $flickr ?&gt;&quot;&gt;&lt;img src=&quot;&lt;?php bloginfo('template_directory'); ?&gt;/images/flickr.png&quot; alt=&quot;Flickr&quot; width=&quot;48&quot; height=&quot;48&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a title=&quot;&lt;?php echo $delicious ?&gt;'s Bookmarks&quot; href=&quot;http://delicious.com/&lt;?php echo $delicious ?&gt;&quot;&gt;&lt;img src=&quot;&lt;?php bloginfo('template_directory'); ?&gt;/images/delicious.png&quot; alt=&quot;Delicious&quot; width=&quot;48&quot; height=&quot;48&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
 &lt;/ul&gt;
 &lt;/div&gt; &lt;!-- #social-networks --&gt;
 &lt;h3&gt;&lt;a href=&quot;#&quot;&gt;&lt;?php echo $curauth-&gt;first_name; ?&gt;'s Last 5 Posts&lt;/a&gt;&lt;/h3&gt;
 &lt;?php $my_query = new WP_Query('showposts=5&amp;author='.$id); ?&gt;
 &lt;div id=&quot;5posts&quot;&gt;
 &lt;ul&gt;
 &lt;?php if ($my_query-&gt;have_posts()) : while ($my_query-&gt;have_posts()) : $my_query-&gt;the_post(); ?&gt;
 &lt;li&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &lt;?php the_title_attribute(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt; &lt;?php the_time('j F Y'); ?&gt;&lt;/li&gt;
 &lt;?php endwhile; ?&gt;
 &lt;/ul&gt;
 &lt;/div&gt; &lt;!-- #5posts --&gt;
 &lt;/div&gt;&lt;!-- #accordion --&gt;
 &lt;/div&gt;&lt;!-- #authorbox --&gt;
 &lt;?php else : ?&gt;
 &lt;h2&gt;Not Found&lt;/h2&gt;
 &lt;p&gt;Sorry, but you are looking for something that isn't here.&lt;/p&gt;
 &lt;?php endif; ?&gt;</pre>
<p>Oops, I almost forgot to mention; we need to make sure we’re loading jQuery &amp; jQuery UI on the author page. Since I separate out the header stuff into it’s own file (header.php); I added this bit of code before the closing &lt;/head&gt; tag in that file:</p>
<pre class="brush: php; title: ; notranslate">&lt;?php //if (is_author()) wp_enqueue_script('jquery-ui-core');
if (is_author()) {
 wp_deregister_script('jquery');
 wp_register_script('jquery', (&quot;http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js&quot;), false, '');
 wp_deregister_script('jquery-ui-core');
 wp_register_script('jquery-ui-core', (&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js&quot;), array('jquery'), '');
 wp_enqueue_script('jquery');
 wp_enqueue_script('jquery-ui-core');
} ?&gt;</pre>
<p>And that’s that. Now my author page will by default display my gravatar next to the Biographical Info entered in my profile. There will also be three other section available…</p>
<p>* Contact: Gives selected contact information for me.<br />
* Networks: Displays icons for some social networks I use with links to my profiles on those networks.<br />
* Last 5 Posts: Shows my latest posts.</p>
<p>Later when I have more time, I’ll update the zipped copy of the VectorLover2 theme on this site for people who want to download a complete copy of the code I used for the author pages.</p>
<p>Update: I forgot to thank Joost de Valk for his excellent article, <a title="User Contact Fields in WordPress 2.9 - Yoast" href="http://yoast.com/user-contact-fields-wp29/">User Contact Fields in WordPress 2.9</a>.<br />
Update 2: I changed the code to register jquery-ui-core, so that it recognizes jquery as a dependency. This tutorial had been working fine; but for whatever reason, it suddenly was trying to load jQuery after jQuery-UI (which doesn’t work so good).<br />
Update 3: Hmm, now that I look back at this old post I realize a couple of things: 1) several of the links I’d intended to be here are missing (since corrected) and 2) this post was written worse than I thought it was.</p>
<p><small><a href="http://coffeebear.net/2010/01/18/author-pages-with-hcard-jquery/">Author Pages with hCard &amp; jQuery</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/2010/01/18/author-pages-with-hcard-jquery/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<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>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>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>Are you part of my crew?</title>
		<link>http://coffeebear.net/2006/03/05/are-you-part-of-my-crew/</link>
		<comments>http://coffeebear.net/2006/03/05/are-you-part-of-my-crew/#comments</comments>
		<pubDate>Sun, 05 Mar 2006 05:23:15 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Quizzes]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Quiz]]></category>
		<category><![CDATA[Sci-fi]]></category>

		<guid isPermaLink="false">http://coffeebear.net/?p=425</guid>
		<description><![CDATA[You scored as Serenity (Firefly). You like to live your own way and don’t enjoy when anyone but a friend tries to tell you should do different. Now if only the Reavers would quit trying to skin you. Serenity (Firefly) 94% Babylon 5 (Babylon 5) 81% Deep Space Nine (Star Trek) 81% Nebuchadnezzar (The Matrix) [...]]]></description>
			<content:encoded><![CDATA[<table border='0' cellpadding='5' cellspacing='0' width='600'>
<tr>
<td><img src='http://images.quizfarm.com/1133592712Serenity.jpg'/></td>
<td> You scored as <b>Serenity (Firefly)</b>. You like to live your own way and don’t enjoy when anyone but a friend tries to tell you should do different.  Now if only the Reavers would quit trying to skin you.</p>
<table border='0' width='300' cellspacing='0' cellpadding='0'>
<tr>
<td>
<p><font face='Arial' size='1'>Serenity (Firefly)</font></p>
</td>
<td>
<table border='1' cellpadding='0' cellspacing='0' width='94' bgcolor='#dddddd'>
<tr>
<td></td>
</tr>
</table>
</td>
<td><font face='Arial' size='1'>94%</font></td>
</tr>
<tr>
<td>
<p><font face='Arial' size='1'>Babylon 5 (Babylon 5)</font></p>
</td>
<td>
<table border='1' cellpadding='0' cellspacing='0' width='81' bgcolor='#dddddd'>
<tr>
<td></td>
</tr>
</table>
</td>
<td><font face='Arial' size='1'>81%</font></td>
</tr>
<tr>
<td>
<p><font face='Arial' size='1'>Deep Space Nine (Star Trek)</font></p>
</td>
<td>
<table border='1' cellpadding='0' cellspacing='0' width='81' bgcolor='#dddddd'>
<tr>
<td></td>
</tr>
</table>
</td>
<td><font face='Arial' size='1'>81%</font></td>
</tr>
<tr>
<td>
<p><font face='Arial' size='1'>Nebuchadnezzar (The Matrix)</font></p>
</td>
<td>
<table border='1' cellpadding='0' cellspacing='0' width='75' bgcolor='#dddddd'>
<tr>
<td></td>
</tr>
</table>
</td>
<td><font face='Arial' size='1'>75%</font></td>
</tr>
<tr>
<td>
<p><font face='Arial' size='1'>SG-1 (Stargate)</font></p>
</td>
<td>
<table border='1' cellpadding='0' cellspacing='0' width='69' bgcolor='#dddddd'>
<tr>
<td></td>
</tr>
</table>
</td>
<td><font face='Arial' size='1'>69%</font></td>
</tr>
<tr>
<td>
<p><font face='Arial' size='1'>FBI’s X-Files Division (The X-Files)</font></p>
</td>
<td>
<table border='1' cellpadding='0' cellspacing='0' width='69' bgcolor='#dddddd'>
<tr>
<td></td>
</tr>
</table>
</td>
<td><font face='Arial' size='1'>69%</font></td>
</tr>
<tr>
<td>
<p><font face='Arial' size='1'>Bebop (Cowboy Bebop)</font></p>
</td>
<td>
<table border='1' cellpadding='0' cellspacing='0' width='63' bgcolor='#dddddd'>
<tr>
<td></td>
</tr>
</table>
</td>
<td><font face='Arial' size='1'>63%</font></td>
</tr>
<tr>
<td>
<p><font face='Arial' size='1'>Millennium Falcon (Star Wars)</font></p>
</td>
<td>
<table border='1' cellpadding='0' cellspacing='0' width='63' bgcolor='#dddddd'>
<tr>
<td></td>
</tr>
</table>
</td>
<td><font face='Arial' size='1'>63%</font></td>
</tr>
<tr>
<td>
<p><font face='Arial' size='1'>Moya (Farscape)</font></p>
</td>
<td>
<table border='1' cellpadding='0' cellspacing='0' width='63' bgcolor='#dddddd'>
<tr>
<td></td>
</tr>
</table>
</td>
<td><font face='Arial' size='1'>63%</font></td>
</tr>
<tr>
<td>
<p><font face='Arial' size='1'>Galactica (Battlestar: Galactica)</font></p>
</td>
<td>
<table border='1' cellpadding='0' cellspacing='0' width='63' bgcolor='#dddddd'>
<tr>
<td></td>
</tr>
</table>
</td>
<td><font face='Arial' size='1'>63%</font></td>
</tr>
<tr>
<td>
<p><font face='Arial' size='1'>Enterprise D (Star Trek)</font></p>
</td>
<td>
<table border='1' cellpadding='0' cellspacing='0' width='56' bgcolor='#dddddd'>
<tr>
<td></td>
</tr>
</table>
</td>
<td><font face='Arial' size='1'>56%</font></td>
</tr>
<tr>
<td>
<p><font face='Arial' size='1'>Andromeda Ascendant (Andromeda)</font></p>
</td>
<td>
<table border='1' cellpadding='0' cellspacing='0' width='44' bgcolor='#dddddd'>
<tr>
<td></td>
</tr>
</table>
</td>
<td><font face='Arial' size='1'>44%</font></td>
</tr>
</table>
</td>
</tr>
</table>
<p><a href='http://quizfarm.com/test.php?q_id=111863'>Your Ultimate Sci-Fi Profile II: which sci-fi crew would you best fit in? (pics)</a><br /><font face='Arial' size='1'>created with <a href='http://quizfarm.com'>QuizFarm.com</a></font></p>
<p><small><a href="http://coffeebear.net/2006/03/05/are-you-part-of-my-crew/">Are you part of my crew?</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/2006/03/05/are-you-part-of-my-crew/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Pukka’s Links of the Week</title>
		<link>http://coffeebear.net/2005/11/05/pukkas-links-of-the-week-19/</link>
		<comments>http://coffeebear.net/2005/11/05/pukkas-links-of-the-week-19/#comments</comments>
		<pubDate>Sat, 05 Nov 2005 23:14:50 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Links]]></category>
		<category><![CDATA[camera]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[office]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[tv]]></category>

		<guid isPermaLink="false">http://coffeebear.net/?p=388</guid>
		<description><![CDATA[From Pukka: Seattle P.D. brushes off Jack Thompson Honest Game Titles Not from Pukka: How to speed up Open Office Ergonomics and Computers Wireless Network Security Camera Hacker Sorry this is late, with the site problems I was having I forgot to publish it! Pukka’s Links of the Week © Mark McKibben, Creative Commons Attribution-NonCommercial-ShareAlike [...]]]></description>
			<content:encoded><![CDATA[<p>From Pukka:</p>
<ul>
<li><a href="http://joystiq.com/entry/1234000557065890/" title="Seattle P.D. brushes off Jack Thompson - Joystiq">Seattle P.D. brushes off Jack Thompson</a></li>
<li><a href="http://www.somethingawful.com/articles.php?a=3327" title="Something Awful - Honest Game Titles">Honest Game Titles</a></li>
</ul>
<p>Not from Pukka:</p>
<ul>
<li><a href="http://www.theinquirer.net/?article=27292" title="How to speed up Open Office">How to speed up Open Office</a></li>
<li><a href="http://www.pcstats.com/ArtVNL.cfm?articleid=835&#038;amppage=1" title="Beginners Guides:  Ergonomics and Computers - PCStats.com">Ergonomics and Computers</a></li>
<li><a href="http://www.techfear.com/articles/2005/10/wireless_security.shtml" title="Wireless Network Security - techFear">Wireless Network Security</a></li>
<li><a href="http://www.camerahacker.com/" title="Camera Hacker">Camera Hacker</a></li>
</ul>
<p>Sorry this is late, with the site problems I was having I forgot to publish it!</p>
<p><small><a href="http://coffeebear.net/2005/11/05/pukkas-links-of-the-week-19/">Pukka’s Links of the Week</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/2005/11/05/pukkas-links-of-the-week-19/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quizziness</title>
		<link>http://coffeebear.net/2005/10/28/quizziness/</link>
		<comments>http://coffeebear.net/2005/10/28/quizziness/#comments</comments>
		<pubDate>Fri, 28 Oct 2005 14:18:53 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Quizzes]]></category>
		<category><![CDATA[Books]]></category>
		<category><![CDATA[coffee]]></category>
		<category><![CDATA[Flickr]]></category>
		<category><![CDATA[future]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[history]]></category>
		<category><![CDATA[home]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[Love]]></category>
		<category><![CDATA[Movies]]></category>
		<category><![CDATA[office]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[Quiz]]></category>
		<category><![CDATA[quotes]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[stylish]]></category>
		<category><![CDATA[troops]]></category>

		<guid isPermaLink="false">http://coffeebear.net/?p=384</guid>
		<description><![CDATA[Sorry, but I don’t have any links for PLotW. Instead, please enjoy these various quizzes. You fit in with: HumanismYour ideals mostly resemble that of a Humanist. Although you do not have a lot of faith, you are devoted to making this world better, in the short time that you have to live. Humanists do [...]]]></description>
			<content:encoded><![CDATA[<p>Sorry, but I don’t have any links for <abbr title="Pukka's Links of the Week">PLotW</abbr>. Instead, please enjoy these various quizzes.</p>
<div align="center">
<table width="350" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td align="center"><span style="font-size: x-small;">You fit in with:<br />
Humanism</span>Your ideals mostly resemble that of a Humanist. Although you do not have a lot of faith, you are devoted to making this world better, in the short time that you have to live. Humanists do not generally believe in an afterlife, and therefore, are committed to making the world a better place for themselves and future generations.0% scientific.<br />
60% reason-oriented.</td>
</tr>
<tr>
<td align="center"><a href="http://www.quizgalaxy.com/quiz.php?id=47">Take this quiz</a> at <a href="http://www.quizgalaxy.com">QuizGalaxy.com</a></td>
</tr>
</tbody>
</table>
</div>
<hr align="center" width="75%" />
<table cellpadding="20" align="center">
<tbody>
<tr>
<td align="center"><span style="font-size: large;"><strong>Office Master</strong></span><br />
64% Tastefulness, 41% Originality, 45% Deliberateness, 29% Sexiness</td>
</tr>
<tr>
<td><strong style="color: #cc0000; text-align: center;">[Tasteful Conventional Deliberate Prissy]</strong>Your style is professional. Your clothes always fit the situation and you probably never offend people by, say, wearing pink to a funeral. You just know what becomes. You don’t like extravagance too much and you’re not accidental. Your well chosen, stylish outfits communicate that you’re a serious person. Following classic rules about dressing, you make sure that no one would call you flashy and many people admire your calm, composed look.</p>
<p><span style="font-size: 8pt; color: #444444;">The opposite style from yours is <strong>Fashion Rebel</strong> [Flamboyant Original Random Sexy].</span></p>
<p><span style="font-size: 8pt; color: #cccccc;">All the categories: <a style="color: #cccccc;" href="http://www.okcupid.com/tests/describescore?testid=5962495244888656825&amp;category=0">Fashion Enemy</a> <a style="color: #cccccc;" href="http://www.okcupid.com/tests/describescore?testid=5962495244888656825&amp;category=1">Bar Cruiser</a> <a style="color: #cccccc;" href="http://www.okcupid.com/tests/describescore?testid=5962495244888656825&amp;category=2">Kid Next Door</a> <a style="color: #cccccc;" href="http://www.okcupid.com/tests/describescore?testid=5962495244888656825&amp;category=3">Sex Bomb</a> <a style="color: #cccccc;" href="http://www.okcupid.com/tests/describescore?testid=5962495244888656825&amp;category=4">Hippie Kid</a> <a style="color: #cccccc;" href="http://www.okcupid.com/tests/describescore?testid=5962495244888656825&amp;category=5">Fashion Rebel</a> <a style="color: #cccccc;" href="http://www.okcupid.com/tests/describescore?testid=5962495244888656825&amp;category=6">Fashion Artist</a> <a style="color: #cccccc;" href="http://www.okcupid.com/tests/describescore?testid=5962495244888656825&amp;category=7">Catwalk God(ess)</a> <a style="color: #cccccc;" href="http://www.okcupid.com/tests/describescore?testid=5962495244888656825&amp;category=8">Librarian</a> <a style="color: #cccccc;" href="http://www.okcupid.com/tests/describescore?testid=5962495244888656825&amp;category=9">Sporty Hottie</a> <a style="color: #cccccc;" href="http://www.okcupid.com/tests/describescore?testid=5962495244888656825&amp;category=10">Office Master</a> <a style="color: #cccccc;" href="http://www.okcupid.com/tests/describescore?testid=5962495244888656825&amp;category=11">Uptown Girl/ Boy</a> <a style="color: #cccccc;" href="http://www.okcupid.com/tests/describescore?testid=5962495244888656825&amp;category=12">Brainy Student</a> <a style="color: #cccccc;" href="http://www.okcupid.com/tests/describescore?testid=5962495244888656825&amp;category=13">Movie Star</a> <a style="color: #cccccc;" href="http://www.okcupid.com/tests/describescore?testid=5962495244888656825&amp;category=14">Fashionista</a> <a style="color: #cccccc;" href="http://www.okcupid.com/tests/describescore?testid=5962495244888656825&amp;category=15">Glamorous Soul</a></span></td>
</tr>
<tr>
<td align="center"><img src="http://is1.okcupid.com/users/872/574/8725748215120025454/mt1127819089.jpg" alt="" /></td>
</tr>
</tbody>
</table>
<table cellpadding="20">
<tbody>
<tr>
<td>My test tracked 4 variables How you compared to other people <em>your age and gender</em>:</p>
<blockquote>
<table border="0" cellspacing="4" cellpadding="0">
<tbody>
<tr>
<td valign="middle">
<table border="0" cellspacing="1" cellpadding="0" bgcolor="black">
<tbody>
<tr>
<td bgcolor="#b2cfff" width="99" height="20"><a href="http://www.okcupid.com"><img src="http://is3.okcupid.com/graphics/0.gif" alt="OkCupid.com" border="0" /></a></td>
<td bgcolor="white" width="51"><a href="http://www.okcupid.com"><img src="http://is3.okcupid.com/graphics/0.gif" alt="OkCupid.com" border="0" /></a></td>
</tr>
</tbody>
</table>
</td>
<td valign="middle">You scored higher than <strong>66%</strong> on <strong>Tastefulness</strong></td>
</tr>
<tr>
<td valign="middle">
<table border="0" cellspacing="1" cellpadding="0" bgcolor="black">
<tbody>
<tr>
<td bgcolor="#b2cfff" width="29" height="20"><a href="http://www.okcupid.com"><img src="http://is3.okcupid.com/graphics/0.gif" alt="OkCupid.com" border="0" /></a></td>
<td bgcolor="white" width="121"><a href="http://www.okcupid.com"><img src="http://is3.okcupid.com/graphics/0.gif" alt="OkCupid.com" border="0" /></a></td>
</tr>
</tbody>
</table>
</td>
<td valign="middle">You scored higher than <strong>19%</strong> on <strong>Originality</strong></td>
</tr>
<tr>
<td valign="middle">
<table border="0" cellspacing="1" cellpadding="0" bgcolor="black">
<tbody>
<tr>
<td bgcolor="#b2cfff" width="51" height="20"><a href="http://www.okcupid.com"><img src="http://is3.okcupid.com/graphics/0.gif" alt="OkCupid.com" border="0" /></a></td>
<td bgcolor="white" width="99"><a href="http://www.okcupid.com"><img src="http://is3.okcupid.com/graphics/0.gif" alt="OkCupid.com" border="0" /></a></td>
</tr>
</tbody>
</table>
</td>
<td valign="middle">You scored higher than <strong>34%</strong> on <strong>Deliberateness</strong></td>
</tr>
<tr>
<td valign="middle">
<table border="0" cellspacing="1" cellpadding="0" bgcolor="black">
<tbody>
<tr>
<td bgcolor="#b2cfff" width="11" height="20"><a href="http://www.okcupid.com"><img src="http://is3.okcupid.com/graphics/0.gif" alt="OkCupid.com" border="0" /></a></td>
<td bgcolor="white" width="139"><a href="http://www.okcupid.com"><img src="http://is3.okcupid.com/graphics/0.gif" alt="OkCupid.com" border="0" /></a></td>
</tr>
</tbody>
</table>
</td>
<td valign="middle">You scored higher than <strong>7%</strong> on <strong>Sexiness</strong></td>
</tr>
</tbody>
</table>
</blockquote>
</td>
</tr>
</tbody>
</table>
<table cellpadding="20">
<tbody>
<tr>
<td>Link: <a href="http://www.okcupid.com/tests/take?testid=5962495244888656825">The Fashion Style Test</a> written by <a href="http://www.okcupid.com/profile?tuid=8725748215120025454">mari-e</a> on <a href="http://www.okcupid.com">Ok Cupid</a>.</td>
</tr>
</tbody>
</table>
<hr align="center" width="75%" />
<table cellpadding="20" align="center">
<tbody>
<tr>
<td align="center"><span style="font-size: large;"><strong>The Deviant Geek</strong></span><br />
You answered 81% of the questions as a geek truly would.</td>
</tr>
<tr>
<td>You’re a geek and you know it. You’ve got all sorts of fringe hobbies and socially unacceptable tendencies. Chances are, whenever possible, you hate to be grouped with other people and sometimes go out of your way just to be different.</p>
<p>You’re smart too. You’re more willing to depend on your own brainpower to solve problems, instead of relying on others to pull you through life. You probably read a lot, and generally enjoy learning new things.</p>
<p>So what’s it all mean? You may be considered by some to be uncool, but you probably don’t care either. In social situations you may be either slightly passive or slightly loud (geeks always fall into the extremes). <em>In a nutshell, you answered enough questions correctly supporting a geek philosophy to be considered a more potent geek than 60% of the population.</em></td>
</tr>
<tr>
<td align="center"><img src="http://is2.okcupid.com/mt_pics/179/17970904557065852189/18218321780999764276-3.jpg" alt="" /></td>
</tr>
</tbody>
</table>
<table cellpadding="20">
<tbody>
<tr>
<td>My test tracked 1 variable How you compared to other people <em>your age and gender</em>:</p>
<blockquote>
<table border="0" cellspacing="4" cellpadding="0">
<tbody>
<tr>
<td valign="middle">
<table border="0" cellspacing="1" cellpadding="0" bgcolor="black">
<tbody>
<tr>
<td bgcolor="#b2cfff" width="113" height="20"><a href="http://www.okcupid.com"><img src="http://is0.okcupid.com/graphics/0.gif" alt="OkCupid.com" border="0" /></a></td>
<td bgcolor="white" width="37"><a href="http://www.okcupid.com"><img src="http://is0.okcupid.com/graphics/0.gif" alt="OkCupid.com" border="0" /></a></td>
</tr>
</tbody>
</table>
</td>
<td valign="middle">You scored higher than <strong>75%</strong> on <strong>geekness</strong></td>
</tr>
</tbody>
</table>
</blockquote>
</td>
</tr>
</tbody>
</table>
<table cellpadding="20">
<tbody>
<tr>
<td>Link: <a href="http://www.okcupid.com/tests/take?testid=750711297364726891">The True Geek Test</a> written by <a href="http://www.okcupid.com/profile?tuid=17970904557065852189">ambientred</a> on <a href="http://www.okcupid.com">Ok Cupid</a>.</td>
</tr>
</tbody>
</table>
<hr align="center" width="75%" />
<div style="border: 1px solid #cccccc; background-color: white; width: 115px; text-align: center; padding: 0 0 10px 0;">
<p style="margin: 0;"><img style="border: 0;" src="http://static.flickr.com/23/25822676_789bf55448_t.jpg" alt="" /></p>
<p><span style="font-size: 11px;">My <a href="http://coffeebear.net/">blog</a> is worth <strong>$7,339.02</strong>.</span></p>
<p><span style="font-size: 10px;"><a href="http://www.business-opportunities.biz/projects/how-much-is-your-blog-worth/">How much is your blog worth?</a></span></p>
<p><a style="border: 0px;" href="http://www.technorati.com/"><img style="border: 0px;" src="http://technorati.com/pix/tech-logo-embed.gif" alt="" /></a></p>
</div>
<p>Not even 8Gs? Shucks, there goes my get-rick-quick scheme. ;)</p>
<hr align="center" size="5" width="75%' />
<table align=" /><img src="http://is0.okcupid.com/users/708/870/7088714327834954884/mt1117655343.jpg" alt="" /></p>
<table cellpadding="20">
<tbody>
<tr>
<td>My test tracked 4 variables How you compared to other people <em>your age and gender</em>:</p>
<blockquote>
<table border="0" cellspacing="4" cellpadding="0">
<tbody>
<tr>
<td valign="middle">
<table border="0" cellspacing="1" cellpadding="0" bgcolor="black">
<tbody>
<tr>
<td bgcolor="#b2cfff" width="41" height="20"><a href="http://www.okcupid.com"><img src="http://is2.okcupid.com/graphics/0.gif" alt="OkCupid.com" border="0" /></a></td>
<td bgcolor="white" width="109"><a href="http://www.okcupid.com"><img src="http://is2.okcupid.com/graphics/0.gif" alt="OkCupid.com" border="0" /></a></td>
</tr>
</tbody>
</table>
</td>
<td valign="middle">You scored higher than <strong>27%</strong> on <strong>Unorthodox</strong></td>
</tr>
<tr>
<td valign="middle">
<table border="0" cellspacing="1" cellpadding="0" bgcolor="black">
<tbody>
<tr>
<td bgcolor="#b2cfff" width="83" height="20"><a href="http://www.okcupid.com"><img src="http://is2.okcupid.com/graphics/0.gif" alt="OkCupid.com" border="0" /></a></td>
<td bgcolor="white" width="67"><a href="http://www.okcupid.com"><img src="http://is2.okcupid.com/graphics/0.gif" alt="OkCupid.com" border="0" /></a></td>
</tr>
</tbody>
</table>
</td>
<td valign="middle">You scored higher than <strong>55%</strong> on <strong>Tactics</strong></td>
</tr>
<tr>
<td valign="middle">
<table border="0" cellspacing="1" cellpadding="0" bgcolor="black">
<tbody>
<tr>
<td bgcolor="#b2cfff" width="42" height="20"><a href="http://www.okcupid.com"><img src="http://is2.okcupid.com/graphics/0.gif" alt="OkCupid.com" border="0" /></a></td>
<td bgcolor="white" width="108"><a href="http://www.okcupid.com"><img src="http://is2.okcupid.com/graphics/0.gif" alt="OkCupid.com" border="0" /></a></td>
</tr>
</tbody>
</table>
</td>
<td valign="middle">You scored higher than <strong>28%</strong> on <strong>Guts</strong></td>
</tr>
<tr>
<td valign="middle">
<table border="0" cellspacing="1" cellpadding="0" bgcolor="black">
<tbody>
<tr>
<td bgcolor="#b2cfff" width="8" height="20"><a href="http://www.okcupid.com"><img src="http://is2.okcupid.com/graphics/0.gif" alt="OkCupid.com" border="0" /></a></td>
<td bgcolor="white" width="142"><a href="http://www.okcupid.com"><img src="http://is2.okcupid.com/graphics/0.gif" alt="OkCupid.com" border="0" /></a></td>
</tr>
</tbody>
</table>
</td>
<td valign="middle">You scored higher than <strong>5%</strong> on <strong>Ruthlessness</strong></td>
</tr>
</tbody>
</table>
</blockquote>
</td>
</tr>
</tbody>
</table>
<table cellpadding="20">
<tbody>
<tr>
<td>Link: <a href="http://www.okcupid.com/tests/take?testid=13827291814577368116">The Which Historic General Are You Test</a> written by <a href="http://www.okcupid.com/profile?tuid=7088714327834954884">dasnyds</a> on <a href="http://www.okcupid.com">Ok Cupid</a>, home of the <a href="http://www.okcupid.com/oktest3">32-Type Dating Test</a></td>
</tr>
</tbody>
</table>
<hr align="center" width="75%" />
<table width="350" border="0" cellspacing="0" cellpadding="2" align="center">
<tbody>
<tr>
<td align="center" bgcolor="#CDDEFF"><span style="color: black; font-size: 14pt; font-family: Georgia, 'Times New Roman', Times, serif;"><strong>You Passed 8th Grade Math</strong></span></td>
</tr>
<tr>
<td bgcolor="#EBF2FF">
<div align="center"><img src="http://images.blogthings.com/couldyoupasseighthgrademathquiz/passed.jpg" alt="" width="100" height="100" /></div>
<p><span style="color: #000000;">Congratulations, you got 9/10 correct!</span></td>
</tr>
</tbody>
</table>
<div align="center"><a href="http://www.blogthings.com/couldyoupasseighthgrademathquiz/">Could You Pass 8th Grade Math?</a></div>
<p><small><a href="http://coffeebear.net/2005/10/28/quizziness/">Quizziness</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/2005/10/28/quizziness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quiz Time</title>
		<link>http://coffeebear.net/2005/10/04/quiz-time-2/</link>
		<comments>http://coffeebear.net/2005/10/04/quiz-time-2/#comments</comments>
		<pubDate>Tue, 04 Oct 2005 23:07:56 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Quizzes]]></category>
		<category><![CDATA[nasty]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Quiz]]></category>
		<category><![CDATA[tla]]></category>

		<guid isPermaLink="false">http://coffeebear.net/?p=377</guid>
		<description><![CDATA[It’s been a bit since I posted any quizzes, so enjoy! You scored as River Tam. The Fugitive. You are clever and dangerous, which is a nasty combination. The fact you are crazy too just adds to your charm. They did bad things to you, but you know their secrets. They will regret how they [...]]]></description>
			<content:encoded><![CDATA[<p>It’s been a bit since I posted any quizzes, so enjoy!</p>
<table border='0' cellpadding='5' cellspacing='0' width='600'>
<tr>
<td><img src='http://images.quizfarm.com/1127582577sqriver.jpg'/></td>
<td> You scored as <b>River Tam</b>. The Fugitive.  You are clever and dangerous, which is a nasty combination.  The fact you are crazy too just adds to your charm.  They did bad things to you, but you know their secrets.  They will regret how they made you.</p>
<table border='0' width='300' cellspacing='0' cellpadding='0'>
<tr>
<td>
<p><font face='Arial' size='1'>River Tam</font></p>
</td>
<td>
<table border='1' cellpadding='0' cellspacing='0' width='75' bgcolor='#dddddd'>
<tr>
<td></td>
</tr>
</table>
</td>
<td><font face='Arial' size='1'>75%</font></td>
</tr>
<tr>
<td>
<p><font face='Arial' size='1'>Hoban ‘Wash’ Washburne</font></p>
</td>
<td>
<table border='1' cellpadding='0' cellspacing='0' width='69' bgcolor='#dddddd'>
<tr>
<td></td>
</tr>
</table>
</td>
<td><font face='Arial' size='1'>69%</font></td>
</tr>
<tr>
<td>
<p><font face='Arial' size='1'>Zoe Alleyne Washburne</font></p>
</td>
<td>
<table border='1' cellpadding='0' cellspacing='0' width='63' bgcolor='#dddddd'>
<tr>
<td></td>
</tr>
</table>
</td>
<td><font face='Arial' size='1'>63%</font></td>
</tr>
<tr>
<td>
<p><font face='Arial' size='1'>Simon Tam</font></p>
</td>
<td>
<table border='1' cellpadding='0' cellspacing='0' width='63' bgcolor='#dddddd'>
<tr>
<td></td>
</tr>
</table>
</td>
<td><font face='Arial' size='1'>63%</font></td>
</tr>
<tr>
<td>
<p><font face='Arial' size='1'>The Operative</font></p>
</td>
<td>
<table border='1' cellpadding='0' cellspacing='0' width='63' bgcolor='#dddddd'>
<tr>
<td></td>
</tr>
</table>
</td>
<td><font face='Arial' size='1'>63%</font></td>
</tr>
<tr>
<td>
<p><font face='Arial' size='1'>Capt. Mal Reynolds</font></p>
</td>
<td>
<table border='1' cellpadding='0' cellspacing='0' width='56' bgcolor='#dddddd'>
<tr>
<td></td>
</tr>
</table>
</td>
<td><font face='Arial' size='1'>56%</font></td>
</tr>
<tr>
<td>
<p><font face='Arial' size='1'>Inara Serra</font></p>
</td>
<td>
<table border='1' cellpadding='0' cellspacing='0' width='56' bgcolor='#dddddd'>
<tr>
<td></td>
</tr>
</table>
</td>
<td><font face='Arial' size='1'>56%</font></td>
</tr>
<tr>
<td>
<p><font face='Arial' size='1'>Kaylee Frye</font></p>
</td>
<td>
<table border='1' cellpadding='0' cellspacing='0' width='56' bgcolor='#dddddd'>
<tr>
<td></td>
</tr>
</table>
</td>
<td><font face='Arial' size='1'>56%</font></td>
</tr>
<tr>
<td>
<p><font face='Arial' size='1'>Jayne Cobb</font></p>
</td>
<td>
<table border='1' cellpadding='0' cellspacing='0' width='44' bgcolor='#dddddd'>
<tr>
<td></td>
</tr>
</table>
</td>
<td><font face='Arial' size='1'>44%</font></td>
</tr>
<tr>
<td>
<p><font face='Arial' size='1'>Shepherd Derrial Book</font></p>
</td>
<td>
<table border='1' cellpadding='0' cellspacing='0' width='38' bgcolor='#dddddd'>
<tr>
<td></td>
</tr>
</table>
</td>
<td><font face='Arial' size='1'>38%</font></td>
</tr>
</table>
</td>
</tr>
</table>
<p><a href='http://quizfarm.com/test.php?q_id=79387'>Which Serenity character are you?</a><br /><font face='Arial' size='1'>created with <a href='http://quizfarm.com'>QuizFarm.com</a></font></p>
<table width=350 align=center border=0 cellspacing=0 cellpadding=2>
<tr>
<td bgcolor="#B6B6C2" align=center>
<font face="Georgia, Times New Roman, Times, serif" style='color:black; font-size: 14pt;'><br />
<strong>You Should Learn Swedish</strong><br />
</font></td>
</tr>
<tr>
<td bgcolor="#D7D6DE">
<center><img src="http://images.blogthings.com/whatlanguageshouldyoulearnquiz/swedish.jpg" height="100" width="100"/></center><br />
<font color="#000000"><br />
Fantastisk! You’re laid back about learning a language — and about life in general.<br />
Peaceful, beautiful Sweden is ideal for you… And you won’t even have to speak perfect Swedish to get around!<br />
</font></td>
</tr>
</table>
<div align="center"><a href="http://www.blogthings.com/whatlanguageshouldyoulearnquiz/">What Language Should You Learn?</a></div>
<p><small><a href="http://coffeebear.net/2005/10/04/quiz-time-2/">Quiz Time</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/2005/10/04/quiz-time-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Pukka’s Links of the Week</title>
		<link>http://coffeebear.net/2005/09/30/pukkas-links-of-the-week-16/</link>
		<comments>http://coffeebear.net/2005/09/30/pukkas-links-of-the-week-16/#comments</comments>
		<pubDate>Fri, 30 Sep 2005 21:24:49 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Links]]></category>
		<category><![CDATA[foreign]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[Love]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[xbox]]></category>

		<guid isPermaLink="false">http://coffeebear.net/?p=371</guid>
		<description><![CDATA[From Pukka: Does She Love You? Xbox Lifestyle Promises We’re Looking Forward To Being Fulfilled Winning Souls to Christ in The World of Warcraft All The News That’s Fun To Print! Here Today, Gone Tomorrow Wikipedia edits Esquire Zombies No links from other sources this week. Pukka’s Links of the Week © Mark McKibben, Creative [...]]]></description>
			<content:encoded><![CDATA[<p>From Pukka:</p>
<ul>
<li><a href="http://www.themorningnews.org/archives/the_nonexpert/does_she_love_you.php" title="The Morning News - Does She Love You?">Does She Love You?</a></li>
<li><a href="http://www.geekonstun.com/mt/archives/xbox_lifestyle_promises_were_looking_forward_to_being_fulfilled_091405.html" title="Geek on Stun: Xbox Lifestyle Promises We're Looking Forward To Being Fulfilled">Xbox Lifestyle Promises We’re Looking Forward To Being Fulfilled</a></li>
<li><a href="http://www.landoverbaptist.org/news0105/wow.html" title="Winning Souls to Christ in The World of Warcraft">Winning Souls to Christ in The World of Warcraft</a></li>
<li><a href="http://www.happynews.com/index.htm" title="HappyNews.com - All The News That's Fun To Print!">All The News That’s Fun To Print!</a></li>
<li><a href="http://www.foreignpolicy.com/story/cms.php?story_id=3158" title="Foriegn Policy: Here Today, Gone Tomorrow">Here Today, Gone Tomorrow</a></li>
<li><a href="http://en.wikipedia.org/wiki/Wikipedia:Wikipedia_Signpost/2005-09-26/Esquire_article" title="Wikipedia: Wikipedia edits Esquire">Wikipedia edits Esquire</a></li>
<li><a href="http://plato.stanford.edu/entries/zombies/" title="Stanford Encyclopedia of Philosophy: Zombies">Zombies</a></li>
</ul>
<p>No links from other sources this week.</p>
<p><small><a href="http://coffeebear.net/2005/09/30/pukkas-links-of-the-week-16/">Pukka’s Links of the Week</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/2005/09/30/pukkas-links-of-the-week-16/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 1/46 queries in 0.126 seconds using disk: basic
Object Caching 1357/1462 objects using disk: basic

Served from: coffeebear.net @ 2012-02-09 19:51:29 -->
