<?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>The Wordpress Guru</title>
	<atom:link href="http://wordpress-guru.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://wordpress-guru.co.uk</link>
	<description>Need advice? Ask The Guru! (still under development)</description>
	<lastBuildDate>Mon, 01 Mar 2010 10:10:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to fix the &#8220;Press This&#8221; 404 Error</title>
		<link>http://wordpress-guru.co.uk/archives/how-to-fix-the-press-this-404-error/</link>
		<comments>http://wordpress-guru.co.uk/archives/how-to-fix-the-press-this-404-error/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 10:10:50 +0000</pubDate>
		<dc:creator>Jay Versluis</dc:creator>
				<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://wordpress-guru.co.uk/?p=253</guid>
		<description><![CDATA[If you&#8217;re not already using Press This, maybe now&#8217;s a good time to start. Press This is a for you if you&#8217;d like to share excertps from other websites on your own site. It&#8217;s a simple Javascript bookmarklet that opens a new window with a link to the site you&#8217;re on. It then lets you [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re not already using Press This, maybe now&#8217;s a good time to start. Press This is a for you if you&#8217;d like to share excertps from other websites on your own site. It&#8217;s a simple Javascript bookmarklet that opens a new window with a link to the site you&#8217;re on. It then lets you add pictures, text and post it to your site &#8211; just as if you&#8217;re writing a new post. It&#8217;s genious! Find it under &#8220;Tools&#8221; and drag the link to your browser bar &#8211; no installation needed, it&#8217;ll only be a simple bookmark.</p>
<p>However, on some sites the new window brings up a 404 error, indicating that something&#8217;s amiss. Turns out that Wordpress is getting confused about certain mod-rewrite rules or something&#8230; Whatever the reason: Fret not, there&#8217;s an easy solution to fix this (thanks to <a href="http://blogmum.com/2009/08/how-to-fix-press-this-404-errors/" target="_blank">Blogmum</a> and the <a href="http://wordpress.org/support/topic/190089?replies=11#post-931195" target="_blank">Wordpress Forum</a> for these instructions).</p>
<ul>
<li>Right-click the Press This link on your browser bar, and select &#8220;properties&#8221;</li>
<li>You&#8217;ll see a long line of javascript code in the location box</li>
<li>Find the following code: u=&#8217;+e(l.href)+&#8217;</li>
<li>Change it to this: u=&#8217;+e(l.href.replace(/\//g,&#8217;\\/&#8217;))+&#8217;</li>
<li>Tada &#8211; Press This is working now. Hurra!</li>
</ul>
<p>Please note that you might find it easier to copy the entire line of code into a text editor, search for the string and then post it back into the Properties section.</p>
<p>Happy Pressing <img src='http://wordpress-guru.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://wordpress-guru.co.uk/archives/how-to-fix-the-press-this-404-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to modify the Modularity Lite Theme from Graph Paper Press</title>
		<link>http://wordpress-guru.co.uk/archives/how-to-modify-the-modularity-lite-theme-from-graph-paper-press/</link>
		<comments>http://wordpress-guru.co.uk/archives/how-to-modify-the-modularity-lite-theme-from-graph-paper-press/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 18:33:32 +0000</pubDate>
		<dc:creator>Jay Versluis</dc:creator>
				<category><![CDATA[Themes]]></category>
		<category><![CDATA[modularity lite]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://wordpress-guru.co.uk/?p=242</guid>
		<description><![CDATA[If you don&#8217;t know this theme yet, you should check it out at Graph Paper Press.
Modularity Lite is Thad Allender&#8217;s freebie version of a larger framework. I was customising this theme for Jerry Hyde&#8217;s site recently, and thought I&#8217;d take some notes to share with you.
Slowing Down the Slideshow
I&#8217;ve been through every PHP file I [...]]]></description>
			<content:encoded><![CDATA[<p>If you don&#8217;t know this theme yet, you should check it out at <a href="http://graphpaperpress.com/members/go.php?r=20769&amp;i=l0">Graph Paper Press</a>.</p>
<p>Modularity Lite is Thad Allender&#8217;s freebie version of a larger framework. I was customising this theme for <a href="http://www.jerryhyde.co.uk" target="_blank">Jerry Hyde&#8217;s site</a> recently, and thought I&#8217;d take some notes to share with you.</p>
<h3>Slowing Down the Slideshow</h3>
<p>I&#8217;ve been through every PHP file I could find to no avail for a &#8220;display duration&#8221; setting of sorts. Turns our the slideshow is generated in Java Script, hence the correct setting can be found in the header.php file, somewhere down the lower thrid end. The code block starts with &gt;&gt; if ($slideshow_state == &#8216;On&#8217;) &lt;&lt;</p>
<p>In it, you&#8217;ll find two parameters: SPEED which is in fact the cross fade duration, and TIMEOUT which is the duration of each slide. 1000 is about 1 second, 2000 is 2 seconds, and so forth.</p>
<h3>Display Slideshow on pages other than The Blog</h3>
<p>This is a tricky one, but there&#8217;s an easy solution as ever.</p>
<p>The slideshow Java Script code is contained in the header.php file, which means it loads on every page &#8211; it just doesn&#8217;t get activated. Activation for the slideshow happens in index.php, which only gets loaded when blog posts are displayed &#8211; not when pages are loaded (because they use the page.php template if available &#8211; which it is in this case). All we need to do is to copy this code from index.php into our page.php file and the slideshow will show up on ALL pages.</p>
<pre>&lt;!-- Begin Slideshow --&gt;
&lt;?php include (THEMELIB . '/apps/slideshow-static.php'); ?&gt;
</pre>
<p>If you&#8217;d like to make it show only on one particular page, find out its page ID and use an if-then statement.</p>
<h3>Displaying more images in the Slideshow</h3>
<p>The file you need to modify for this is /library/apps/slideshow-static.php &#8211; it&#8217;ll list 5 images, just add more or use your own file names. The images for the slideshow are stored in the /images subfolder of your theme.</p>
<h3>Playing with the Navigation Menu</h3>
<p>If you&#8217;d like to add or remove items from the Nav Menu, have a look at the nav.php file in the main theme directory. All dropdowns are CSS styled HTML lists, so amending them with your requirements shouldn&#8217;t be too taxing.</p>
<h3>Modify the Credits</h3>
<p>The Credits are part of the footer.php file, should you wish to add, remove or amend portions (such as your affiliate link to <a href="http://graphpaperpress.com/members/go.php?r=20769&amp;i=l0" target="_blank">Graph Paper Press</a>). Please note that it&#8217;s good practice to give credit where credit is due, and if you&#8217;re using a free theme, why not give the author a link to say thanks.</p>
<p>Have fun <img src='http://wordpress-guru.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://wordpress-guru.co.uk/archives/how-to-modify-the-modularity-lite-theme-from-graph-paper-press/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get advertising banners for your site</title>
		<link>http://wordpress-guru.co.uk/archives/how-to-get-advertising-banners-for-your-site/</link>
		<comments>http://wordpress-guru.co.uk/archives/how-to-get-advertising-banners-for-your-site/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 21:29:16 +0000</pubDate>
		<dc:creator>Jay Versluis</dc:creator>
				<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://wordpress-guru.co.uk/?p=237</guid>
		<description><![CDATA[My experiences with both Amazon Widgets and Google Ads is simple: they don&#8217;t work &#8211; all they do is ruin my sites. I&#8217;ve not made a penny with them, keeping in mind I run about 20 sites which amounts to plenty of traffic. I believe we as surfers know what an &#8220;unhelpful&#8221; ad looks like [...]]]></description>
			<content:encoded><![CDATA[<p>My experiences with both Amazon Widgets and Google Ads is simple: they don&#8217;t work &#8211; all they do is ruin my sites. I&#8217;ve not made a penny with them, keeping in mind I run about 20 sites which amounts to plenty of traffic. I believe we as surfers know what an &#8220;unhelpful&#8221; ad looks like and we automatically blank it out &#8211; much like billboard ads, TV ads or newspaper ads. Sites like Facebook and eBay don&#8217;t use them either, indicating they&#8217;re a waste of time.</p>
<p>Advertising should supports your site, not destroy it. Say you&#8217;re writing about technical aspects of web design, then ads for web hosting and domain registration are helpful &#8211; and supportive. But ads about rather unrelated material are not, especially if they&#8217;re generated by contextual algorithms. Which products and services work best is a matter of trial and error I&#8217;m afraid, and there&#8217;s no set formula.</p>
<p>Here&#8217;s another example:</p>
<p>Imagine you&#8217;re writing about music and bands, then maybe iTunes is a good ad to have. Say you&#8217;re writing a post specifically about Alexandra Burke&#8217;s new tour, why not have &#8220;Buy her album on iTunes&#8221; at the bottom &#8211; if someone makes a purchase via that link, you&#8217;ll get a cut. This link has to go diretcly to one song or one specific album, not to &#8220;iTunes in general&#8221; though.</p>
<p>Getting your hands on specific ads and banners is fairly easy by joining some of the big advertising affiliate partners. Amazon and many others have their own affiflate scheme, but larger brands often outsource this business to companies like</p>
<ul>
<li><a rel="nofollow" href="http://click.linksynergy.com/fs-bin/click?id=5jt*z6C68lU&amp;offerid=117947&amp;type=3&amp;subid=0" target="_blank">Linkshare<br />
</a></li>
<li><a rel="nofollow" href="http://www.awin1.com/awclick.php?mid=3&amp;id=97889" target="_blank">Affiliate Window </a></li>
<li><a rel="nofollow" href="http://www.shareasale.com/r.cfm?b=44&amp;u=402692&amp;m=47&amp;urllink=&amp;afftrack=" target="_blank">Share A Sale</a></li>
<li><a href="http://www.e-junkie.com/?r=101721" target="_blank">E-junkie</a></li>
<li>Clickbank</li>
<li>Commission Junction</li>
</ul>
<p>Let&#8217;s look at some vocabulary:</p>
<p>You as an &#8220;advertising displayer&#8221; are called an &#8220;affiliate&#8221;. The other side of the business is called a &#8220;merchant&#8221;, which is you have a product or site and ads that you want other affiliates to display. For now, you&#8217;re an &#8220;affilate&#8221;.</p>
<p>You&#8217;ll get paid into your bank account once you reach a certain threshold of cash (say £50 or £100). You&#8217;ll make money either by people clicking on those links (that&#8217;s called &#8220;pay-per-click&#8221;), or if people actually buy something on the advertiser&#8217;s site (that&#8217;s called &#8220;pay-per-lead&#8221;). The money comes from &#8220;merchants&#8221;, who in turn pay people like you and me for having adverts displayed.</p>
<p>The list of programmes above &#8211; like many others out there &#8211; provide text links and banners in all different sizes to suit your posts and sidebars. A banner is usually part of a &#8220;campaign&#8221;, which can change from time to time. Ads in a campaign will dynamicaly update to the next campaign so you won&#8217;t have to get involved &#8211; unless you&#8217;d like to of course.</p>
<p>The way to display ads is either as a text link <a rel="nofollow" href="http://www.versluis.com/" target="_blank">like this</a> or banner (usually used in a plan text widget in your sidebar, or hard coded say into your header). Some theme developers leave comments in their code to indicate where to put an ad, and which dimensions will work well. An example for such a theme is <a href="https://www.e-junkie.com/ecom/gb.php?cl=37428&amp;c=ib&amp;aff=101721" target="_blank">Aerodrome by Joe Fishler</a>.</p>
<p>Navigating the affiliate programmes can be a tad cumbersome though. They&#8217;re fairly complex and provide a LOT of data. Your first step is to join one of those sites above, say Link Share. They approve or decline you as an affiliate.</p>
<p>But someone like Link Share has thousands of merchants on file. To display a specific advertiser&#8217;s links (say iTunes for example), you&#8217;ll have to &#8220;join&#8221; that particular merchant. That merchant will then have a look at your site and either approve or decline your application. There are plenty of spam sites out there, and of course big brands don&#8217;t want to be associated with those. Once a merchant has approved your site, you&#8217;re ready to display their ads. It can take a day or two until you hear from them, but sometimes the decision is made in minutes.</p>
<p>In a nutshell:</p>
<p>Someone like Link Share is only the &#8220;delivery platform&#8221; for adverts and deals with tracking those ads and giving you payouts. But the actual adverts and campaings come from merchants (like iTunes or Sky) who have also joined.</p>
<p>There are MANY other affiliate schemes you can join, and it&#8217;s about finding the one(s) that are right for you, or have the products/brands you&#8217;d like to promote. If you like a particular site, have a look at the bottom and look for something like &#8220;webmasters&#8221; or &#8220;make money promoting us&#8221;.</p>
<p>The key is to use these affiliate links casually &#8211; you can use them in a post, or even tweet them when it&#8217;s relevant. Don&#8217;t overload your visitors though. Nothing is worse than a site cluttered with more adverts than content!</p>
<p>One last thought to consider:</p>
<p>if you&#8217;re running an e-commerce site (i.e. you have products for sale, and the website is primarily there to sell them), why drive customers away to other services? Amazon and eBay do this sometimes, and there&#8217;s really no need for it. An e-commerce site makes money by selling products, not by advertising.</p>
<p>Good luck <img src='http://wordpress-guru.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://wordpress-guru.co.uk/archives/how-to-get-advertising-banners-for-your-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to repair MySQL tables from the Command Line</title>
		<link>http://wordpress-guru.co.uk/archives/how-to-repair-mysql-tables-from-the-command-line-2/</link>
		<comments>http://wordpress-guru.co.uk/archives/how-to-repair-mysql-tables-from-the-command-line-2/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 19:22:18 +0000</pubDate>
		<dc:creator>Jay Versluis</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://wordpress-guru.co.uk/?p=233</guid>
		<description><![CDATA[Sometimes your tables crash and your website is unresponsive. You don&#8217;t have access to phpMyAdmin to do a repair, because you can&#8217;t access Plesk. That sucks!
When you&#8217;re out in the field and all that&#8217;s at hand is a trusty SSH connection from your mobile, here&#8217;s an alternative way to bring your Wordpress Sites back to [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes your tables crash and your website is unresponsive. You don&#8217;t have access to phpMyAdmin to do a repair, because you can&#8217;t access Plesk. That sucks!</p>
<p>When you&#8217;re out in the field and all that&#8217;s at hand is a trusty SSH connection from your mobile, here&#8217;s an alternative way to bring your Wordpress Sites back to life.</p>
<p>You need the following ingredients:</p>
<ul>
<li>Database Name (I&#8217;m using &#8220;databasename&#8221; here)</li>
<li>User Name (I&#8217;m using &#8220;username&#8221; here)</li>
<li>Password for the above</li>
</ul>
<p>All three will be in your wp-admin.php file, use Vi to check if you&#8217;ve forgotten them.</p>
<p>Next it&#8217;s time to get busy with some MySQL commands I keep forgetting (hence this article):</p>
<pre>mysql -u username -p</pre>
<p>This will ask you for your password, which you can type but won&#8217;t see written out onscreen. Upon success, you&#8217;ll be deep in MySQL territory, not the Linux prompt anymore. Next, we&#8217;ll select our actual database in use for the site:</p>
<pre>use databasename;</pre>
<p>Note the importance of the semicolon at the end of the line. Now let&#8217;s see which tables are in that database and what they&#8217;re called:</p>
<p>show tables;</p>
<p>Excellent! We&#8217;re getting there! You&#8217;ll see everything that&#8217;s in your database, almost like in phpMyAdmin (just less convenient). By default, you should be seeing entries like &#8220;wp_options&#8221;, &#8220;wp_links&#8221;, wp_posts&#8221; and so forth. The &#8220;wp_&#8221; is the default prefix for Wordpress tables, but depending on your installation this may have changed to something else.</p>
<p>Depending on what else you&#8217;re using your database for, there may well be other entries from projects such as PHPList, Drupal, phpBB and so forth. The principles are applicable for every application that&#8217;s using MySQL.</p>
<p>You&#8217;ve got a whole host of commands at your fingertips now, but the most important ones for a rescue mission like this are probably</p>
<pre>check table yourtablename;</pre>
<pre>repair table yourtablename;</pre>
<p>The &#8220;check table&#8221; command seems to repair minor errors, like hosts not having closed connections. It also shows you what&#8217;s wrong with a table, or if it&#8217;s OK. The &#8220;repair&#8221; command checks, optimizes and repairs a table &#8211; so it&#8217;s probably the best one to use.</p>
<p>Unlike phpMyAdmin, you have to issue one command per table; you can&#8217;t select all tables and say &#8220;repair all&#8221; (and if you can, I don&#8217;t know about it &#8211; in which case, please leave a comment and enlighten us).</p>
<p>For Wordpress, that&#8217;s 11 tables you need to check &#8211; so it&#8217;s not a major inconvenience.</p>
<p>Once you&#8217;re ready to leave the heady heights of MySQL, type &#8220;quit&#8221; and you&#8217;re back to the command prompt.</p>
<p>Good Luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://wordpress-guru.co.uk/archives/how-to-repair-mysql-tables-from-the-command-line-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to batch-upgrade plugins in Wordpress 2.9+</title>
		<link>http://wordpress-guru.co.uk/archives/how-to-batch-upgrade-plugins-in-wordpress-2-9/</link>
		<comments>http://wordpress-guru.co.uk/archives/how-to-batch-upgrade-plugins-in-wordpress-2-9/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 13:54:43 +0000</pubDate>
		<dc:creator>Jay Versluis</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://wordpress-guru.co.uk/?p=230</guid>
		<description><![CDATA[One of the big features announced with Wordpress 2.9 was the ability to upgrade several plugins at once. Trouble is, it&#8217;s not an easy to find feature. Fret not, for The Guru has found it!
You&#8217;d expect to go to Plugins, check the ones you want to upgrade and choose &#8220;Upgrade All&#8221; from the bulk actions [...]]]></description>
			<content:encoded><![CDATA[<p>One of the big features announced with Wordpress 2.9 was the ability to upgrade several plugins at once. Trouble is, it&#8217;s not an easy to find feature. Fret not, for The Guru has found it!</p>
<p>You&#8217;d expect to go to Plugins, check the ones you want to upgrade and choose &#8220;Upgrade All&#8221; from the bulk actions drop down. Er&#8230; no.</p>
<p>Instead you need to go to TOOLS &#8211; UPGRADE and see a list of upgradable plugins there. You can tick the ones you want to upgrade, or check all, then hit the button as usual and hack in your FTP details. Note that this list won&#8217;t be there if all your plugins are up-tp-date.</p>
<p>The upgrade process will then be started in what&#8217;s known as &#8220;maintenance mode&#8221;. It can take some time with little to no feedback, so please be patient while you watch an empty browser window. Make sure you leave your browser alone until you see a &#8220;success&#8221; message.</p>
<p>According to this <a href="http://core.trac.wordpress.org/ticket/11542" target="_blank">trac ticket</a>, this functionality may well see an overhaul in future releases.</p>
<p>Until then, enjoy <img src='http://wordpress-guru.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://wordpress-guru.co.uk/archives/how-to-batch-upgrade-plugins-in-wordpress-2-9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Where are the Backup Files in Plesk?</title>
		<link>http://wordpress-guru.co.uk/archives/where-are-the-backup-files-in-plesk/</link>
		<comments>http://wordpress-guru.co.uk/archives/where-are-the-backup-files-in-plesk/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 09:42:26 +0000</pubDate>
		<dc:creator>Jay Versluis</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://wordpress-guru.co.uk/?p=228</guid>
		<description><![CDATA[By default, they&#8217;re located in
/var/lib/psa/dumps
It&#8217;s useful to clear this directory out every once in a while, especially because Plesk doesn&#8217;t overwrite old backups.
So if you ever find that you&#8217;re using 60GB of storage on your system, but are fully aware that your entire site shouln&#8217;t be bigger than 100MB, then this is a good place [...]]]></description>
			<content:encoded><![CDATA[<p>By default, they&#8217;re located in</p>
<p><strong>/var/lib/psa/dumps</strong></p>
<p>It&#8217;s useful to clear this directory out every once in a while, especially because Plesk doesn&#8217;t overwrite old backups.</p>
<p>So if you ever find that you&#8217;re using 60GB of storage on your system, but are fully aware that your entire site shouln&#8217;t be bigger than 100MB, then this is a good place to start looking.</p>
]]></content:encoded>
			<wfw:commentRss>http://wordpress-guru.co.uk/archives/where-are-the-backup-files-in-plesk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to update multiple Wordpress installations in one swoop?</title>
		<link>http://wordpress-guru.co.uk/archives/hot-to-update-multiple-wordpress-installations/</link>
		<comments>http://wordpress-guru.co.uk/archives/hot-to-update-multiple-wordpress-installations/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 18:13:27 +0000</pubDate>
		<dc:creator>Jay Versluis</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://wordpress-guru.co.uk/?p=224</guid>
		<description><![CDATA[We&#8217;ll do that with the help of our friend the &#8220;cp&#8221; command and SSH access to our server.
You can find a good manual for all the switches at Tux Files or ask The Die, or simply try &#8220;cp &#8211;help&#8221; at the command prompt.
I use &#8220;cp&#8221; to update multiple installations of Wordpress on the same server, [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ll do that with the help of our friend the &#8220;cp&#8221; command and SSH access to our server.</p>
<p>You can find a good manual for all the switches at <a href="http://www.tuxfiles.org/linuxhelp/fileman.html" target="_blank">Tux Files</a> or ask <a href="http://linux.die.net/man/1/cp" target="_blank">The Die</a>, or simply try &#8220;cp &#8211;help&#8221; at the command prompt.</p>
<p>I use &#8220;cp&#8221; to update multiple installations of Wordpress on the same server, whenever an upgrade is available.</p>
<p>Rather than hit the &#8220;upgrade&#8221;button in each back end, which will download and unpack the files for each installation, I only need to download the latest Wordpress tarball once (it&#8217;s available at http://wordpress.org/latest.tar.gz or http://wordpress.org/latest.zip). I then make amendmends if and when I need them, and then cp the whole directory into all my installations.</p>
<p>Here&#8217;s the full command I use:</p>
<p>cp -r /tmp/wordpress/* /path/to/my/site</p>
<p>-r means I want to copy directories as well as files (recursively).</p>
<p>The trouble here is that I&#8217;m being asked each time if I really want to overwrite that one file &#8211; so we need to find a workaround there. The -f switch doesn&#8217;t do the trick, for reasons unbeknownest to me. Therefore, let&#8217;s look at Pipes. Since our answer is always YES (or y for short), we can put that in front of our command, and then execute it like so:</p>
<p>y | cp -r /tmp/wordpress/* path/to/my/site</p>
<p>You could even go a step further and write a shell script that&#8217;ll take care of all your installations for you.</p>
<p>Maybe we&#8217;ll cover that when I figured out how to do it.</p>
<p>Until then, enjoy <img src='http://wordpress-guru.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://wordpress-guru.co.uk/archives/hot-to-update-multiple-wordpress-installations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress.com vs self-hosted</title>
		<link>http://wordpress-guru.co.uk/archives/wordpress-com-vs-self-hosted/</link>
		<comments>http://wordpress-guru.co.uk/archives/wordpress-com-vs-self-hosted/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 14:06:37 +0000</pubDate>
		<dc:creator>Jay Versluis</dc:creator>
				<category><![CDATA[Domains and Hosting]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://wordpress-guru.co.uk/?p=198</guid>
		<description><![CDATA[There are several free blogging platforms out there, and all of them are good to get started right away. Here&#8217;s a quick list of the ones that pop into my head:

Blogger (by Google)
Typepad
Moveable Type
Live Journal (by Microsoft)
Drupal
Wordpress

The latter two are Content Management Systems, which makes them more complex than an online diary and ideal for [...]]]></description>
			<content:encoded><![CDATA[<p>There are several free blogging platforms out there, and all of them are good to get started right away. Here&#8217;s a quick list of the ones that pop into my head:</p>
<ul>
<li>Blogger (by Google)</li>
<li>Typepad</li>
<li>Moveable Type</li>
<li>Live Journal (by Microsoft)</li>
<li>Drupal</li>
<li>Wordpress</li>
</ul>
<p>The latter two are Content Management Systems, which makes them more complex than an online diary and ideal for building websites. The others are more like online diaries, but all of them let you jot down some thoughts and share them with others, who in turn can leave their thoughts and comments.</p>
<p>Wordpress is different from all the others because it comes in two flavours:</p>
<h3>Wordpress.com</h3>
<p>is a free for all hosted service with a good choice of Layouts (called Themes) and Plugins (those are sidebar widgets and little programmes to add functionality to your blog). You get 5GB of web space and don&#8217;t have to worry about finding a web host. You&#8217;ll be part of a big blogging community and can start with literally no knowledge of HTML &amp; Co. However, this version is limited in what you can achieve with it.</p>
<p>Then there&#8217;s</p>
<h3>Wordpress.org,</h3>
<p>which is the &#8220;software&#8221; you can install on a web server and expand to whatever you see fit. It works just like the free version, with the advantage that you can add as many Themes and Plugins to it as you like: turn your site into a shopping cart, use it as Framework to build a proper website, or amend the code to your heart&#8217;s content. It&#8217;s all open source. You&#8217;ll have to have your own webspace with MySQL database, a little knowledge about HTML and how to use an FTP client though.</p>
<p>I reccomend signung up for a free account at Wordpress.com first and play around with it to get a feel for the platform. You&#8217;ll have a URL like yourblog.wordpress.com, but you can add a proper domain (like yourblog.com) for a little bit extra if you want. If it does what you want it to, great! If you find the choice of Themes and Plugins a bit limited, or if you&#8217;re looking for a special function you want on your new site, you can always import your posts and pages into a self-hosted version of Wordpress later.</p>
<p>The main advantage of a self hosted Wordpress over the free version is that you have unlimited control of how your website looks and what it does. Any functionality you can think of, someone&#8217;s written a plugin for it. There are hundreds of thousands of designs available, and if you&#8217;re comfortable hacking code, you can even build your own Themes and Plugins.</p>
<ul>
<li>Need an ecommerce site?</li>
<li>A unique photo blog?</li>
<li>Want to automatically post a new picture every so many hours?</li>
<li>Want to write or take pictures on your mobile, the send it to your site?</li>
</ul>
<p>In that case, Self hosted is for you.</p>
<p>Hosting is easy to get (Easyspace and 1&amp;1 are good hosts), and I also offer hosting packages specifically for Wordpress. You get the latest version pre-installed on my server and automatic core upgrades too. I can use a domain you already own, or register one for you too. <a href="http://wordpress-guru.co.uk/wordpress-hosting/">Check out Guru Hosting</a> for all that and more.</p>
<p>Plenty of tutorials on how to get started are on Wordpress.com, and they even have some cool video tutorials about every aspect of the platform on Wordpress.tv.</p>
<p>Happy Blogging <img src='http://wordpress-guru.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://wordpress-guru.co.uk/archives/wordpress-com-vs-self-hosted/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PayPal Buttons are not to scale in Thesis</title>
		<link>http://wordpress-guru.co.uk/archives/paypal-buttons-are-not-to-scale-in-thesis/</link>
		<comments>http://wordpress-guru.co.uk/archives/paypal-buttons-are-not-to-scale-in-thesis/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 19:33:35 +0000</pubDate>
		<dc:creator>Jay Versluis</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://wordpress-guru.co.uk/?p=194</guid>
		<description><![CDATA[Indeed they&#8217;re not, they look waaaaay to big and ugly.
Help is at hand by adding this code to your Cutsom CSS File in Thesis:
.custom .format_text input, #commentform input, #commentform textarea {
width:auto;
}
Instant relief.
]]></description>
			<content:encoded><![CDATA[<p>Indeed they&#8217;re not, they look waaaaay to big and ugly.</p>
<p>Help is at hand by adding this code to your Cutsom CSS File in Thesis:</p>
<pre><strong>.custom .format_text input, #commentform input, #commentform textarea </strong>{<span style="text-decoration: underline;">
<a>width</a>:auto;
</span>}</pre>
<p>Instant relief.</p>
]]></content:encoded>
			<wfw:commentRss>http://wordpress-guru.co.uk/archives/paypal-buttons-are-not-to-scale-in-thesis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Dropdown Menu hides behind Videos</title>
		<link>http://wordpress-guru.co.uk/archives/css-dropdown-menu-hides-behind-videos/</link>
		<comments>http://wordpress-guru.co.uk/archives/css-dropdown-menu-hides-behind-videos/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 19:14:54 +0000</pubDate>
		<dc:creator>Jay Versluis</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://wordpress-guru.co.uk/?p=192</guid>
		<description><![CDATA[Yes, that&#8217;s an annoying one &#8211; and it has less to do with your Theme&#8217;s CSS and more to do with teh Flash Player.
Easy remidy is at hand, even though it means that you need to add code to each video.
Here&#8217;s how you do it:
Your videos will be embedded with both &#60;OBJECT&#62; and &#60;EMBED&#62; tags [...]]]></description>
			<content:encoded><![CDATA[<p>Yes, that&#8217;s an annoying one &#8211; and it has less to do with your Theme&#8217;s CSS and more to do with teh Flash Player.</p>
<p>Easy remidy is at hand, even though it means that you need to add code to each video.</p>
<p>Here&#8217;s how you do it:</p>
<p>Your videos will be embedded with both &lt;OBJECT&gt; and &lt;EMBED&gt; tags to make Internet Explorer and Firefox happy at the same time. You need to amend the following statement in the &lt;OBJECT&gt;&lt;/OBJECT&gt; tags:</p>
<pre>&lt;param value="transparent" name="wmode"&gt;&lt;/param&gt;</pre>
<p>You also need to put the following attribute into your &lt;EMBED&gt; statement:</p>
<pre>wmode="transparent"</pre>
<p>Happy Days <img src='http://wordpress-guru.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://wordpress-guru.co.uk/archives/css-dropdown-menu-hides-behind-videos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install MySQL on CentOS</title>
		<link>http://wordpress-guru.co.uk/archives/how-to-install-mysql-on-centos/</link>
		<comments>http://wordpress-guru.co.uk/archives/how-to-install-mysql-on-centos/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 18:33:06 +0000</pubDate>
		<dc:creator>Jay Versluis</dc:creator>
				<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://wordpress-guru.co.uk/?p=185</guid>
		<description><![CDATA[Assuming you&#8217;d like to run Wordpress on your very own vanilla CentOS system, open a terminal window and do the following:
yum install php-mysql mysql mysql-server
/sbin/chkconfig --levels 235 mysqld on
/etc/init.d/mysqld start

You have to be loggen on as root to do this.
The next thing you probably want to do is create a database so you can run [...]]]></description>
			<content:encoded><![CDATA[<p>Assuming you&#8217;d like to run Wordpress on your very own vanilla CentOS system, open a terminal window and do the following:</p>
<pre><code>yum install php-mysql mysql mysql-server
/sbin/chkconfig --levels 235 mysqld on
/etc/init.d/mysqld start
</code></pre>
<p>You have to be loggen on as root to do this.</p>
<p>The next thing you probably want to do is create a database so you can run Wordpress on it. As you may know, we need phpMyAdmin to do this, so we&#8217;ll install that next:</p>
<pre>yum install phpmyadmin</pre>
<p>In case it doesn&#8217;t work, phpmyadmin is available from EPEL or RPM Forge &#8211; check out <a href="http://wiki.centos.org/AdditionalResources/Repositories" target="_blank">this article</a> if you haven&#8217;t got it on your system.</p>
<p>Now we need to restart apache so it&#8217;ll know about his new companion:</p>
<pre>service httpd restart</pre>
<p>Excellent! We&#8217;re getting there. Now let&#8217;s create that database&#8230;.</p>
<p>Well, I&#8217;m stuck here! I&#8217;ll let you know when I&#8217;ve figured it out. Until then, happy googling <img src='http://wordpress-guru.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://wordpress-guru.co.uk/archives/how-to-install-mysql-on-centos/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How to modify an existing theme</title>
		<link>http://wordpress-guru.co.uk/archives/how-to-modify-an-existing-theme/</link>
		<comments>http://wordpress-guru.co.uk/archives/how-to-modify-an-existing-theme/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 10:14:23 +0000</pubDate>
		<dc:creator>Jay Versluis</dc:creator>
				<category><![CDATA[Themes]]></category>

		<guid isPermaLink="false">http://wordpress-guru.co.uk/?p=183</guid>
		<description><![CDATA[All Wordpress Themes are released under the GNU, which means you&#8217;re free to amend and modify them as you please. That&#8217;s good news if you come across a layout that you like to 90%, and you&#8217;re up for the challenge to get down and dirty with some code.
The Wordpress Codex is very good at explaining [...]]]></description>
			<content:encoded><![CDATA[<p>All Wordpress Themes are released under the GNU, which means you&#8217;re free to amend and modify them as you please. That&#8217;s good news if you come across a layout that you like to 90%, and you&#8217;re up for the challenge to get down and dirty with some code.</p>
<p>The <a href="http://codex.wordpress.org/Theme_Development" target="_blank">Wordpress Codex</a> is very good at explaining in detail how to modify a theme, but it&#8217;s fairly complex if you&#8217;re starting out. Let me give you a quick overview on what Wordpress does to display your page in a browser:</p>
<p>Display your favourite WP site in your favourite browser. Then right click and display the source code of that site. What you see now is what your browser turns into something nice to look at: your page.</p>
<p>Even though all this code gets displayed at once, it is sent to the browser &#8220;on the fly&#8221; by Wordpress if a user requests the page. This process happens in snippets of code, which is made up for several files that make up &#8220;the theme&#8221;.</p>
<p>If you have a look at a theme directory (usually wp-content/themes/youthemehere/), you&#8217;ll see several files. One of them (index.php) is the first file that&#8217; is used to display a theme. This file calls other files, such as header.php, sidebar.php, footer.php and many others.</p>
<p>Part of the challenge is to find where the piece of code is that you&#8217;d like to modify. Your navigation menu at the top may be called in the header.php file,  or it may be called from index.php. You have to play detective to figure it out.</p>
<p>You can do this from within Wordpress by navigating to Appearance &#8211; Editor. Select the theme you want to modify at the top right your current theme is already selected. On the right side you see all the files your theme is made of. Have a look at <a href="http://codex.wordpress.org/Theme_Development#Anatomy_of_a_Theme" target="_blank">Anatomy of a Theme</a> to find out more about those.</p>
<p>If you want to make a change, your files need to be writable on the server (do this with an FTP client such as FileZilla, and set your theme files&#8217; permissions to CHMOD 777).</p>
<p>Before you start to modify any code, I highly reccomend to copy your entire theme folder to a safe place. You&#8217;d be surprised what a missing &lt;/div&gt; tag can do to your design&#8230;</p>
<p>Have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://wordpress-guru.co.uk/archives/how-to-modify-an-existing-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
