<?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>Brian @ Wongside &#187; Site News/Programming</title>
	<atom:link href="http://www.wongside.com/brian/blog/category/site-news-programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wongside.com/brian/blog</link>
	<description>The life and times of Brian Wong</description>
	<lastBuildDate>Fri, 02 Sep 2011 07:15:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>WordPress Tips</title>
		<link>http://www.wongside.com/brian/blog/2011/06/wordpress-tips/</link>
		<comments>http://www.wongside.com/brian/blog/2011/06/wordpress-tips/#comments</comments>
		<pubDate>Fri, 03 Jun 2011 23:00:46 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Site News/Programming]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.wongside.com/brian/blog/?p=1667</guid>
		<description><![CDATA[I&#8217;ve been working on WordPress sites a lot lately.  The other day, it was Charlene&#8217;s blog.  Today, it was the CCF Alumni Foundation website, of which I&#8217;m the Chairman. Since the early days of the web, I&#8217;ve often used the JavaScript Enkoder form by Hivelogic to obfuscate my e-mail address in order to protect it [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working on WordPress sites a lot lately.  The other day, it was Charlene&#8217;s blog.  Today, it was the <a href="http://www.ccfalumni.org">CCF Alumni Foundation</a> website, of which I&#8217;m the Chairman.</p>
<p>Since the early days of the web, I&#8217;ve often used the <a href="http://hivelogic.com/enkoder/">JavaScript Enkoder form</a> by <a href="http://hivelogic.com/">Hivelogic </a>to <a href="http://www.merriam-webster.com/dictionary/obfuscate">obfuscate </a>my e-mail address in order to protect it from spammers.  The problem is that because it&#8217;s based on JavaScript, it&#8217;s not super-compatible with <a href="http://codex.wordpress.org/Using_Javascript">WordPress pages and posts</a>.</p>
<p>Fortuitously, I ran across a PHP plugin version written specifically for WordPress.  It&#8217;s called <a href="http://wordpress.org/extend/plugins/php-enkoder/">PHPEnkoder</a>.  So now, any plaintext e-mail addresses as well as any mailto: links on the website are now automatically encoded using the Javascript Enkoder.  Fantastic!</p>
<p>This is what my e-mail address looks like when it&#8217;s been &#8220;enkoded.&#8221;</p>
<pre class="brush: jscript; title: ;">

&lt;script type=&quot;text/javascript&quot;&gt;
//&lt;![CDATA[
&lt;!--
var x=&quot;function f(x){var i,o=\&quot;\&quot;,l=x.length;for(i=0;i&lt;l;i+=2) {if(i+1&lt;l)o+=&quot; +
&quot;x.charAt(i+1);try{o+=x.charAt(i);}catch(e){}}return o;}f(\&quot;ufcnitnof x({)av&quot; +
&quot; r,i=o\\\&quot;\\\&quot;o,=l.xelgnhtl,o=;lhwli(e.xhcraoCedtAl(1/)3=!97{)rt{y+xx=l;=+;&quot; +
&quot;lc}tahce({)}}of(r=i-l;1&gt;i0=i;--{)+ox=c.ahAr(t)i};erutnro s.buts(r,0lo;)f}\\&quot; +
&quot;\&quot;(5),5\\\&quot;\\\\{w`qyjj'.x\\\\-\\\\\\\&quot;n\\\\ZZOT\\\\\\\\\\\\\\\\VTwOTXA]7P01&quot; +
&quot;\\\\\\\\22\\\&#92;&#48;s\\\\14\\\&#92;&#48;q\\\\21\\\&#92;&#48;N\\\\]FSA06\\\&#92;&#48;7\\\&#92;&#48;0\\\\\\\\77\\\\&quot;+
&quot;1L\\\\~p|5|sv`baI|disj34\\\&#92;&#48;F\\\\25\\\&#92;&#48;4\\\&#92;&#48;1\\\\\\\\32\\\&#92;&#48;5\\\&#92;&#48;3\\\\\\&quot;+
&quot;\\23\\\&#92;&#48;5\\\&#92;&#48;3\\\\\\\&#92;&#48;L6W01\\\\\\\&#92;&#48;3\\\&#92;&#48;6\\\&#92;&#48;2\\\\\\\\\\\\n@\\\\`?px8&quot; +
&quot;8$7&gt;'f=*2-'_K\\\\U\\\\\\\\\\\\\\\\(\\\&quot;}fo;n uret}r);+)y+^(i)t(eAodrCha.c(x&quot; +
&quot;deCoarChomfrg.intr=So+7;12%=;y++)y55i&lt;f({i+)i+l;i&lt;0;i=r(foh;gten.l=x,l\\\&quot;\\&quot;+
&quot;\\\\\&quot;\\\\o=i,r va){,y(x fontincfu)\\\&quot;\&quot;)&quot;                                  ;
while(x=eval(x));
//--&gt;
//]]&gt;
&lt;/script&gt;
</pre>
<p>The other problem I solved this afternoon was the implementation of a <a href="http://www.ccfalumni.org/blog/prayer-requests/">prayer requests form</a> for the CCFAF.  It&#8217;s built on Google Docs technology, which I then embedded using an &lt;iframe&gt; into the WordPress post.  The problem wasn&#8217;t creating the form, that&#8217;s <a href="http://docs.google.com/support/bin/answer.py?answer=87809">easy enough</a>.  The problem was figuring out how to get notified each time the form was filled out.  But I ran across <a href="http://www.labnol.org/internet/email-notification-for-google-docs-forms/5248/">this article</a>, and now we should be good to go.</p>
<p>Go try it out!  When someone fills out the form, I automatically get an e-mail notification.  Then I can either pray for it directly, or have someone from the Board pray for them.  Excellent!  Technology at its finest: serving the Kingdom of God.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wongside.com/brian/blog/2011/06/wordpress-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Comments Administration</title>
		<link>http://www.wongside.com/brian/blog/2011/06/wordpress-comments-administration/</link>
		<comments>http://www.wongside.com/brian/blog/2011/06/wordpress-comments-administration/#comments</comments>
		<pubDate>Thu, 02 Jun 2011 22:01:29 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Site News/Programming]]></category>

		<guid isPermaLink="false">http://www.wongside.com/brian/blog/?p=1652</guid>
		<description><![CDATA[The other day I was going through some comments on Charlene&#8217;s blog, and it was frankly frustrating that I could only see 20 at a time, which is the WordPress default. I should be able to to change the number of comments per page in the admin interface via an easily accessible setting. I wanted [...]]]></description>
			<content:encoded><![CDATA[<p>The other day I was going through some comments on <a href="http://helloprettyme.com/blog/">Charlene&#8217;s blog</a>, and it was frankly frustrating that I could only see 20 at a time, which is the WordPress default. I should be able to to change the number of comments per page in the admin interface via an easily accessible setting.</p>
<p>I wanted to be able to see 100 or 1,000 comments at a time.  So I went <a href="http://lmgtfy.com/?q=comments+per+page+wordpress">searching around for a solution</a>.  The first solution that came up seemed about right (yay for Google!):</p>
<p><a href="http://www.wongside.com/brian/blog/wp-content/uploads/2011/06/screenshot.png" rel="lightbox[1652]"><img class="size-full wp-image-1654 alignnone" title="Google Search Results" src="http://www.wongside.com/brian/blog/wp-content/uploads/2011/06/screenshot.png" alt="" width="577" height="233" /></a></p>
<p>The page <a href="http://www.ghacks.net/2008/12/17/wordpress-hack-change-number-of-comments-per-page-in-admin-interface/">described a method</a> of editing the code on the <em>edit-comments.php</em> file.  I&#8217;m very capable of editing php files, so that wasn&#8217;t the issue.  My issue was that there had to be an easier way.  I don&#8217;t want to have to edit a php page every time I want to change the number of comments. Additionally, the post was written for WordPress 2.7, and Charlene&#8217;s blog is already on 3.x</p>
<p>The next few Google results were either support tickets, or WordPress plug-in pages.  &#8220;I shouldn&#8217;t have to install a plugin for this!&#8221; I thought to myself.</p>
<p>Then, wayyy down on the 2nd or 3rd page of search results I found what I was looking for: &#8220;<a href="http://wpengineer.com/1030/change-admin-pagination-on-posts-pages-and-comments/">Change Admin Pagination on Posts, Pages and Comments</a>&#8220;.  It alerted me to the fact that since WP 2.8, there has been a Screen Options button that looks like this:</p>
<p><a href="http://www.wongside.com/brian/blog/wp-content/uploads/2011/06/screen_options.jpg" rel="lightbox[1652]"><img class="alignnone size-full wp-image-1655" title="Screen Options Button" src="http://www.wongside.com/brian/blog/wp-content/uploads/2011/06/screen_options.jpg" alt="" width="320" height="102" /></a></p>
<p>Clicking that, in turn shows this:</p>
<p><a href="http://www.wongside.com/brian/blog/wp-content/uploads/2011/06/screenshot1.png" rel="lightbox[1652]"><img class="alignnone size-full wp-image-1656" title="Screen Options for Comments" src="http://www.wongside.com/brian/blog/wp-content/uploads/2011/06/screenshot1.png" alt="" width="257" height="129" /></a></p>
<p>As it turns out, I&#8217;m able to increase the 20 to 100, or 1,000 or whatever.</p>
<p>So now you know, you don&#8217;t need a plug-in, and you certainly don&#8217;t need to edit code.  If you&#8217;ve got the <a href="http://wordpress.org/download/">latest version of WordPress</a>, you&#8217;re good to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wongside.com/brian/blog/2011/06/wordpress-comments-administration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I don&#8217;t post enough</title>
		<link>http://www.wongside.com/brian/blog/2011/05/i-dont-post-enough/</link>
		<comments>http://www.wongside.com/brian/blog/2011/05/i-dont-post-enough/#comments</comments>
		<pubDate>Thu, 12 May 2011 21:30:40 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Site News/Programming]]></category>

		<guid isPermaLink="false">http://www.wongside.com/brian/blog/?p=1616</guid>
		<description><![CDATA[As with many personal bloggers, I struggle to post on a regular basis. I&#8217;m not making any promises, but I&#8217;m gonna try to post more often. There&#8217;s so much going on, I think a lot of it deserves some attention.  I was looking back over my posting history, and realize that I used to post [...]]]></description>
			<content:encoded><![CDATA[<p>As with many personal bloggers, I struggle to post on a regular basis.</p>
<p>I&#8217;m not making any promises, but I&#8217;m gonna try to post more often. There&#8217;s so much going on, I think a lot of it deserves some attention.  I was looking back over my posting history, and realize that I used to post some really interesting (to me at least) stuff on a fairly regular basis.  My goal is to get back to that.</p>
<p>A quick glance on the right side with my Archives shows that I was able to do at least one post every month from February 2008-May  2010. What happened in May? Not really sure, but I did start work at DayNine in April 2010, and that may have led to a higher level of busy-ness, which in turn led to a lower level of posting.</p>
<p>In any case, we&#8217;ll see what happens. But here goes nothing&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wongside.com/brian/blog/2011/05/i-dont-post-enough/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Now WPtouch Enabled!</title>
		<link>http://www.wongside.com/brian/blog/2010/11/now-wptouch-enabled/</link>
		<comments>http://www.wongside.com/brian/blog/2010/11/now-wptouch-enabled/#comments</comments>
		<pubDate>Thu, 11 Nov 2010 06:18:08 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Site News/Programming]]></category>

		<guid isPermaLink="false">http://www.wongside.com/brian/blog/?p=1582</guid>
		<description><![CDATA[This blog is so forlorn. It&#8217;s pitiful how I haven&#8217;t posted an update in literally months. I&#8217;m simply too busy and not making this blog a priority. But it got a nice upgrade tonight. I enabled the WPTouch plugin, so now whenever you browse from a mobile device, it&#8217;ll look super slick. Enjoy!]]></description>
			<content:encoded><![CDATA[<p>This blog is so forlorn. It&#8217;s pitiful how I haven&#8217;t posted an update in literally months. I&#8217;m simply too busy and not making this blog a priority.</p>
<p>But it got a nice upgrade tonight. I enabled the <a href="http://wordpress.org/extend/plugins/wptouch/installation/">WPTouch plugin</a>, so now whenever you browse from a mobile device, it&#8217;ll look super slick. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wongside.com/brian/blog/2010/11/now-wptouch-enabled/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Andy&#8217;s on WordPress</title>
		<link>http://www.wongside.com/brian/blog/2009/08/andys-on-wordpress/</link>
		<comments>http://www.wongside.com/brian/blog/2009/08/andys-on-wordpress/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 22:03:52 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Site News/Programming]]></category>

		<guid isPermaLink="false">http://www.wongside.com/brian/blog/?p=1267</guid>
		<description><![CDATA[Another one has succumbed to the power of WordPress. Andy started blogging on WordPress yesterday, almost a week after Jay started blogging. His two most recent posts are about shoes. Anyways, welcome to WordPress and blogging, Andy. Keep it up!]]></description>
			<content:encoded><![CDATA[<p>Another one has succumbed to the power of WordPress. Andy <a href="http://wongside.com/andy/?p=4">started blogging on WordPress yesterday</a>, almost a week after Jay started blogging.</p>
<p>His two most recent posts are about shoes.</p>
<p>Anyways, welcome to WordPress and blogging, Andy. Keep it up!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wongside.com/brian/blog/2009/08/andys-on-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jay&#8217;s on WordPress</title>
		<link>http://www.wongside.com/brian/blog/2009/08/jays-on-wordpress/</link>
		<comments>http://www.wongside.com/brian/blog/2009/08/jays-on-wordpress/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 04:48:07 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Site News/Programming]]></category>

		<guid isPermaLink="false">http://www.wongside.com/brian/blog/?p=1253</guid>
		<description><![CDATA[Jay, one of the co-founders of this website, is up on WordPress. Check out his new blog. Keep up the blogging Jay, can&#8217;t let the content go stale.]]></description>
			<content:encoded><![CDATA[<p>Jay, one of the co-founders of this website, is up on WordPress. Check out <a href="http://wongside.com/jeremy/">his new blog</a>.</p>
<p>Keep up the blogging Jay, can&#8217;t let the content go stale.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wongside.com/brian/blog/2009/08/jays-on-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>News Reprint</title>
		<link>http://www.wongside.com/brian/blog/2009/07/news-reprint/</link>
		<comments>http://www.wongside.com/brian/blog/2009/07/news-reprint/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 01:03:45 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Culinarily Speaking]]></category>
		<category><![CDATA[Site News/Programming]]></category>

		<guid isPermaLink="false">http://www.wongside.com/brian/blog/?p=1117</guid>
		<description><![CDATA[Apparently, Yahoo! Finance picked up my steak story from the Wall Street Journal. Now you can read the article in more than one location. haha]]></description>
			<content:encoded><![CDATA[<p>Apparently, Yahoo! Finance picked up my <a href="http://finance.yahoo.com/family-home/article/107345/prime-time-for-steak-lovers.html">steak story from the Wall Street Journal</a>. Now you can read the article in more than one location. haha</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wongside.com/brian/blog/2009/07/news-reprint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>News Release!</title>
		<link>http://www.wongside.com/brian/blog/2009/07/news-release/</link>
		<comments>http://www.wongside.com/brian/blog/2009/07/news-release/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 15:57:14 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Culinarily Speaking]]></category>
		<category><![CDATA[Site News/Programming]]></category>

		<guid isPermaLink="false">http://www.wongside.com/brian/blog/?p=1048</guid>
		<description><![CDATA[Yesterday, I posted that there would be some exciting news coming out, and that it related directly to this blog. Without further ado, I give you an article about Brian Wong and USDA Prime beef at Costco. &#8220;How in the world!?!&#8221; you ask. Again, it all goes to this blog. So here&#8217;s the story: In [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.wongside.com/brian/blog/2009/07/exciting-news-tomorrowliterally/">Yesterday</a>, I posted that there would be some exciting news coming out, and that it related directly to this blog.</p>
<p>Without further ado, I give you an article about <strong><a href="http://online.wsj.com/article/SB10001424052970204423804574286451880334042.html">Brian Wong and USDA Prime beef at Costco</a></strong>.</p>
<p>&#8220;<strong>How in the world!?!</strong>&#8221; you ask. Again, it all goes to this blog.</p>
<p>So here&#8217;s the story:<br />
<span id="more-1048"></span>In July 2008, I found <a href="http://www.wongside.com/brian/blog/2008/07/usda-prime-at-costco/">USDA Prime beef at Costco</a>. I wrote about my incredible discovery as well as a <a href="http://www.wongside.com/brian/blog/2008/07/meat-pictures/">follow up post</a> with pictures, and my adventures in cooking it.</p>
<p>A year passes by, and a reporter with the <a href="http://online.wsj.com/home-page">Wall Street Journal</a> is on the story regarding the abundance of USDA Prime available at the retail level, i.e., Costco, Whole Foods, etc. She types something along the lines of &#8220;<a href="http://www.google.com/search?q=i+found+prime+beef+at+costco">I found prime beef at costco</a>&#8221; or maybe even &#8220;<a href="http://www.google.com/search?hl=en&amp;q=prime+beef+at+costco">prime beef at costco</a>&#8220;, and finds that I&#8217;m in the top few results. (Today, the first search puts me <a href="http://www.wongside.com/brian/blog/wp-content/uploads/2009/07/googlesearch1.png" rel="lightbox[1048]">second on Google&#8217;s search results</a>. The second search puts me <a href="http://www.wongside.com/brian/blog/wp-content/uploads/2009/07/googlesearch2.png" rel="lightbox[1048]">right at the top</a>&#8211;even ahead of Costco itself.)</p>
<p>She sends me an e-mail that looks something like this:</p>
<blockquote><p><strong>From</strong>: Katy McLaughlin<br />
<strong>To</strong>: Brian Wong<br />
<strong>Date</strong>: <span class="gI">Thu, Jul 9, 2009 at 11:05 AM<br />
<strong>Subject</strong>: </span><span class="gI">Wall Street Journal reporter read your blog and wants to talk to you</span></p>
<p>Hi Brian,</p>
<p>I&#8217;m a reporter at the Wall Street Journal.  I read your comments on your blog about finding USDA prime beef at Costco and being excited about cooking it.  I&#8217;m doing a story about this and wondered if I can interview you.</p>
<p>Would you let me know how to contact you asap?</p>
<p>Thanks so much in advance.</p>
<p>Katy McLaughlin<br />
Special Writer<br />
Wall Street Journal</p></blockquote>
<p><strong>What in the world?</strong> Then I get a phone call from her.  It&#8217;s a restricted number, so I was a bit wary, but I&#8217;m curious so I pick up. She introduces herself as Katy McLaughlin, and basically repeats the e-mail contents. It wasn&#8217;t the greatest time for a conversation since I was in the middle of work, so I asked her if I she could call me back.</p>
<p>Still taken aback by the whole thing, I figured it was a joke. Some funny person doing some funny business.  But then as any good member of <a href="http://en.wikipedia.org/wiki/Generation_Y">Generation Y</a> would do, I Googled her. And I looked her up on LinkedIn. The results seemed to affirm her claim.</p>
<p>I was eager to talk to her, so later that day I called her back. We talked for a good 20 minutes, and she asked me all kinds of questions, like how I found it, whether I was surprised, how I cooked it, etc.</p>
<p>Then I asked her when the story would be published. She indicated it would be sometime this week, but couldn&#8217;t give a definite answer.  She offered to e-mail me when it came out. I thanked her, and we hung up.</p>
<p>Fast forward to yesterday, and out of curiosity, I shot Katy an e-mail to inquire about the status of the article. I hadn&#8217;t pushed the &#8220;Send&#8221; button more than 30 seconds before I got another e-mail in my inbox:</p>
<blockquote><p>Tomorrow Brian, and you are in the story.  It will be in Personal  Journal.  Thanks so much.</p></blockquote>
<p><strong>Seriously? Wow!</strong></p>
<p>So there you have it folks. On this day, July 15, 2009 yours truly was quoted in a Wall Street Journal article on beef that made the front page of the &#8220;Personal Journal&#8221; section.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wongside.com/brian/blog/2009/07/news-release/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Exciting &#8220;News&#8221; Tomorrow&#8230;literally</title>
		<link>http://www.wongside.com/brian/blog/2009/07/exciting-news-tomorrowliterally/</link>
		<comments>http://www.wongside.com/brian/blog/2009/07/exciting-news-tomorrowliterally/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 00:14:57 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Randoms/Musings]]></category>
		<category><![CDATA[Site News/Programming]]></category>

		<guid isPermaLink="false">http://www.wongside.com/brian/blog/?p=1040</guid>
		<description><![CDATA[Barring any craziness, or an unexpected turn of events, I&#8217;ve got some exciting news to share tomorrow. For those rumor mongers among you, we&#8217;re not pregnant. But it&#8217;s something pretty exciting, and it directly relates to this blog.  I&#8217;ll keep you posted.]]></description>
			<content:encoded><![CDATA[<p>Barring any craziness, or an unexpected turn of events, I&#8217;ve got some exciting news to share tomorrow.</p>
<p>For those rumor mongers among you, we&#8217;re <strong>not</strong> pregnant. But it&#8217;s something pretty exciting, and it directly relates to this blog.  I&#8217;ll keep you posted.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wongside.com/brian/blog/2009/07/exciting-news-tomorrowliterally/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing Borders from Smileys</title>
		<link>http://www.wongside.com/brian/blog/2009/06/removing-borders-from-smileys/</link>
		<comments>http://www.wongside.com/brian/blog/2009/06/removing-borders-from-smileys/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 05:15:49 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Site News/Programming]]></category>

		<guid isPermaLink="false">http://www.wongside.com/brian/blog/?p=843</guid>
		<description><![CDATA[As I mentioned a few months ago, I updated my website to a new theme. An unfortunate consequence of doing that was that it put these ugly borders around all my smilies: Frankly, it made them look like they were in prison. What to do? Take a dive into the code of course! This was [...]]]></description>
			<content:encoded><![CDATA[<p>As I <a href="http://www.wongside.com/brian/blog/2009/04/new-theme/">mentioned a few months ago</a>, I updated my website to a new theme. An unfortunate consequence of doing that was that it put these ugly borders around all my smilies:</p>
<p><a href="http://www.wongside.com/brian/blog/wp-content/uploads/2009/05/smiley1.png" rel="lightbox[843]"><img class="alignnone size-full wp-image-848" title="smiley1" src="http://www.wongside.com/brian/blog/wp-content/uploads/2009/05/smiley1.png" alt="smiley1" width="17" height="17" /></a><a href="http://www.wongside.com/brian/blog/wp-content/uploads/2009/05/smiley2.png" rel="lightbox[843]"> <img class="alignnone size-full wp-image-847" title="smiley2" src="http://www.wongside.com/brian/blog/wp-content/uploads/2009/05/smiley2.png" alt="smiley2" width="17" height="17" /></a></p>
<p>Frankly, it made them look like they were in prison. What to do? Take a dive into the code of course!</p>
<p>This was actually made easier by a nifty little utility called <a href="http://getfirebug.com/">Firebug</a>. It&#8217;s billed as a tool for web development, so in this instance, it definitely served it&#8217;s purpose.</p>
<p>I right-clicked on a smiley chose &#8220;Inspect Element&#8221; from the menu, and that brought up a window that showed me that the style of this image was dictated by the style.css file, and the img selector. It had a border of 1 pixel all around:</p>
<pre class="brush: css; title: ;">
img {
border:1px solid #000000;
}
</pre>
<p>Firebug also showed me the code that was used to display the smiley:</p>
<pre class="brush: xml; title: ;">&lt;img class=&quot;wp-smiley&quot; alt=&quot;:-)&quot; src=.../&gt;</pre>
<p>Ah ha! They&#8217;re all tagged with the CSS class &#8220;wp-smiley&#8221;. That&#8217;s great because it means I could customize the CSS to remove the border.</p>
<p>So I hopped into the style.css file and added a new bit of code:</p>
<pre class="brush: css; title: ;">
img.wp-smiley{
border:0px;
}
</pre>
<p>That means that for each img tag with the wp-smiley class, the border should be zero pixels.</p>
<p>And there you have it. Smiley&#8217;s without borders! <img src='http://www.wongside.com/brian/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Happy coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wongside.com/brian/blog/2009/06/removing-borders-from-smileys/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

