<?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>A Linux User in a Windows World &#187; wordpress</title>
	<atom:link href="http://jan.saell.org/blog/archives/category/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://jan.saell.org/blog</link>
	<description>Ramblings from an old Linux guru</description>
	<lastBuildDate>Tue, 10 Jan 2012 10:12:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>WordPress Dashboard and favicon</title>
		<link>http://jan.saell.org/blog/archives/1582</link>
		<comments>http://jan.saell.org/blog/archives/1582#comments</comments>
		<pubDate>Thu, 21 Jul 2011 07:00:59 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[Admin]]></category>
		<category><![CDATA[Dashboard]]></category>
		<category><![CDATA[Favicon]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=1582</guid>
		<description><![CDATA[When I started to use Firefox 5 and App tabs, I discovered a small annoying thing. The favicon that I use for my blog is not visible when I run the admin side or the dashboard. So when I have that up (I usually do now in an apptab) I would only se the standard [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> When I started to use Firefox 5 and App tabs, I discovered a small annoying thing. The favicon that I use for my blog is not visible when I run the admin side or the dashboard. So when I have that up (I usually do now in an apptab) I would only se the standard white/blank paper. Here is how you fix that by changing your theme:</p>
<p><span id="more-1582"></span>First go to you theme page.</p>
<p>If there is a function.php file there you can edit it, or if not then you can create it. If you are creating it &#8211; make sure you have the start and end php tag (<strong>&lt;?PHP</strong> and <strong>?&gt;</strong>) in there also.</p>
<p>Add the following lines to the file:</p>
<pre>function favicon4admin() {
 echo '&lt;link rel="Shortcut Icon" type="image/x-icon" href="http://jan.saell.org/blog/favicon.ico" /&gt;';
}
add_action( 'admin_head', 'favicon4admin' );</pre>
<p>You need to edit the location of the icon.</p>
<p>And now the favicon will show up on you admin pages also.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/1582/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Test post</title>
		<link>http://jan.saell.org/blog/archives/767</link>
		<comments>http://jan.saell.org/blog/archives/767#comments</comments>
		<pubDate>Mon, 08 Feb 2010 16:07:06 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=767</guid>
		<description><![CDATA[Testing facebook My Blog Post apps]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> Testing facebook My Blog Post apps</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/767/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Insert a pdf into WordPress 2.7</title>
		<link>http://jan.saell.org/blog/archives/472</link>
		<comments>http://jan.saell.org/blog/archives/472#comments</comments>
		<pubDate>Sat, 27 Jun 2009 17:39:27 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[English]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=472</guid>
		<description><![CDATA[So you have a new and nice wordpress install and you just typing way and desides to insert a pdf file. Easy &#8211; well so I thought. In the old version you just inserted the pdf and it worked. Some days ago I was updating a website (registrars.se) with a couple of new documents and [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> So you have a new and nice wordpress install and you just typing way and desides to insert a pdf file. Easy &#8211; well so I thought.</p>
<p>In the old version you just inserted the pdf and it worked. Some days ago I was updating a website (registrars.se) with a couple of new documents and for my life I could not get it to work.</p>
<p><span id="more-472"></span>After doing some testing and surfing and googeling i found out that the problem does exisist when upgrading from an erlier version of wordpress and also its someting that, once you fixed it, will go away.</p>
<p>What happends is that you insert the pdf as usuall and it works perfectly. You upload the file and it gets into the Media library but there will be no link from the page to the file.</p>
<p>Here is the problem:</p>
<p><a href="http://jan.saell.org/blog/wp-content/uploads/2009/06/wp_pdf.jpg" target="_blank"><img class="alignnone size-medium wp-image-532" title="wp_pdf" src="http://jan.saell.org/blog/wp-content/uploads/2009/06/wp_pdf-300x240.jpg" alt="wp_pdf" width="300" height="240" /></a></p>
<p>The<em> Link URL</em> is empty &#8211; and in the previous version it seems to fill this in automatically even when it was empty.</p>
<p>The very simple solution is to click on the<strong> File URL </strong>button below and then Insert into post and it will work. And in the future it will remember this also, so it will be fixed for the future.</p>
<p>Simple and easy &#8211; once you know!</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/472/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading wordpress</title>
		<link>http://jan.saell.org/blog/archives/419</link>
		<comments>http://jan.saell.org/blog/archives/419#comments</comments>
		<pubDate>Thu, 07 May 2009 19:27:26 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=419</guid>
		<description><![CDATA[So last week i upgraded wordpress. I had a number of sites running 2.6 and the new 2.7 has been out for a while. So it was time for me to start doing this. So what do you do when upgrading. Backup Well the first obvious thing is to make a backup. One of the [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> So last week i upgraded wordpress. I had a number of sites running 2.6 and the new 2.7 has been out for a while. So it was time for me to start doing this.</p>
<p>So what do you do when upgrading.</p>
<h2>Backup</h2>
<p>Well the first obvious thing is to make a backup. One of the sites is on our own servers and that&#8217;s not a problem. System backed up every night. Database backed up at the same time. For the other site that we are running for an organisation its not on our own servers so there is a bit more work.</p>
<p>First you have to back up the site itself. I prefer to use <strong>FileZilla</strong> &#8211; the ftp client and download all the files to a local directory on my hard drive. You can use any other ftp program or what suits you environment.</p>
<p>Next is to make sure you have a god backup of the database. There are plugins for doing this in wordpress, but if the things go totally down the drain i prefer to have a real database dump outside that. The hosting company supplies a special version of phpmyadmin. So just login there and do a dump and store that also locally and you should be ok.</p>
<p><span id="more-419"></span></p>
<h2>Starting the upgrade</h2>
<p>Now its time to start the upgrade. First of all you don&#8217;t want all customer coming in and see strange things when upgrading. There is a god plugin for this and its called <a href="http://sw-guide.de/wordpress/plugins/maintenance-mode/" target="_blank">Maintenance mode</a>. This gives a small page instead if the normal site when its activated. Admins can still access the site but normal users only se the &#8220;Sorry we are down for maintanence&#8221; page. So I always start the upgrade with turning this plugin on.</p>
<h2>Disabling all other plugins</h2>
<p>To make sure that plugins don&#8217;t screw up the upgrade, the manual for upgrading wordpress recommends that you disable all the plugins. This is probably a wise thing to do, but I have made mistakes and done the upgrade without it, and it worked also. But to be god &#8211; disable all the plugins.</p>
<p>Except the Maintenance Mode plugin as you want that one active during the upgrade.</p>
<h2>Upload the new wordpress files.</h2>
<p>With wordpress 2.7 you can do upgrades to the base code from within the system (tools-&gt;upgrade) but before that you have to make it manually. So I downloaded the zip-file from wordpress, unpacked it to my local hard drive.</p>
<p>In the manual they say that you should clean out a number of directories. The reason for this is to make sure that you overwrite all the files in there and i am more OK with making sure I do that then to delete files. So I just upload it all.</p>
<p>Then start up the site again. Go to http://your.site/wp-admin/ and the system will tell you if you need to upgrade the database or not. In not &#8211; fine &#8211; just go on. If it need to &#8211; just let it &#8211; remember you have backups &#8211; right?</p>
<h2>Enabling all the plugins</h2>
<p>So the upgrade when ok. Its now time to enable the plugins again. Do this one by one and test that each work before you start to enable a new one. Just to mke shure you find any problems one by one.</p>
<h2>Setting permissions</h2>
<p>Now you have it up and going again. The first thing that happened to me was that it found out that there are new and upgraded plugins. So I went in there and now the system wont upgrade them automatcally. You can only donwload and install them manually. So onto the normal site for all knowledge &#8211; googeling for this gave me some ideas and I did found out that the owners where wrong on the files. So a quick find did help it all:</p>
<pre>find . -exec chown user:group {} \; -print</pre>
<p>And now its all ok. Upgradng the plugins that is new and fixing some small things and I am up and running wordpress 2.7</p>
<h2>Disabling the Maintanence mode</h2>
<p>Now its time to let users in again I think. Perhapes doing some small fixes but if you happey with the site its only to disable the Maintanence mode in the Maintanence Mode plugin and the users should be able to see the site again as normal.</p>
<h2>Small fixes</h2>
<p>There is one small bug and that is that the css files that NextGen Gallery plugin is using has the <strong>clear:both;</strong> flags and that will make the pages look very strange when you have a menu to the right (or left).</p>
<p>I have to do this veery time I upgrade NextGen Gallery plugin. Go in and edit the wp-content/plugins/nextgen-gallery/css/nggallery.css and comment out all the places where its used. Then its ok.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/419/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

