<?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>Ed&#039;s Big Plans &#187; Wordpress</title>
	<atom:link href="http://eddiema.ca/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://eddiema.ca</link>
	<description>Biology, Computing, Adventure</description>
	<lastBuildDate>Tue, 07 Sep 2010 00:09:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Edit number of rows shown for ‘Visitor Maps and Who’s Online’</title>
		<link>http://eddiema.ca/2010/08/31/edit-number-of-rows-shown-for-visitor-maps-and-whos-online/</link>
		<comments>http://eddiema.ca/2010/08/31/edit-number-of-rows-shown-for-visitor-maps-and-whos-online/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 14:14:59 +0000</pubDate>
		<dc:creator>Eddie Ma</dc:creator>
				<category><![CDATA[Website Management]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Visitor Maps]]></category>
		<category><![CDATA[Who's Online]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://eddiema.ca/?p=2193</guid>
		<description><![CDATA[Brief: For those of you who use WordPress, a handy plug-in to see who&#8217;s been viewing your site is Visitor Maps and Who&#8217;s Online. You&#8217;ll notice that there isn&#8217;t a way to change the number of entries (rows) displayed in the Who&#8217;s Online and the Who&#8217;s Been Online pages in the plugin managing pages. In [...]]]></description>
			<content:encoded><![CDATA[<p><em><strong>Brief: </strong></em>For those of you who use WordPress, a handy plug-in to see who&#8217;s been viewing your site is <a href="http://wordpress.org/extend/plugins/visitor-maps/">Visitor Maps and Who&#8217;s Online</a>. You&#8217;ll notice that there isn&#8217;t a way to change the number of entries (rows) displayed in the <em>Who&#8217;s Online</em> and the <em>Who&#8217;s Been Online</em> pages in the plugin managing pages. In order to change that, you&#8217;re going to dive a little deeper. Here are step by step instructions on how to increase the number of displayed visitors for version 1.5.2..</p>
<p><em><strong>Requirements: </strong></em>Must have &#8220;WordPress&#8221; 3.x installed with the &#8220;Visitor Maps and Who&#8217;s Online&#8221; 1.x plugin installed.</p>
<p>(1) Log into your dashboard (<span style="text-decoration: underline;">wp-admin</span>).<br />
(2) Click on the <span style="text-decoration: underline;">Plugins</span> administration page &#8212; it&#8217;s in the far left column.<br />
(3) Scroll down the page and look for <span style="text-decoration: underline;">Visitor Maps and Who&#8217;s Online</span>.<br />
(4) Click on <span style="text-decoration: underline;">Edit</span> (near Deactivate and Settings).<br />
(5) In the far right column named <span style="text-decoration: underline;">Plugin Files</span>, click on &#8220;<span style="font-family: andale mono,times;">visitor-maps/class-wo-been.php</span>&#8220;.</p>
<p><img style="border:1px black solid" class="size-full wp-image-2205 alignnone" title="ClickOnWoBeen" src="http://eddiema.ca/wp-content/uploads/2010/08/ClickOnWoBeen.png" alt="" width="212" height="271" /></p>
<p>(6) In the text area named &#8220;<span style="text-decoration: underline;">Editing visitor-maps/class-wo-been.php (inactive)</span>&#8221; Search for the string &#8220;<span style="font-family: andale mono,times;">$rows_per_page = 25;</span>&#8220;.</p>
<p><img style="border:1px black solid" class="size-full wp-image-2203 alignnone" title="RowsPerPage" src="http://eddiema.ca/wp-content/uploads/2010/08/RowsPerPage.png" alt="" width="448" height="198" /></p>
<p>(7) Change the integer &#8220;<span style="font-family: andale mono,times;">25</span>&#8221; to any whole number you want. I chose &#8220;<span style="font-family: andale mono,times;">100</span>&#8220;.<br />
(8) Click on the button below labelled <span style="text-decoration: underline;">Update File</span>.</p>
<p><img style="border:1px black solid" class="size-full wp-image-2202 alignnone" title="UpdateFile" src="http://eddiema.ca/wp-content/uploads/2010/08/UpdateFile.png" alt="" width="384" height="145" /></p>
<p>And you&#8217;re done! To see the results, click on &#8220;Who&#8217;s Been Online&#8221; and checkout the extended list of visitors per page.</p>
<p><em><strong>Still Unsolved: </strong></em>There&#8217;s still one item I haven&#8217;t really looked into. The display that you get back is not actually the number of rows defined by <span style="font-family: andale mono,times;">$rows_per_page</span> &#8212; instead, this variable only tells the plugin the number of entries to load. What this means is that turning on a filter like &#8220;Show Bots: No&#8221; in &#8220;Who&#8217;s Been Online&#8221; counts the total number of entries <em>with</em> bots included, then removes them from the display &#8212; you end up <span style="font-family: andale mono,times;">$rows_per_page</span> minus the number of bots displayed <em>instead of</em> a total of <span style="font-family: andale mono,times;">$rows_per_page</span> non-bot rows. I&#8217;ll wait till the next version, perhaps the author is already working on it. For now, this quick fix should help.</p>
 <img src="http://eddiema.ca/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=2193" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://eddiema.ca/2010/08/31/edit-number-of-rows-shown-for-visitor-maps-and-whos-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Journalist: A Minimalist’s WordPress Theme</title>
		<link>http://eddiema.ca/2010/04/23/the-journalist-a-minimalists-wordpress-theme/</link>
		<comments>http://eddiema.ca/2010/04/23/the-journalist-a-minimalists-wordpress-theme/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 15:25:28 +0000</pubDate>
		<dc:creator>Eddie Ma</dc:creator>
				<category><![CDATA[Website Management]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://eddiema.ca/?p=1525</guid>
		<description><![CDATA[Brief: I&#8217;ve switched to &#8220;The Journalist&#8221; by Lucian E. Marin to combat the nagging page weight of more decorative WordPress themes. This should make loading my page far quicker. Ideally, I&#8217;d like to have it load as quickly as SnOwy, my wiki notebook. When I get some spare time, I&#8217;ll add my logo to the [...]]]></description>
			<content:encoded><![CDATA[<p><em><strong>Brief: </strong></em>I&#8217;ve switched to &#8220;The Journalist&#8221; by <a rel="designer" href="http://lucianmarin.com/">Lucian E. Marin</a> to combat the nagging page weight of more decorative WordPress themes. This should make loading my page far quicker. Ideally, I&#8217;d like to have it load as quickly as <a href="http://wiki.eddiema.ca">SnOwy</a>, my wiki notebook. When I get some spare time, I&#8217;ll add my logo to the title region of this page&#8211; don&#8217;t worry (he says to himself), I&#8217;ll optimize the file size for that as well.</p>
<p><em><strong>Update: </strong></em>I&#8217;ve made the modifications I always do &#8212; Inline comments now appear on both the main and archive-like pages, and search results are trimmed as excerpts.</p>
<p><strong>Inline comments</strong></p>
<p>Added the following div after the the div class=&#8221;main&#8221; and before the div class=&#8221;meta group&#8221; &#8212; changes made to index.php and archive.php.</p>
<blockquote>
<pre>&lt;div class="recent-comment"&gt;
&lt;?php $comment_array = get_approved_comments($wp_query-&gt;post-&gt;ID); ?&gt;
&lt;?php if ($comment_array) {  ?&gt;
    &lt;?php foreach($comment_array as $comment){ ?&gt;
        &lt;div style="background-color: #f6f6f6; border-top: 1px #bbb solid;"&gt;
        &lt;strong&gt;&lt;?php comment_author_link(); ?&gt; says...&lt;/strong&gt;
        &lt;/div&gt;&lt;div style="padding: 10px 0px 10px 0px;"&gt;
        &lt;?php comment_text(); ?&gt;
        &lt;/div&gt;
    &lt;?php } ?&gt;
&lt;?php } ?&gt;
&lt;/div&gt;</pre>
</blockquote>
<p><strong>Excerpts in search results</strong></p>
<p>Changed a call to &#8220;the_content()&#8221; to a call to &#8220;the_excerpt()&#8221; &#8212; changes made to search.php.</p>
 <img src="http://eddiema.ca/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1525" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://eddiema.ca/2010/04/23/the-journalist-a-minimalists-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arclite Theme – Invisible Text in Submenu Fix</title>
		<link>http://eddiema.ca/2010/03/05/arclite-theme-invisible-text-in-submenu-fix/</link>
		<comments>http://eddiema.ca/2010/03/05/arclite-theme-invisible-text-in-submenu-fix/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 23:51:17 +0000</pubDate>
		<dc:creator>Eddie Ma</dc:creator>
				<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[Arclite]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[Tweaks]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://eddiema.ca/?p=1342</guid>
		<description><![CDATA[Brief: The Arclite WordPress Theme is great, but the default CSS for the submenu causes the text to be almost completely invisible when moused over. The fix is an easy edit in style.css. ul#nav ul a:hover, ul#nav ul a:hover span, ul#nav a.active ul a:hover span, ul#nav li.current_page_item ul a:hover span, ul#nav li.current_page_ancestor ul a:hover span, [...]]]></description>
			<content:encoded><![CDATA[<p><strong><em>Brief: <span style="font-weight: normal;"><span style="font-style: normal;">The Arclite WordPress Theme is great, but the default CSS for the submenu causes the text to be almost completely invisible when moused over. The fix is an easy edit in style.css.</span></span></em></strong></p>
<pre>ul#nav ul a:hover, ul#nav ul a:hover span,
ul#nav a.active ul a:hover span,
ul#nav li.current_page_item ul a:hover span,
ul#nav li.current_page_ancestor ul a:hover span,
ul#nav ul li.current_page_parent a:hover span,
ul#nav ul li.current_page_item a:hover span,
ul#nav ul li.current_page_parent li.current_page_item a:hover span{
  //color: #fff;
  color: #2d83d5;
  background: #CCCCFF;
}</pre>
<p>To make the text look like a deep blue on light blue, I changed the default white colour for a:hover in the sub-menus section to match the text colour of the blue in the rest of the theme plus a lighter blue as its background.</p>
 <img src="http://eddiema.ca/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1342" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://eddiema.ca/2010/03/05/arclite-theme-invisible-text-in-submenu-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Logo and Title with Arclite Theme v2.02</title>
		<link>http://eddiema.ca/2010/02/15/logo-and-title-with-arclite-theme-v2-02/</link>
		<comments>http://eddiema.ca/2010/02/15/logo-and-title-with-arclite-theme-v2-02/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 17:48:53 +0000</pubDate>
		<dc:creator>Eddie Ma</dc:creator>
				<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[Arclite]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://eddiema.ca/?p=1262</guid>
		<description><![CDATA[This is an update to this post. It&#8217;s even easier in this version of Arclite 2.02 to throw up both a logo and title. Edit header.php as follows&#8230; Before: &#60;?php // logo image? $logo = (get_arclite_option('logo')); if($logo): ?&#62; &#60;h1 class="logo"&#62;&#60;a href="&#60;?php bloginfo('url'); ?&#62;/"&#62;&#60;img src="&#60;?php echo $logo; ?&#62; "title="&#60;?php bloginfo('name'); ?&#62;" alt="&#60;?php bloginfo('name'); ?&#62;" /&#62;&#60;/a&#62;&#60;/h1&#62; &#60;?php [...]]]></description>
			<content:encoded><![CDATA[<p>This is an update to <a href="http://eddiema.ca/?p=1045">this</a> post.</p>
<p>It&#8217;s even easier in this version of Arclite 2.02 to throw up both a logo and title.</p>
<p>Edit <strong>header.php</strong> as follows&#8230;</p>
<p><em><strong>Before:</strong></em></p>
<pre>&lt;?php
      // logo image?
      $logo = (get_arclite_option('logo'));
if($logo): ?&gt;
      &lt;h1 class="logo"&gt;&lt;a href="&lt;?php bloginfo('url'); ?&gt;/"&gt;&lt;img src="&lt;?php echo $logo; ?&gt;
      "title="&lt;?php bloginfo('name');  ?&gt;" alt="&lt;?php bloginfo('name');  ?&gt;" /&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;?php else: ?&gt;
      &lt;h1 class="logo"&gt;&lt;a href="&lt;?php bloginfo('url'); ?&gt;/"&gt;&lt;?php bloginfo('name'); ?&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;?php endif;  ?&gt;</pre>
<p><em><strong>After:</strong></em></p>
<pre>&lt;?php
      // logo image?
      $logo = (get_arclite_option('logo'));
if($logo): ?&gt;
      &lt;h1 class="logo"&gt;&lt;a href="&lt;?php bloginfo('url'); ?&gt;/"&gt;&lt;img src="&lt;?php echo $logo; ?&gt;"
      title="&lt;?php bloginfo('name');  ?&gt;" alt="&lt;?php bloginfo('name');  ?&gt;"
      <span style="background-color: #ffcc00;">style="vertical-align:text-bottom;"</span> /&gt;<span style="background-color: #00ccff;">&lt;?php bloginfo('name'); ?&gt;</span>&lt;/a&gt;&lt;/h1&gt;
&lt;?php else: ?&gt;
      &lt;h1 class="logo"&gt;&lt;a href="&lt;?php bloginfo('url'); ?&gt;/"&gt;&lt;?php bloginfo('name'); ?&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;?php endif;  ?&gt;</pre>
<p><em><strong>That&#8217;s it!</strong></em></p>
<ul>
<li>
<pre><span style="background-color: #ffcc00;">style="vertical-align:text-bottom;"</span></pre>
<ul>
<li>This chunk is used to keep the logo in line with the title text as last time.</li>
</ul>
</li>
</ul>
<ul>
<li>
<pre><span style="background-color: #00ccff;">&lt;?php bloginfo('name'); ?&gt;</span></pre>
<ul>
<li>This chunk produces the title text.</li>
</ul>
</li>
</ul>
 <img src="http://eddiema.ca/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1262" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://eddiema.ca/2010/02/15/logo-and-title-with-arclite-theme-v2-02/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Having an image logo AND logotype in Arclite (WordPress)</title>
		<link>http://eddiema.ca/2009/12/22/having-an-image-logo-and-logotype-in-arclite-wordpress/</link>
		<comments>http://eddiema.ca/2009/12/22/having-an-image-logo-and-logotype-in-arclite-wordpress/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 19:03:20 +0000</pubDate>
		<dc:creator>Eddie Ma</dc:creator>
				<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[Arclite]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://eddiema.ca/?p=1045</guid>
		<description><![CDATA[Arclite is still by far my favourite theme available on WordPress. At some point in time I wanted to have both my snazzy Sigma/E logo up along with the logotype &#8220;Ed&#8217;s Big Plans&#8221;. Arclite doesn&#8217;t allow this (at least there is no such setting in this version), so after some more digging in header.php, I [...]]]></description>
			<content:encoded><![CDATA[<p>Arclite is still by far my favourite theme available on WordPress. At some point in time I wanted to have both my snazzy Sigma/E logo up along with the logotype &#8220;Ed&#8217;s Big Plans&#8221;. Arclite doesn&#8217;t allow this (at least there is no such setting in this version), so after some more digging in <em><strong>header.php</strong></em>, I found this chunk of code.</p>
<pre>&lt;?php
  // logo image?
  if(<span style="background-color: #ccffcc;">get_option('arclite_logo')=='yes'</span> &amp;&amp; <span style="background-color: #ccffcc;">get_option('arclite_logoimage'</span>)) { ?&gt;
  &lt;h1&gt;&lt;a href="&lt;?php bloginfo('url'); ?&gt;/"&gt;
    <span style="background-color: #ffff99;">&lt;img</span>
      <span style="background-color: #ffff99;">src="&lt;?php print get_option('arclite_logoimage'); ?&gt;"</span>
      <span style="background-color: #ffff99;">title="&lt;?php bloginfo('name');  ?&gt;"</span>
      <span style="background-color: #ffff99;">alt="&lt;?php bloginfo('name');  ?&gt;" /&gt;</span>&lt;/a&gt;&lt;/h1&gt;
&lt;?php } ?&gt;</pre>
<p>The above is code that checks if <span style="background-color: #ccffcc;">the user has selected to use an image logo</span>&#8211; when this logo is available, Arclite <span style="background-color: #ffff99;">displays the image</span> and moves on down the page. Alternatively&#8230;</p>
<pre>&lt;?php else { ?&gt;
  &lt;h1&gt;&lt;a href="&lt;?php bloginfo('url'); ?&gt;/"&gt;&lt;?php <span style="background-color: #ccffff;">bloginfo('name');</span> ?&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;?php } ?&gt;</pre>
<p>&#8230;when the user has selected not to use an image, Arclite handily <span style="background-color: #ccffff;">prints out logotype</span>.</p>
<p>Since I want Arclite to render both the image logo and logotype when they&#8217;re available, I&#8217;ve simply slapped the logotype printing in with the former snippet of code to make this&#8230;</p>
<pre>&lt;?php
  // logo image?
  if(<span style="background-color: #ccffcc;">get_option('arclite_logo')=='yes'</span> &amp;&amp; <span style="background-color: #ccffcc;">get_option('arclite_logoimage')</span>) { ?&gt;
  &lt;h1&gt;&lt;a href="&lt;?php bloginfo('url'); ?&gt;/"&gt;
    <span style="background-color: #ffff99;">&lt;img</span>
      <span style="background-color: #ffff99;">src="&lt;?php print get_option('arclite_logoimage'); ?&gt;"</span>
      <span style="background-color: #ffff99;">title="&lt;?php bloginfo('name');  ?&gt;"</span>
      <span style="background-color: #ffff99;">alt="&lt;?php bloginfo('name');  ?&gt;"</span>
      <span style="background-color: #ffcc99;">style="vertical-align:text-bottom;"</span> <span style="background-color: #ffff99;">/&gt;</span>
    &lt;?php <span style="background-color: #ccffff;">bloginfo('name');</span> ?&gt;
  &lt;/a&gt;&lt;/h1&gt;
&lt;?php }</pre>
<p>Quick and painless <img src='http://eddiema.ca/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Some <span style="background-color: #ffcc99;">inline CSS</span> was used to get the logo and the text to sit inline with one another; by default, the logo goes out of line up high and the text goes down low.</p>
<p>Note that when one chooses not to use an image logo in Arclite&#8217;s settings, it just goes back to the default logotype behaviour&#8211; exactly as you&#8217;d expect.</p>
 <img src="http://eddiema.ca/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1045" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://eddiema.ca/2009/12/22/having-an-image-logo-and-logotype-in-arclite-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Favicon :D</title>
		<link>http://eddiema.ca/2009/12/22/new-favicon-d/</link>
		<comments>http://eddiema.ca/2009/12/22/new-favicon-d/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 15:14:03 +0000</pubDate>
		<dc:creator>Eddie Ma</dc:creator>
				<category><![CDATA[Website Management]]></category>
		<category><![CDATA[favicon]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://eddiema.ca/?p=1026</guid>
		<description><![CDATA[Brief: I&#8217;ve added a favicon to this blog. I&#8217;m unsure of whether or not modern versions of IE support specifying favicons the XHTML header way, so I&#8217;ll have to check it out some time. All browsers however allow the URL squatting method (which should have gone away before 2000 really). The latter doesn&#8217;t allow one [...]]]></description>
			<content:encoded><![CDATA[<p><em><strong>Brief: </strong></em>I&#8217;ve added a <a href="http://en.wikipedia.org/wiki/Favicon">favicon</a> to this blog. I&#8217;m unsure of whether or not modern versions of IE support specifying favicons the XHTML header way, so I&#8217;ll have to check it out some time. All browsers however allow the URL squatting method (which should have gone away before 2000 really). The latter doesn&#8217;t allow one to specify icons on a per page basis, rather the entire domain ends up with the same icon.</p>
<p>For any webpage, just add code similar to the below to specify a favicon&#8230;</p>
<pre>&lt;link rel="icon" type="image/png" href="/edfavicon.png" /&gt;</pre>
<p>For WordPress, I&#8217;ve inserted that line into <em><strong>header.php</strong></em> inside the <em><strong>head</strong></em> tag.</p>
 <img src="http://eddiema.ca/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1026" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://eddiema.ca/2009/12/22/new-favicon-d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Inline Comments</title>
		<link>http://eddiema.ca/2009/11/24/wordpress-inline-comments/</link>
		<comments>http://eddiema.ca/2009/11/24/wordpress-inline-comments/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 16:29:51 +0000</pubDate>
		<dc:creator>Eddie Ma</dc:creator>
				<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://eddiema.ca/?p=953</guid>
		<description><![CDATA[Thanks to flisterz for this tip! I added inline comments to this blog&#8211; it actually involves editing index.php, something I generally avoided doing. Peering into the code, it&#8217;s as normal as any other PHP so all of those silly worries were washed aside. The WordPress Codex does an excellent job of &#8212; well, it&#8217;s an [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks to <a href="http://www.flisterz.com/">flisterz</a> for this <a href="http://www.flisterz.com/2008/08/09/wordpress-show-latest-comments-for-each-post-on-main-page/">tip</a>!</p>
<p>I added inline comments to this blog&#8211; it actually involves editing index.php, something I generally avoided doing. Peering into the code, it&#8217;s as normal as any other PHP so all of those silly worries were washed aside. The <a href="http://codex.wordpress.org/Main_Page">WordPress Codex</a> does an excellent job of &#8212; well, it&#8217;s an incomplete API reference so it at the very least lists the functions that exist if it doesn&#8217;t truly explain them all.</p>
<p>Anyway&#8211; I didn&#8217;t just copy the hint from flisterz one to one because I wanted different functionality&#8211; but it did offer an example that let me make my changes much more easily. Because I don&#8217;t get very many comments, I don&#8217;t mind having complete comments show up inline on the main page instead of just an excerpt. As well, I wanted to have nice title bars to separate out the comments too&#8230; finally, while I was mucking around in the code, I decided to move the post tags up right beneath the title of each post instead of at the very bottom.</p>
<p>Changes made are inside index.php located before &lt;?php end_while() ?&gt;, just as in flisterz&#8217;s tip&#8211; here&#8217;s my version.</p>
<pre>&lt;div class="recent-comment"&gt;
&lt;?php $comment_array = get_approved_comments($wp_query-&gt;post-&gt;ID); ?&gt;
&lt;?php if ($comment_array) {  ?&gt;
    &lt;?php foreach($comment_array as $comment){ ?&gt;
    &lt;br /&gt;
        &lt;div style="background-color: #DDD9C6; border: 1px #F2EFE5 solid;"&gt;
        &lt;em&gt;&lt;?php comment_author_link(); ?&gt; says...&lt;/em&gt;
        &lt;/div&gt;&lt;div&gt;
        &lt;?php comment_text(); ?&gt;
        &lt;/div&gt;
    &lt;?php } ?&gt;
&lt;?php } ?&gt;
&lt;/div&gt;</pre>
<p>In future, I&#8217;ll probably want to clean up the markup a bit by moving the style changes to this theme&#8217;s CSS. Oh, while I&#8217;m at it, I should also thank <a href="http://digitalnature.ro/">Digital Nature</a> for this awesome theme (<a href="http://wordpress.org/extend/themes/arclite">Arclite</a>).</p>
 <img src="http://eddiema.ca/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=953" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://eddiema.ca/2009/11/24/wordpress-inline-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yay! Domain Move Done!</title>
		<link>http://eddiema.ca/2009/10/12/yay-domain-move-done/</link>
		<comments>http://eddiema.ca/2009/10/12/yay-domain-move-done/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 16:47:46 +0000</pubDate>
		<dc:creator>Eddie Ma</dc:creator>
				<category><![CDATA[Website Management]]></category>
		<category><![CDATA[Domain]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://eddiema.ca/?p=792</guid>
		<description><![CDATA[Brief: It changed from being something remarkably daunting to being something remarkably easy&#8211; two lines were added to wp-config.php as follows: /////20091012 - CHANGED for DOMAIN MOVE. define('WP_SITEURL', 'http://eddiema.ca'); define('WP_HOME', 'http://eddiema.ca'); ///// &#8211; After that, the apache &#8216;.conf&#8217; file got an update so that both tin.blogdns.com and eddiema.ca pointed to the same doc root. As [...]]]></description>
			<content:encoded><![CDATA[<p><em><strong>Brief:</strong></em> It changed from being something remarkably daunting to being something remarkably easy&#8211; two lines were added to wp-config.php as follows:</p>
<pre>/////20091012 - CHANGED for DOMAIN MOVE.
define('WP_SITEURL', 'http://eddiema.ca');
define('WP_HOME', 'http://eddiema.ca');
/////</pre>
<p>&#8211; After that, the apache &#8216;.conf&#8217; file got an update so that both tin.blogdns.com and eddiema.ca pointed to the same doc root.</p>
<p>As far as I understand, this means that legacy posts (although branded with the previous subdomain in the mySQL table) can be served up under my new domain name, while new posts will be written to the table using the new branding. This is the behaviour I was hoping for! No need to update legacy entries, and full forward compatibility.</p>
<p>&#8211; Great! The wiki and my ticketing system are still working!</p>
 <img src="http://eddiema.ca/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=792" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://eddiema.ca/2009/10/12/yay-domain-move-done/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
