<?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>Utah WordPress Web Design &#187; web design</title>
	<atom:link href="http://www.brmecham.com/category/web-design/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brmecham.com</link>
	<description>Brian Mecham, Utah Web Designer, WordPress Theme Developer, WordPress Templates, CSS Ninja</description>
	<lastBuildDate>Thu, 22 Dec 2011 00:21:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>WordPress Recent Comments with Excerpt and Gravatar</title>
		<link>http://www.brmecham.com/wordpress-recent-comments-with-excerpt-and-gravatar/</link>
		<comments>http://www.brmecham.com/wordpress-recent-comments-with-excerpt-and-gravatar/#comments</comments>
		<pubDate>Fri, 13 May 2011 19:53:45 +0000</pubDate>
		<dc:creator>Brian Mecham</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[excerpt]]></category>
		<category><![CDATA[gravatar]]></category>
		<category><![CDATA[recent comments]]></category>

		<guid isPermaLink="false">http://www.brmecham.com/?p=133</guid>
		<description><![CDATA[I build a lot of WordPress websites and it&#8217;s great that there are so many plugins available for various functions, but sometimes I run into a situation where the right plugin just doesn&#8217;t exist (or if it does I didn&#8217;t find it). I needed a widget to display the WordPress recent comments with the comment [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-142" title="WordPress Recent Comments with Excerpt and Gravatar" src="http://www.brmecham.com/wp-content/uploads/2011/05/wordpress-recent-comments-excerpt-gravatar.jpg" alt="WordPress Recent Comments with Excerpt and Gravatar" width="428" height="240" /></p>
<p>I build a lot of WordPress websites and it&#8217;s great that there are so many plugins available for various functions, but sometimes I run into a situation where the right plugin just doesn&#8217;t exist (or if it does I didn&#8217;t find it). I needed <span class="hilite">a widget to display the WordPress recent comments with the comment excerpt and the users gravatar</span> (globally recognized avatar). Here&#8217;s what I came up with, modified based on some code from others looking for a similar solution:<span id="more-133"></span></p>
<p>Put this into your sidebar template or elsewhere:</p>
<pre>&lt;?php $comments = get_comments('status=approve&amp;number=5'); ?&gt;
&lt;h3 class="widget-title"&gt;Recent Comments&lt;/h3&gt;
&lt;ul class="recomm"&gt;
&lt;?php foreach ($comments as $comment) { ?&gt;
    &lt;li class="recomm-wrapper"&gt;&lt;?php
        $title = get_the_title($comment-&gt;comment_post_ID);
        echo get_avatar( $comment, '53' );
        echo '&lt;span class="recommauth"&gt;' . ($comment-&gt;comment_author) . '&lt;/span&gt;';
        ?&gt; said: "&lt;?php
        echo wp_html_excerpt( $comment-&gt;comment_content, 72 ); ?&gt;.."
        on &lt;a href="&lt;?php echo get_permalink($comment-&gt;comment_post_ID); ?&gt;"
           rel="external nofollow" title="&lt;?php echo $title; ?&gt;"&gt;
           &lt;?php echo $title; ?&gt; &lt;/a&gt;
    &lt;/li&gt;
&lt;?php }  ?&gt; &lt;/ul&gt;</pre>
<p>Here&#8217;s the CSS styling I&#8217;m using (you may need to modify it according to your theme):</p>
<pre>ul.recomm {
	margin-left: 0;
	margin-bottom: 36px;
	list-style: none;
}
.recomm-wrapper {
   clear:both;
   min-height: 53px;
   margin-bottom: 14px;
}
.recomm .avatar {
   float:left;
   margin-top:5px;
   margin-right:10px;
   border: #d8d8d8 1px solid;
}
.recommauth {
	font-weight: bold;
}</pre>
<p><span class="hilite">Go to Utah Liberation to see this code in action</span>: <a title="Utah Liberation politics" href="http://www.utahliberation.com/" target="_blank">utahliberation.com</a> (bottom of the sidebar)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brmecham.com/wordpress-recent-comments-with-excerpt-and-gravatar/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How to Find the Absolute Path on Your Web Server</title>
		<link>http://www.brmecham.com/how-to-find-the-absolute-path-on-your-web-server/</link>
		<comments>http://www.brmecham.com/how-to-find-the-absolute-path-on-your-web-server/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 23:06:52 +0000</pubDate>
		<dc:creator>Brian Mecham</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[absolute path]]></category>
		<category><![CDATA[directory path]]></category>
		<category><![CDATA[pathinfo]]></category>
		<category><![CDATA[server path]]></category>

		<guid isPermaLink="false">http://www.brmecham.com/?p=61</guid>
		<description><![CDATA[From time to time, especially when moving a website from one server to another, I have to find out what the "absolute path" of my website is.  Absolute path pertains to the directory on the server that the website is installed on...]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-large wp-image-82" title="find your web server absolute path" src="http://www.brmecham.com/wp-content/uploads/2009/07/web-server-e1272963787823-428x159.jpg" alt="find your web server absolute path" width="428" height="159" />From time to time, especially when moving a website from one server to another, I have to find out what the &#8220;absolute path&#8221; of my website is.  Absolute path pertains to the directory on the server that the website is installed on.</p>
<p>Sometimes when moving a Joomla, WordPress or other website to a different directory or different server you&#8217;ll need to change the absolute path for the site to work. In joomla this requires editing the configuration.php file, in WordPress this sometimes requires editing the database or ensuring that you update the settings before moving your files/database over to the new directory/server.</p>
<h2>How do I find out what the absolute path is?</h2>
<p>The easiest way is to create a file named pathinfo.php and paste only the following code into that file:</p>
<pre>&lt;?php
   $path = getcwd();
   echo "Your Absoluthe Path is: ";
   echo $path;
?&gt;
</pre>
<p>Now, upload pathinfo.php into the root directory of your website and view it in your internet browser ( example: http://www.mysite.com/pathinfo.php )</p>
<p>This will display your absolute path. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.brmecham.com/how-to-find-the-absolute-path-on-your-web-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to remove blank lines in dreamweaver</title>
		<link>http://www.brmecham.com/how-to-remove-blank-lines-in-dreamweaver/</link>
		<comments>http://www.brmecham.com/how-to-remove-blank-lines-in-dreamweaver/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 07:25:45 +0000</pubDate>
		<dc:creator>Brian Mecham</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[blank lines]]></category>
		<category><![CDATA[dreamweaver]]></category>

		<guid isPermaLink="false">http://www.brmecham.com/?p=59</guid>
		<description><![CDATA[As I am creating websites I sometimes come across situations that require a more than basic knowledge and a bit of research to figure out. Here&#8217;s a helpful hint regarding removing blank lines from an html file using dreamweaver, should you ever want to do that without having to manually delete the lines&#8230; Click CTRL [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-large wp-image-87" title="How to remove blank lines in Adobe Dreamweaver" src="http://www.brmecham.com/wp-content/uploads/2009/07/Dreamweaver-CS4-427x204.png" alt="How to remove blank lines in Adobe Dreamweaver" width="580" /></p>
<p>As I am creating websites I sometimes come across situations that require a more than basic knowledge and a bit of research to figure out.</p>
<p>Here&#8217;s a helpful hint regarding removing blank lines from an html file using dreamweaver, should you ever want to do that without having to manually delete the lines&#8230;</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">Click CTRL + F</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">Select &#8220;Current document&#8221; in &#8220;Find in&#8221; (You can also select the folder if you have multiple files)</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">Search in &#8220;Source code&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">Tick &#8220;Use regular expression&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">Type &#8220;[\r\n]{2,}&#8221; (without quotes) in &#8220;Find&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">Type &#8220;\n&#8221; (without quotes) in &#8220;Replace&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">Press &#8220;Replace All&#8221;</div>
<ol>
<li>Click CTRL + F</li>
<li>Select &#8220;Current document&#8221; in &#8220;Find in&#8221; (You can also select the folder if you have multiple files)</li>
<li>Search in &#8220;Source code&#8221;</li>
<li>Tick &#8220;Use regular expression&#8221;</li>
<li>Type &#8220;[\r\n]{2,}&#8221; (without quotes) in &#8220;Find&#8221;</li>
<li>Type &#8220;\n&#8221; (without quotes) in &#8220;Replace&#8221;</li>
<li>Press &#8220;Replace All&#8221;</li>
</ol>
<p>That&#8217;s it. Have fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brmecham.com/how-to-remove-blank-lines-in-dreamweaver/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

