<?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>Amasan - Common sense 2.0 &#187; wp-list-files</title>
	<atom:link href="http://amasan.co.uk/blog/tag/wp-list-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://amasan.co.uk/blog</link>
	<description>Commentary on Digital Media and Usability</description>
	<lastBuildDate>Fri, 14 Aug 2009 10:30:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>[Plugin: WP List Files] Fix: links don&#8217;t work when blog not installed in root of site</title>
		<link>http://amasan.co.uk/blog/2009/06/plugin-wp-list-files-fix-links-dont-work-when-blog-not-installed-in-root-of-site/</link>
		<comments>http://amasan.co.uk/blog/2009/06/plugin-wp-list-files-fix-links-dont-work-when-blog-not-installed-in-root-of-site/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 08:24:00 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[eportfolio]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[webdevelopment]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wp-list-files]]></category>

		<guid isPermaLink="false">http://amasan.co.uk/blog/?p=129</guid>
		<description><![CDATA[We’re using a customized version of WordPress as an electronic portfolio for students and we are using WP List Files to make documents available on the eportfolio. Unfortunately the WordPress support forums seem to delete my topic (possibly because it&#8217;s an older version) and the author is no longer supporting the plugin.
Due to time constraints, [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-131" title="wp-list-files" src="http://amasan.co.uk/blog/wp-content/uploads/2009/06/wp-list-files.png" alt="wp-list-files" width="374" height="178" />We’re using a <a href="http://code.google.com/p/eportfoliomanager/">customized version of WordPress as an electronic portfolio</a> for students and we are using <a href="http://wordpress.org/extend/plugins/wp-list-files/">WP List Files</a> to make documents available on the eportfolio. Unfortunately the <a href="http://wordpress.org/extend/plugins/wp-list-files/">WordPress support forums</a> seem to delete my topic (possibly because it&#8217;s an older version) and <a href="http://helvensteijn.com/wordpress/">the author is no longer supporting the plugin</a>.</p>
<blockquote><p><strong>Due to time constraints, these plugins are no longer supported and will not be updated, ever! Unless you know what you’re doing, I strongly discourage using these on a production blog since they have not been tested since WordPress 2.5.</strong></p></blockquote>
<p>The plugin didn&#8217;t work in version 2.0.3 that we are using because the wp_enqueue_script function does not exist in this version  <a href="http://codex.wordpress.org/Function_Reference/wp_enqueue_script">(the codex page</a> does not say when this function was added). Anyway after manually adding the javascript to the theme&#8217;s head element the plugin almost worked fine &#8211; links didn&#8217;t take our folder structure into account.</p>
<p>works:<br />
joeblogs.com&lt;/dir specified in post or page&gt;</p>
<p>doesn&#8217;t work:<br />
allblogs.com/blogs/joebloggs&lt;/dir specified in post of page&gt;</p>
<p>Fix it by replacing line 231 to read:</p>
<blockquote><p><em>$files .= &#8216;&lt;li&gt;&lt;a href=&#8221;&#8216;.get_bloginfo(&#8216;wpurl&#8217;).$item['link'].&#8217;&#8221;&gt;&#8217;.$itemName.&#8217;&lt;/a&gt;&#8217;.</em></p></blockquote>
<p>The hyperlink created for the item didn’t have the complete blog url in it it assumed the blog was installed in the root of the domain. After this fix the plugin works fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://amasan.co.uk/blog/2009/06/plugin-wp-list-files-fix-links-dont-work-when-blog-not-installed-in-root-of-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
