<?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>Lewis Bilsland</title>
	<atom:link href="http://www.lewisbilsland.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lewisbilsland.co.uk</link>
	<description>Web Designer Edinburgh</description>
	<lastBuildDate>Fri, 13 Jan 2012 01:28:36 +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 from Sub directory to Root folder</title>
		<link>http://www.lewisbilsland.co.uk/blog/wordpress/wordpress-from-sub-to-root-folder/</link>
		<comments>http://www.lewisbilsland.co.uk/blog/wordpress/wordpress-from-sub-to-root-folder/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 12:20:56 +0000</pubDate>
		<dc:creator>Lewis</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.lewisbilsland.co.uk/?p=144</guid>
		<description><![CDATA[If you work on a test site for your new wordpress website there comes a point when you need to make the site live and move from the test folder and into the root. There are a few steps to follow but it&#8217;s straightforward and the only time consuimng part is waiting for the many [...]]]></description>
			<content:encoded><![CDATA[<p>If you work on a test site for your new wordpress website there comes a point when you need to make the site live and move from the test folder and into the root. There are a few steps to follow but it&#8217;s straightforward and the only time consuimng part is waiting for the many wordpress files to upload.</p>
<p><strong>1.</strong> Firstly take a backup of your test site folder. If something happens at least you can restore everythign back to the original state and try again.</p>
<p><strong>2.</strong> Copy all the files of /blog folder into the main root of your site. Make sure you copy the .htaccess file too. Make sure you remove and index.html folders or index.php and any image folders that do not need to be there.</p>
<p><strong>3. </strong>Open your wp-config.php file of the files you just moved over to the root folder and the line below, it needs to be added towards the base of the page and will be the last define statement:</p>
<p>define(&#8216;RELOCATE&#8217;,true);</p>
<p>when you have done that save the file and upload to the root</p>
<p><strong>4.</strong> Now open your browser and open the page http://www.yourdomain.com/wp-login.php and enter your admin login details.</p>
<p><strong>5.</strong> In your admin area go to the General Settings and make sure in WordPress address (URL) field, you have http://www.yourdomain.com and remove the url placed in the Blog address field. Make sure there is no trailing &#8220;/&#8221; in either of the fields.</p>
<p><strong>6.</strong> Check your .htaccess file in the root directory and make the content like this:</p>
<p># BEGIN WordPress</p>
<p>&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine On</p>
<p>RewriteBase /<br />
RewriteCond %{REQUEST_FILENAME} !-f</p>
<p>RewriteCond %{REQUEST_FILENAME} !-d</p>
<p>RewriteRule . /index.php [L]</p>
<p>&lt;/IfModule&gt;</p>
<p># END WordPress</p>
<p>Once this has been done you are now ready to test, you may notice that some images placed in your pages have been broken, all you need to do is click on each and point them to your new folder, you will be able to do this within the media library. Or alternatively you can leave your wp-content folder/uploads intact within your subfolder and remove all other files.</p>
<p>Any new images you place in your site will be uploaded to the root upload folder.</p>
<p><strong>7. </strong>Finally again open wp-config.php and remove</p>
<p>define(&#8216;RELOCATE&#8217;,true);</p>
<p>save the file and upload.</p>
<p>all done!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lewisbilsland.co.uk/blog/wordpress/wordpress-from-sub-to-root-folder/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Styling comments</title>
		<link>http://www.lewisbilsland.co.uk/blog/wordpress/styling-comments/</link>
		<comments>http://www.lewisbilsland.co.uk/blog/wordpress/styling-comments/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 20:39:22 +0000</pubDate>
		<dc:creator>Lewis</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.lewisbilsland.co.uk/?p=28</guid>
		<description><![CDATA[WordPress is great when used as a cms, one thing many forget to apply is styling to the comments pages, comments can be fully configured and styled to tie in with the overall look and feel of a new site, using graphics and css styling can also enhance the usability of the comment feature, to [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress is great when used as a cms, one thing many forget to apply is styling to the comments pages, comments can be fully configured and styled to tie in with the overall look and feel of a new site, using graphics and css styling can also enhance the usability of the comment feature, to style the comments on my site i used the following code:</p>
<h2>The php code</h2>
<p>This was added to the comments.php file:</p>
<p>{code type=php}&lt;ol&gt;<br />
&lt;?php foreach ($comments as $comment) : ?&gt;<br />
&lt;li &lt;?php echo $oddcomment; ?&gt;id=&#8221;comment-&lt;?php comment_ID() ?&gt;&#8221;&gt;<br />
&lt;cite&gt;<br />
&lt;?php if(function_exists(&#8216;get_avatar&#8217;)) { echo get_avatar($comment, &#8217;35&#8242;); } ?&gt;<br />
&lt;span&gt;&lt;?php comment_author_link() ?&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;?php comment_time() ?&gt;&lt;/span&gt; on &lt;a href=&#8221;#comment-&lt;?php comment_ID() ?&gt;&#8221; title=&#8221;"&gt;&lt;?php comment_date(&#8216;F jS, Y&#8217;) ?&gt;&lt;/a&gt; &lt;?php edit_comment_link(&#8216;edit&#8217;,'&amp;nbsp;&amp;nbsp;&#8217;,&#8221;); ?&gt;<br />
&lt;/cite&gt;<br />
&lt;div&gt;&lt;?php comment_text() ?&gt;&lt;/div&gt;<br />
&lt;?php if ($comment-&gt;comment_approved == &#8217;0&#8242;) : ?&gt;<br />
&lt;em&gt;Your comment is awaiting moderation.&lt;/em&gt;<br />
&lt;?php endif; ?&gt;<br />
&lt;/li&gt;<br />
&lt;?php<br />
/* Changes every other comment to a different class */<br />
$oddcomment = ( empty( $oddcomment ) ) ? &#8216;class=&#8221;alt&#8221; &#8216; : &#8221;;<br />
?&gt;<br />
&lt;?php endforeach; /* end for each comment */ ?&gt;<br />
&lt;/ol&gt;</p>
<p>{/code}</p>
<h2><img class="alignnone size-full wp-image-111" title="spacer" src="http://www.lewisbilsland.co.uk/wp-content/uploads/2010/01/spacer.jpg" alt="" width="647" height="38" /></h2>
<h2>Stylesheet</h2>
<p>All you need to do is add this to your stylesheet, and create a background image for the comment list ul, the comments are also gravatar enabled.</p>
<p>{code type=css}<br />
.commenttext{<br />
padding: 10px 0px 0px 0px;<br />
line-height: 18px;<br />
}</p>
<p>.commentsheading {<br />
padding: 3px 5px 3px 0px;<br />
margin: 0px 0px 8px 0px;<br />
text-decoration: none;<br />
}</p>
<p>.alt {<br />
margin: 0;<br />
padding: 10px;<br />
}</p>
<p>.commentlist {<br />
padding: 0;<br />
text-align: justify;<br />
}</p>
<p>.commentlist li {<br />
background: #f3efec url(&#8216;images/comment_background.jpg&#8217;) repeat-x left top;<br />
margin: 15px 0 10px;<br />
padding: 15px 15px 10px 15px;<br />
list-style: none;</p>
<p>}<br />
.commentlist li ul li {<br />
margin-right: -5px;<br />
margin-left: 10px;<br />
}</p>
<p>.commentlist p {<br />
margin: 10px 5px 10px 0px;<br />
}<br />
.children { padding: 0; }</p>
<p>#commentform p {<br />
margin: 5px 0;<br />
}</p>
<p>.nocomments {<br />
text-align: center;<br />
margin: 0;<br />
padding: 0;<br />
}</p>
<p>.commentmetadata {<br />
margin: 0;<br />
display: block;<br />
}</p>
<p>.commentlist li, #commentform input, #commentform textarea {<br />
font: 0.9em Helvetica, Arial, sans-serif;<br />
}<br />
.commentlist li ul li {<br />
font-size: 12px;<br />
}</p>
<p>.commentlist li {<br />
font-weight: bold;<br />
}</p>
<p>.commentlist li .avatar {<br />
float: left;<br />
padding: 0px 10px 0px 0px;<br />
}</p>
<p>.commentlist cite, .commentlist cite a {<br />
font-weight: bold;<br />
font-style: normal;<br />
font-size: 12px;<br />
}</p>
<p>.commentlist p {<br />
font-weight: normal;<br />
line-height: 18px;<br />
text-transform: none;<br />
}</p>
<p>#commentform p {<br />
font-family: Helvetica, Arial, sans-serif;<br />
}</p>
<p>.commentmetadata {<br />
font-weight: normal;<br />
}</p>
<p>#commentform input {<br />
width: 170px;<br />
padding: 2px;<br />
margin: 5px 5px 1px 0;<br />
}</p>
<p>#commentform {<br />
margin: 5px 10px 0 0;<br />
}<br />
#commentform textarea {<br />
width: 100%;<br />
padding: 0px;<br />
}<br />
#respond:after {<br />
content: &#8220;.&#8221;;<br />
display: block;<br />
height: 0;<br />
clear: both;<br />
visibility: hidden;<br />
}<br />
#commentform #submit {<br />
margin: 0 0 5px auto;<br />
float: left;<br />
}</p>
<p>{/code}</p>
<p><img class="alignnone size-full wp-image-111" title="spacer" src="http://www.lewisbilsland.co.uk/wp-content/uploads/2010/01/spacer.jpg" alt="" width="647" height="38" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lewisbilsland.co.uk/blog/wordpress/styling-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

