<?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; hacks</title>
	<atom:link href="http://coffeebear.net/tag/hacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://coffeebear.net</link>
	<description></description>
	<lastBuildDate>Mon, 14 May 2012 02:58:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>WordPress/Akismet Hack 0.0.2</title>
		<link>http://coffeebear.net/2005/11/24/wordpressakismet-hack-002/</link>
		<comments>http://coffeebear.net/2005/11/24/wordpressakismet-hack-002/#comments</comments>
		<pubDate>Thu, 24 Nov 2005 16:54:01 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[akismet]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[WebDev]]></category>

		<guid isPermaLink="false">http://coffeebear.net/?p=407</guid>
		<description><![CDATA[Do you run WP? Do you also have Akismet installed? Would you like a quick reference on the Dashboard showing you some info from Akismet? I do and did want this. Since I have zero idea on how to set this up as a plugin; I simply added the code into /wp-admin/index.php. I scanned through [...]]]></description>
			<content:encoded><![CDATA[<p>Do you run <a href="http://wordpress.org/" title="WordPress">WP</a>?  Do you also have <a href="http://akismet.com/" title="Stop Comment Spam and Trackback Spam Â« Akismet">Akismet</a> installed?  Would you like a quick reference on the Dashboard showing you some info from Akismet?  I do and did want this.  Since I have zero idea on how to set this up as a plugin; I simply added the code into /wp-admin/index.php.   I scanned through the file until I found the section of code which creates the “Latest Activity” box.  Then between the sections for “Blog Stats” and “Incoming Links“<sup>1</sup>, I added the following code:</p>
<p><code>&lt;h3&gt;&lt;a href="http://akismet.com/" title="Stop Comment Spam and Trackback Spam Â« Akismet"&gt;Akismet&lt;/a&gt; Stats&lt;/h3&gt;<br />
&lt;? php<br />
$deadspam = get_option('akismet_spam_count');<br />
$livespam = $wpdb-&gt;get_var("SELECT COUNT(comment_ID) FROM $wpdb-&gt;comments WHERE comment_approved = 'spam'");<br />
$sitelink = $wpdb-&gt;get_var("SELECT option_value FROM $wpdb-&gt;options WHERE option_id = '1'");<br />
print "Killed Spam Count: $deadspam\n";<br />
if ($livespam == 0) {<br />
print "Your spam queue is empty!";<br />
} else {<br />
print "&lt;strong&gt;Possible Spam Count: &lt;a href="http://coffeebear.net/wp-admin/$sitelink/wp-admin/edit.php?page=akismet.php" title="Click here to see the moderation queue"&gt;$livespam&lt;/a&gt;&lt;/strong&gt;\n";<br />
}<br />
?&gt;</code></p>
<p>There’s undoubtably a more elegant way of retrieving and displaying this information.  And for somebody who actually writes PHP code regularly, this might even be a quick and easy plugin to create.  Unfortunately, I’ve only read part of a book about PHP; so this is about as far as I can currently take the hack.  Unlike what some people think, WordPress does not require you to be a PHP guru.  It only requires a webserver with PHP, MySQL &amp; a little patience<sup>2</sup>.</p>
<p><strong>NOTE: THIS IS A CORE WORDPRESS FILE!  EDIT AT YOUR OWN RISK!  I AM NOT RESPONSIBLE IF YOU HOSE YOUR BLOG, SERVER, LIFE, THE UNIVERSE, AND EVERYTHING!  BACKUP EVERYTHING BEFORE YOU EVEN CONSIDER ATTEMPTING THIS!  ONLY ATTEMPT THIS HACK IF YOU FEEL COMFORTABLE EDITING CORE WORDPRESS FILES.</strong></p>
<p><strong>Update:</strong> <a href="http://netocury.com/">Neto Cury</a> was kind enough to point out an error in the above code.  Though to be fair it’s not entirely my fault.  I pasted into this post the exact code I used in my file, but something in <a href="http://wordpress.org/" title="WordPress">WP</a> or one of the plugins I use appears to have changed the first part of the PHP coding from &lt;? php to &lt; ?php.  I’m not sure what caused that, but to help people avoid getting errors; I’ve uploaded a text file containing the code for the hack.  You can download that file <a href="http://coffeebear.net/wp-content/wpakismethack.txt" title="WordPress/Akismet Hack 0.0.2">here</a>.</p>
<p><strong>Update #2:</strong> Fixed a typo in the previous update.  Sorry about that Neto!</p>
<p><strong>Update #3 2007-04-21:</strong> I’ve updated this hack to modify the akismet plugin file (Akismet v2.0 for WordPress 2.1.3) instead of one of the WordPress core files.  Read about it <a title="Dashboard Akismet Hack 0.0.3 | CoffeeBear.net">here</a>.</p>
<p><sup>1</sup> Blog Stats ends at line 85 in my file and at the time of this writing I am running WordPress 1.5.2.<br />
<sup>2</sup> This is true of every <abbr title="Content Management System">CMS</abbr> that I’ve looked at.</p>
<p><small><a href="http://coffeebear.net/2005/11/24/wordpressakismet-hack-002/">WordPress/Akismet Hack 0.0.2</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/24/wordpressakismet-hack-002/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Links</title>
		<link>http://coffeebear.net/2005/03/20/links/</link>
		<comments>http://coffeebear.net/2005/03/20/links/#comments</comments>
		<pubDate>Mon, 21 Mar 2005 00:41:47 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Links]]></category>
		<category><![CDATA[camera]]></category>
		<category><![CDATA[Flickr]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[Photos]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tv]]></category>

		<guid isPermaLink="false">/?p=251</guid>
		<description><![CDATA[Just a bunch of links that I’ve picked up in the last week or 2 that interested me… Drawn! is a new group blog about illustration, art, and cartooning: http://www.drawn.ca/ Stephen Colbert, from The Daily Show, interview: http://www.onlisareinsradar.com/archives/002407.php 80’s TV Commercials: http://www.x-entertainment.com/downloads/ Build your own magnetic spice rack: http://www.washingtonpost.com/wp-dyn/articles/A43894-2004May20.html Interesting Science Friday: http://www.sciencefriday.com/pages/2005/Mar/hour2_031105.html A “downloadable [...]]]></description>
			<content:encoded><![CDATA[<p>Just a bunch of links that I’ve picked up in the last week or 2 that interested me…</p>
<p>Drawn! is a new group blog about illustration, art, and cartooning:<br />
<a href="http://www.drawn.ca/">http://www.drawn.ca/</a></p>
<p>Stephen Colbert, from The Daily Show, interview:<br />
<a href="http://www.onlisareinsradar.com/archives/002407.php">http://www.onlisareinsradar.com/archives/002407.php</a></p>
<p>80’s TV Commercials:<br />
<a href="http://www.x-entertainment.com/downloads/">http://www.x-entertainment.com/downloads/</a></p>
<p>Build your own magnetic spice rack:<br />
<a href="http://www.washingtonpost.com/wp-dyn/articles/A43894-2004May20.html">http://www.washingtonpost.com/wp-dyn/articles/A43894-2004May20.html</a></p>
<p>Interesting Science Friday:<br />
<a href="http://www.sciencefriday.com/pages/2005/Mar/hour2_031105.html">http://www.sciencefriday.com/pages/2005/Mar/hour2_031105.html</a></p>
<p>A “downloadable TV show” mentioned on Slashdot:<br />
<a href="http://slashdot.org/articles/05/03/17/1322246.shtml?tid=129&#038;tid=155">http://slashdot.org/articles/05/03/17/1322246.shtml?tid=129&amp;tid=155</a></p>
<p>Some sort of online, short film recommended to me by Pukka:<br />
<a href="http://www.delivery.framebox.de/">http://www.delivery.framebox.de/</a></p>
<p>Ain’t It Cool News visits Pixar:<br />
<a href="http://www.aintitcoolnews.com/display.cgi?id=19658#1">http://www.aintitcoolnews.com/display.cgi?id=19658#1</a></p>
<p>Wicked Cool Latte Art, links via <a href="http://boingboing.net/" title="Boing Boing">Boing Boing</a><br />
<a href="http://www.flickr.com/photos/tonx/sets/48921/">http://www.flickr.com/photos/tonx/sets/48921/</a><br />
<a href="http://www.latteart.org/latteart.htm">http://www.latteart.org/latteart.htm</a></p>
<p>Camera Hacks is a community website to share tips/tricks/tutorials/links to info on cameras (digital or film):<br />
<a href="http://camerahacks.com/">http://camerahacks.com/</a></p>
<p><small><a href="http://coffeebear.net/2005/03/20/links/">Links</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/03/20/links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress is Web application of the year!</title>
		<link>http://coffeebear.net/2005/01/03/wordpress-is-web-application-of-the-year/</link>
		<comments>http://coffeebear.net/2005/01/03/wordpress-is-web-application-of-the-year/#comments</comments>
		<pubDate>Mon, 03 Jan 2005 21:58:30 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[elections]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[home]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[quotes]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">/?p=225</guid>
		<description><![CDATA[I was just over at ArsTechnica, checking up on the lastest news and noticed in their Looking back at 2004 article that WP had been declared the Web app of the year. Way to go WordPress devs! Web application of the year We asked forumgoers to choose the best web application or development framework of [...]]]></description>
			<content:encoded><![CDATA[<p>I was just over at <a href="http://arstechnica.com/" title="ArsTechnica">ArsTechnica</a>, checking up on the lastest news and noticed in their<br />
<a href="http://arstechnica.com/columns/linux/linux-20050102.ars/1" title="Click here to read the full article"> Looking back at 2004</a> article that <a href="http://wordpress.org/" title="WordPress">WP</a> had been declared the Web app of the year.  Way to go WordPress devs!</p>
<blockquote><p><strong>Web application of the year</strong></p>
<p>We asked forumgoers to choose the best web application or development framework of the year.</p>
<p>Web-based applications provide interaction for all users regardless of platform or location. If you can connect to the web, you can use it. Forums, blogs, administration tools, collaboration frameworks; there were many excellent options to choose from in 2004.</p>
<p><strong>Winner:</strong> <a href="http://wordpress.org/" title="Click here to visit the WordPress homepage.">WordPress</a></p>
<p>Let’s face it. Blogs are in fashion, and why not? Vanity knows no bounds, and there are some people who actually do something productive with theirs. From the influence of blogs on the coverage of the US presidential elections to every random teenager who has problems with their partner/parent/teacher/cat, blogs are out there allowing your most intimate feelings to be shared with random people at wifi hotspots. WordPress is the most prominent rising star of weblog software, completely free and with a large and active community. Styles, plugins and hacks are readily available, with problems such as comment spamming being addressed far more rapidly than competing applications.</p></blockquote>
<p><small><a href="http://coffeebear.net/2005/01/03/wordpress-is-web-application-of-the-year/">WordPress is Web application of the year!</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/01/03/wordpress-is-web-application-of-the-year/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Please pardon our mess</title>
		<link>http://coffeebear.net/2004/10/06/please-pardon-our-mess/</link>
		<comments>http://coffeebear.net/2004/10/06/please-pardon-our-mess/#comments</comments>
		<pubDate>Thu, 07 Oct 2004 02:57:40 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[broken]]></category>
		<category><![CDATA[coffee]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[thanks]]></category>

		<guid isPermaLink="false">/?p=162</guid>
		<description><![CDATA[I installed WP 1.2.1 tonight and am in the process of restoring some of the hacks/plugins that I use for CoffeeBear.net. If you notice any oddities or problems; please let me know. Also, I’m sending a trackback on this entry to Craig Hartel’s site to try double-checking on whether or not trackbacks are broken in [...]]]></description>
			<content:encoded><![CDATA[<p>I installed <a href="http://wordpress.org/" title="WordPress">WP</a> 1.2.1 tonight and am in the process of restoring some of the hacks/plugins that I use for CoffeeBear.net.  If you notice any oddities or problems; please let me know.</p>
<p>Also, I’m sending a trackback on this entry to <a href="http://blog.nuclearmoose.com/" title="nuclear moose candy">Craig Hartel</a>’s site to try double-checking on whether or not trackbacks are broken in WP 1.2.1.</p>
<p>Thanks to my readers.  Apologies to Craig for picking on his blog.</p>
<p><small><a href="http://coffeebear.net/2004/10/06/please-pardon-our-mess/">Please pardon our mess</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/2004/10/06/please-pardon-our-mess/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Links to WP1.2 Plugins</title>
		<link>http://coffeebear.net/2004/05/26/links-to-wp12-plugins/</link>
		<comments>http://coffeebear.net/2004/05/26/links-to-wp12-plugins/#comments</comments>
		<pubDate>Wed, 26 May 2004 07:15:07 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Reviews]]></category>

		<guid isPermaLink="false">/?p=50</guid>
		<description><![CDATA[This post is just for me to use a reference to any plugins that I am or will consider using with WP v1.2. Lorem Ipsum isn’t actually a WP 1.2 plugin, but it’s still bloody useful. Word/Image Count OpenPGP signed comment plugin Topic Icon PictPress Comment Preview for WordPress 1.2, thread on WP Support Forums [...]]]></description>
			<content:encoded><![CDATA[<p>This post is just for me to use a reference to any plugins that I am or will consider using with WP v1.2.</p>
<p><a href="http://www.lipsum.com/" title="Lorem Ipsum :: Sample Text">Lorem Ipsum</a> isn’t actually a WP 1.2 plugin, but it’s still bloody useful.</p>
<p><a href="http://www.blindmuse.com/archive/2004/05/24/addword-image-counts-to-wp-12/" title="blindmuse :: add word/image counts to wp1.2">Word/Image Count</a></p>
<p><a href="http://bronski.net/wp-archiv/2004/05/25/openpgpcomment/" title="OpenPGPComment">OpenPGP signed comment plugin</a></p>
<p><a href="http://www.trommetter.org/log/wp-content/project-topic-icon.php" title="Topic Icon">Topic Icon</a></p>
<p><a href="http://www.curioso.org/2004/05/pictpress" title="PictPress">PictPress</a></p>
<p><a href="http://wordpress.org/support/10/5746" title="Comment Preview for WordPress 1.2">Comment Preview for WordPress 1.2</a>, thread on WP Support Forums</p>
<p><a href="http://wordpress.org/support/10/5899" title="WP Forums :: Convert Hacks to Plugins">Convert Hacks to Plugins</a>, thread on WP Support Forums</p>
<p><a href="http://wordpress.org/support/10/2537" title="WP Forums :: WP Backup/Restore new version">WP Backup/Restore new version</a>, thread on WP Support Forums</p>
<p><a href="http://wordpress.org/support/10/2626" title="WP Forums :: WP &#038; Gallery integration">WP &amp; Gallery integration</a>, thread on WP Support Forums</p>
<p><a href="http://wordpress.org/support/10/4850" title="did anyone got Amazon Media Manager 1.1 to work">Making AMM work with WP 1.2</a>, thread on WP Support Forums</p>
<p><a href="http://wiki.wordpress.org/WP%20Plugins" title="WP Wiki page of WP v1.2 plugins">WP Wiki page of WP v1.2 plugins</a></p>
<p><a href="http://wiki.wordpress.org/index.php/Comment%20and%20Post%20Plugins" title="WP Comment and Post plugins">WP Comment and Post plugins</a></p>
<p><small><a href="http://coffeebear.net/2004/05/26/links-to-wp12-plugins/">Links to WP1.2 Plugins</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/2004/05/26/links-to-wp12-plugins/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 3/5 queries in 0.008 seconds using disk: basic
Object Caching 912/912 objects using disk: basic

Served from: coffeebear.net @ 2012-05-26 00:06:45 -->
