<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.1" -->
<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/"
	>

<channel>
	<title>CastlesBlog</title>
	<link>http://www.castlesblog.com</link>
	<description>Web, video and other stuff</description>
	<pubDate>Sat, 26 Jan 2008 23:22:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>
	<language>en</language>
			<item>
		<title>Flex File Manager - Source Files</title>
		<link>http://www.castlesblog.com/2008/01/03/flex-file-manager-source-files/</link>
		<comments>http://www.castlesblog.com/2008/01/03/flex-file-manager-source-files/#comments</comments>
		<pubDate>Thu, 03 Jan 2008 01:24:24 +0000</pubDate>
		<dc:creator>marc</dc:creator>
		
		<category><![CDATA[Web]]></category>

		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.castlesblog.com/2008/01/03/flex-file-manager-source-files/</guid>
		<description><![CDATA[This is in response to this post: http://www.castlesblog.com/2006/09/18/flexfm/
Flex file manager was something that I wrote with a demo version of Flex 2 and never really finished it. To my surprise I have had quite a few requests for the source code so I&#8217;ve finally gone and found all the files and packaged them up so [...]]]></description>
			<content:encoded><![CDATA[<p>This is in response to this post: <a href="http://www.castlesblog.com/2006/09/18/flexfm/">http://www.castlesblog.com/2006/09/18/flexfm/</a></p>
<p>Flex file manager was something that I wrote with a demo version of Flex 2 and never really finished it. To my surprise I have had quite a few requests for the source code so I&#8217;ve finally gone and found all the files and packaged them up so you can download them from my website.</p>
<p>It uses a very old version of amfphp and only uses amf0 (I couldn&#8217;t quite work out how to do amf3 at the time). I think amfphp supports amf3 now so if someone is interested, they might want to modify it.</p>
<p>As for copyright stuff.. There are no restrictions on what you use as long as I (Marc Castles - www.castlesblog.com) get a mention in the credits if you use my source code.</p>
<p>The file manager was never really finished and I don&#8217;t even know how secure it is. I&#8217;m sure there are heaps of bugs so I wouldn&#8217;t suggest using it in a production environment.</p>
<p>Best of luck with it!</p>
<p><a href='http://www.castlesblog.com/uploads/2008/01/flexfm.zip' title='Flex File Manager'>Download Flex File Manager</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.castlesblog.com/2008/01/03/flex-file-manager-source-files/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Apple Motion Text Scale Tip</title>
		<link>http://www.castlesblog.com/2007/12/24/apple-motion-text-scale-tip/</link>
		<comments>http://www.castlesblog.com/2007/12/24/apple-motion-text-scale-tip/#comments</comments>
		<pubDate>Sun, 23 Dec 2007 14:09:05 +0000</pubDate>
		<dc:creator>marc</dc:creator>
		
		<category><![CDATA[Motion]]></category>

		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://www.castlesblog.com/2007/12/24/apple-motion-text-scale-tip/</guid>
		<description><![CDATA[I&#8217;ve been using Motion on and off for more than a year now and I&#8217;ve only just discovered this little quirk with text rendering - Point Size Affects Text Filters Quality.
When laying out text in a project I normally type the text using the text tool at something like 10pt and scale it up to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using Motion on and off for more than a year now and I&#8217;ve only just discovered this little quirk with text rendering - Point Size Affects Text Filters Quality.</p>
<p>When laying out text in a project I normally type the text using the text tool at something like 10pt and scale it up to the size that I think looks good. This works fine and looks great but as soon as you add a filter things can go wonky. It appears that when you scale up text using the distort nodes it doesn&#8217;t change the point size so filters are applied as if the text is still 10pt or whatever point you started at. So what does this mean? Basically the text changes from lovely clean vector shapes to ugly blocky bitmaps. Check out my example: </p>
<p><img src='http://www.castlesblog.com/uploads/2007/12/bloom.jpg' alt='Bloom' /></p>
<p>Both Elephant text is the same text but the first one is scaled up and the second one is scaled down.. notice the bloom effect (with default settings) create a very different result!!</p>
<p>So what is the lesson learnt from all this? Don&#8217;t scale up text using the nodes.. scale text using its point size and you will have sharp looking effects text all the time!!! &#8230; unless of course you want blocky pixelated effects???</p>
]]></content:encoded>
			<wfw:commentRss>http://www.castlesblog.com/2007/12/24/apple-motion-text-scale-tip/feed/</wfw:commentRss>
		</item>
		<item>
		<title>fckeditor delete file/folder</title>
		<link>http://www.castlesblog.com/2007/12/06/fckeditor-delete-filefolder/</link>
		<comments>http://www.castlesblog.com/2007/12/06/fckeditor-delete-filefolder/#comments</comments>
		<pubDate>Thu, 06 Dec 2007 02:57:14 +0000</pubDate>
		<dc:creator>marc</dc:creator>
		
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.castlesblog.com/2007/12/06/fckeditor-delete-filefolder/</guid>
		<description><![CDATA[By default the fckeditor file browser that comes with it doesn't allow file deleting or folder deleting because of the security risk. Its a bit of a pain but it is possible to get the file browser to delete files. Here is how I went about it for php:
edit "editor/filemanager/connectors/php/commands.php" and add:
PLAIN TEXT
PHP:




function DeleteFile&#40; $resourceType, [...]]]></description>
			<content:encoded><![CDATA[<p>By default the fckeditor file browser that comes with it doesn't allow file deleting or folder deleting because of the security risk. Its a bit of a pain but it is possible to get the file browser to delete files. Here is how I went about it for php:</p>
<p>edit "editor/filemanager/connectors/php/commands.php" and add:</p>
<div class="igBar"><span id="lphp-8"><a href="#" onclick="javascript:showPlainTxt('php-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-8">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> DeleteFile<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$resourceType</span>, <span style="color:#0000FF;">$currentFolder</span> <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$file</span> = <span style="color:#0000FF;">$_SERVER</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'DOCUMENT_ROOT'</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#0000FF;">$_GET</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'FileUrl'</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/is_file"><span style="color:#000066;">is_file</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$file</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/unlink"><span style="color:#000066;">unlink</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$file</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#616100;">else</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'&lt;error number=&quot;1&quot; originaldescription=&quot;unable to locate file&quot;&gt;'</span> ;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> DeleteFolder<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$resourceType</span>, <span style="color:#0000FF;">$currentFolder</span> <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$folder</span> = <span style="color:#0000FF;">$_SERVER</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'DOCUMENT_ROOT'</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#0000FF;">$_GET</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'FolderName'</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/is_dir"><span style="color:#000066;">is_dir</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$folder</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span>&nbsp; &nbsp;<span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; DELETE_RECURSIVE_DIRS<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$folder</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#616100;">else</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'&lt;error number=&quot;2&quot; originaldescription=&quot;unable to locate folder&quot;&gt;'</span> ;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> DELETE_RECURSIVE_DIRS<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$dirname</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#FF9933; font-style:italic;">// recursive function to delete</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// all subdirectories and contents:</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/is_dir"><span style="color:#000066;">is_dir</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$dirname</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#0000FF;">$dir_handle</span>=<a href="http://www.php.net/opendir"><span style="color:#000066;">opendir</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$dirname</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">while</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$file</span>=<a href="http://www.php.net/readdir"><span style="color:#000066;">readdir</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$dir_handle</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$file</span>!=<span style="color:#FF0000;">"."</span> &amp;&amp; <span style="color:#0000FF;">$file</span>!=<span style="color:#FF0000;">".."</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span>!<a href="http://www.php.net/is_dir"><span style="color:#000066;">is_dir</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$dirname</span>.<span style="color:#FF0000;">"/"</span>.<span style="color:#0000FF;">$file</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/unlink"><span style="color:#000066;">unlink</span></a> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$dirname</span>.<span style="color:#FF0000;">"/"</span>.<span style="color:#0000FF;">$file</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#616100;">else</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DELETE_RECURSIVE_DIRS<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$dirname</span>.<span style="color:#FF0000;">"/"</span>.<span style="color:#0000FF;">$file</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/closedir"><span style="color:#000066;">closedir</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$dir_handle</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/rmdir"><span style="color:#000066;">rmdir</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$dirname</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>modify editor/filemanager/connectors/php/connector.php so that the command switch looks like this:</p>
<div class="igBar"><span id="lphp-9"><a href="#" onclick="javascript:showPlainTxt('php-9'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-9">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">switch</span> <span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$sCommand</span> <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">case</span> <span style="color:#FF0000;">'GetFolders'</span> :</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; GetFolders<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$sResourceType</span>, <span style="color:#0000FF;">$sCurrentFolder</span> <span style="color:#006600; font-weight:bold;">&#41;</span> ;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">break</span> ;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">case</span> <span style="color:#FF0000;">'GetFoldersAndFiles'</span> :</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; GetFoldersAndFiles<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$sResourceType</span>, <span style="color:#0000FF;">$sCurrentFolder</span> <span style="color:#006600; font-weight:bold;">&#41;</span> ;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">break</span> ;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">case</span> <span style="color:#FF0000;">'CreateFolder'</span> :</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; CreateFolder<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$sResourceType</span>, <span style="color:#0000FF;">$sCurrentFolder</span> <span style="color:#006600; font-weight:bold;">&#41;</span> ;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">break</span> ;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#008000;">/******ADDED DELETE COMMANDS******/</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">case</span> <span style="color:#FF0000;">'DeleteFile'</span> :</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; DeleteFile<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$sResourceType</span>, <span style="color:#0000FF;">$sCurrentFolder</span> <span style="color:#006600; font-weight:bold;">&#41;</span> ;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">break</span> ;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">case</span> <span style="color:#FF0000;">'DeleteFolder'</span> :</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; DeleteFolder<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$sResourceType</span>, <span style="color:#0000FF;">$sCurrentFolder</span> <span style="color:#006600; font-weight:bold;">&#41;</span> ;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">break</span> ;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>modify editor/filemanager/connectors/php/config.php allowed commands:</p>
<div class="igBar"><span id="lphp-10"><a href="#" onclick="javascript:showPlainTxt('php-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-10">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$Config</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'ConfigAllowedCommands'</span><span style="color:#006600; font-weight:bold;">&#93;</span> = <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'QuickUpload'</span>, <span style="color:#FF0000;">'FileUpload'</span>, <span style="color:#FF0000;">'GetFolders'</span>, <span style="color:#FF0000;">'GetFoldersAndFiles'</span>, <span style="color:#FF0000;">'CreateFolder'</span>, <span style="color:#FF0000;">'DeleteFile'</span>, <span style="color:#FF0000;">'DeleteFolder'</span><span style="color:#006600; font-weight:bold;">&#41;</span> ; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>You will also need to make sure that this connector is enabled in this file also but you knew that already didn't you?</p>
<div class="igBar"><span id="lphp-11"><a href="#" onclick="javascript:showPlainTxt('php-11'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-11">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$Config</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'Enabled'</span><span style="color:#006600; font-weight:bold;">&#93;</span> = <span style="color:#000000; font-weight:bold;">true</span> ; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>modify editor/filemanager/browser/default/frmresourceslist.html.html so that the functions look like this:</p>
<div class="igBar"><span id="lphp-12"><a href="#" onclick="javascript:showPlainTxt('php-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-12">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">oListManager.GetFolderRowHtml = <span style="color:#000000; font-weight:bold;">function</span><span style="color:#006600; font-weight:bold;">&#40;</span> folderName, folderPath, folderUrl <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#FF9933; font-style:italic;">//added folderUrl</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span>&nbsp; &nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// Build the link to view the folder.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">var</span> sLink = <span style="color:#FF0000;">'&lt;a href=&quot;#&quot; onclick=&quot;OpenFolder(<span style="color:#000099; font-weight:bold;">\'</span>'</span> + folderPath.replace<span style="color:#006600; font-weight:bold;">&#40;</span> /<span style="color:#FF0000;">'/g, '</span>\\\<span style="color:#FF0000;">''</span><span style="color:#006600; font-weight:bold;">&#41;</span> + <span style="color:#FF0000;">'<span style="color:#000099; font-weight:bold;">\'</span>);return false;&quot;&gt;'</span> ;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">return</span> <span style="color:#FF0000;">'&lt;tr&gt;'</span> +</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF0000;">'&lt;td width=&quot;16&quot;&gt;'</span> +</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sLink +</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF0000;">'&lt;img alt=&quot;&quot; src=&quot;images/Folder.gif&quot; width=&quot;16&quot; height=&quot;16&quot; border=&quot;0&quot;&gt;&lt;/a&gt;'</span> +</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF0000;">'&lt;/td&gt;&lt;td nowrap colspan=&quot;2&quot;&gt;&amp;nbsp;'</span> +</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sLink + </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; folderName + </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF0000;">'&lt;/a&gt;'</span> +</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF0000;">'&lt;/td&gt;&lt;td align=&quot;right&quot;&gt;&lt;a href=&quot;#&quot; onclick=&quot;DeleteFolder(<span style="color:#000099; font-weight:bold;">\'</span>'</span>+folderName+<span style="color:#FF0000;">'<span style="color:#000099; font-weight:bold;">\'</span>,<span style="color:#000099; font-weight:bold;">\'</span>'</span>+ folderUrl.replace<span style="color:#006600; font-weight:bold;">&#40;</span> /<span style="color:#FF0000;">'/g, '</span>\\\<span style="color:#FF0000;">''</span><span style="color:#006600; font-weight:bold;">&#41;</span> + <span style="color:#FF0000;">'<span style="color:#000099; font-weight:bold;">\'</span>);return false;&quot;&gt;DELETE&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;'</span> ;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">oListManager.GetFileRowHtml = <span style="color:#000000; font-weight:bold;">function</span><span style="color:#006600; font-weight:bold;">&#40;</span> fileName, fileUrl, <a href="http://www.php.net/filesize"><span style="color:#000066;">fileSize</span></a> <span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span>&nbsp; &nbsp;&nbsp; &nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// Build the link to view the folder.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">var</span> sLink = <span style="color:#FF0000;">'&lt;a href=&quot;#&quot; onclick=&quot;OpenFile(<span style="color:#000099; font-weight:bold;">\'</span>'</span> + fileUrl.replace<span style="color:#006600; font-weight:bold;">&#40;</span> /<span style="color:#FF0000;">'/g, '</span>\\\<span style="color:#FF0000;">''</span><span style="color:#006600; font-weight:bold;">&#41;</span> + <span style="color:#FF0000;">'<span style="color:#000099; font-weight:bold;">\'</span>);return false;&quot;&gt;'</span> ;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// Get the file icon.</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">var</span> sIcon = oIcons.GetIcon<span style="color:#006600; font-weight:bold;">&#40;</span> fileName <span style="color:#006600; font-weight:bold;">&#41;</span> ;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">return</span> <span style="color:#FF0000;">'&lt;tr&gt;'</span> +</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF0000;">'&lt;td width=&quot;16&quot;&gt;'</span> +</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sLink + </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF0000;">'&lt;img src=&quot;'</span>+fileUrl+<span style="color:#FF0000;">'&quot; border=&quot;0&quot; style=&quot;border:1px solid black; margin:5px;&quot; alt=&quot;&quot; height=&quot;70&quot; /&gt;&lt;/a&gt;'</span> +</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF0000;">'&lt;/td&gt;&lt;td&gt;&amp;nbsp;'</span> +</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sLink + </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fileName + </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF0000;">'&lt;/a&gt;'</span> +</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF0000;">'&lt;/td&gt;&lt;td align=&quot;right&quot; nowrap&gt;&amp;nbsp;'</span> +</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/filesize"><span style="color:#000066;">fileSize</span></a> + </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF0000;">' KB'</span> +</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF0000;">'&lt;/td&gt;&lt;td align=&quot;right&quot;&gt;&lt;a href=&quot;#&quot; onclick=&quot;DeleteFile(<span style="color:#000099; font-weight:bold;">\'</span>'</span>+fileName+<span style="color:#FF0000;">'<span style="color:#000099; font-weight:bold;">\'</span>,<span style="color:#000099; font-weight:bold;">\'</span>'</span> + fileUrl.replace<span style="color:#006600; font-weight:bold;">&#40;</span> /<span style="color:#FF0000;">'/g, '</span>\\\<span style="color:#FF0000;">''</span><span style="color:#006600; font-weight:bold;">&#41;</span> + <span style="color:#FF0000;">'<span style="color:#000099; font-weight:bold;">\'</span>);return false;&quot;&gt;DELETE&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;'</span> ;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> DeleteFile<span style="color:#006600; font-weight:bold;">&#40;</span> fileName, fileUrl <span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span>confirm<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'Are you sure you wish to delete '</span> + fileName + <span style="color:#FF0000;">'?'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; oConnector.SendCommand<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#FF0000;">'DeleteFile'</span>, <span style="color:#FF0000;">"FileUrl="</span> + escape<span style="color:#006600; font-weight:bold;">&#40;</span> fileUrl <span style="color:#006600; font-weight:bold;">&#41;</span>, Refresh <span style="color:#006600; font-weight:bold;">&#41;</span> ;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> DeleteFolder<span style="color:#006600; font-weight:bold;">&#40;</span> folderName, folderPath <span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span>confirm<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'Are you sure you wish to delete <span style="color:#000099; font-weight:bold;">\'</span>'</span> + folderName + <span style="color:#FF0000;">'<span style="color:#000099; font-weight:bold;">\'</span> and all files in it?'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; oConnector.SendCommand<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#FF0000;">'DeleteFolder'</span>, <span style="color:#FF0000;">"FolderName="</span> + escape<span style="color:#006600; font-weight:bold;">&#40;</span> folderPath + folderName <span style="color:#006600; font-weight:bold;">&#41;</span>, Refresh <span style="color:#006600; font-weight:bold;">&#41;</span> ;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>*NOTE* This will also show a thumbnail image - you can change the function to turn this off if you want *NOTE*<br />
oh and also in the function modify this..</p>
<div class="igBar"><span id="lphp-13"><a href="#" onclick="javascript:showPlainTxt('php-13'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-13">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">oHtml.Append<span style="color:#006600; font-weight:bold;">&#40;</span> oListManager.GetFolderRowHtml<span style="color:#006600; font-weight:bold;">&#40;</span> sFolderName, sCurrentFolderPath + sFolderName + <span style="color:#FF0000;">"/"</span> <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span> ; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>to be this...</p>
<div class="igBar"><span id="lphp-14"><a href="#" onclick="javascript:showPlainTxt('php-14'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-14">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">oHtml.Append<span style="color:#006600; font-weight:bold;">&#40;</span> oListManager.GetFolderRowHtml<span style="color:#006600; font-weight:bold;">&#40;</span> sFolderName, sCurrentFolderPath + sFolderName + <span style="color:#FF0000;">"/"</span>, sCurrentFolderUrl <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span> ; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>I think that is all.. if I missed anything let me know and I will update this quide.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.castlesblog.com/2007/12/06/fckeditor-delete-filefolder/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Refresh FCKeditor without refreshing the whole page</title>
		<link>http://www.castlesblog.com/2007/10/15/refresh-fckeditor-without-refreshing-the-whole-page/</link>
		<comments>http://www.castlesblog.com/2007/10/15/refresh-fckeditor-without-refreshing-the-whole-page/#comments</comments>
		<pubDate>Mon, 15 Oct 2007 02:28:29 +0000</pubDate>
		<dc:creator>marc</dc:creator>
		
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.castlesblog.com/2007/10/15/refresh-fckeditor-without-refreshing-the-whole-page/</guid>
		<description><![CDATA[I've come up with a solution that will refresh the entire editor (reloads the format drop down as well) without refreshing the whole page. I've been stumped on this for quite a while and needed to get it working so that I could use javascript to change an editor's CSS to match a template.
I added [...]]]></description>
			<content:encoded><![CDATA[<p>I've come up with a solution that will refresh the entire editor (reloads the format drop down as well) without refreshing the whole page. I've been stumped on this for quite a while and needed to get it working so that I could use javascript to change an editor's CSS to match a template.</p>
<p>I added the following code to the fckeditor.html file..</p>
<div class="igBar"><span id="lcode-18"><a href="#" onclick="javascript:showPlainTxt('code-18'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-18">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// mod to allow for custom editor area css</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">if<span style="color:#006600; font-weight:bold;">&#40;</span>FCKURLParams<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC0000;">'EditorAreaCSS'</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">FCKConfig.<span style="">EditorAreaCSS</span> = FCKURLParams<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC0000;">'EditorAreaCSS'</span><span style="color:#006600; font-weight:bold;">&#93;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>and that allows me to pass in a parameter to the iframe that will force the editor to use the new CSS.</p>
<p>To refresh the editor using javascript I have used the following:</p>
<div class="igBar"><span id="lcode-19"><a href="#" onclick="javascript:showPlainTxt('code-19'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-19">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">var oEditor = FCKeditorAPI.<span style="">GetInstance</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">'content'</span><span style="color:#006600; font-weight:bold;">&#41;</span> ; <span style="color:#FF9933; font-style:italic;">//get editor object</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">document.<span style="">getElementById</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">"content"</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="">value</span> = oEditor.<span style="">GetHTML</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#FF9933; font-style:italic;">//save any changes</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">document.<span style="">getElementById</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">"content___Frame"</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="">src</span>=document.<span style="">getElementById</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">"content___Frame"</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="">src</span>.<span style="">replace</span><span style="color:#006600; font-weight:bold;">&#40;</span>/templates\/<span style="color:#006600; font-weight:bold;">&#40;</span>.*<span style="color:#006600; font-weight:bold;">&#41;</span>\/fck.<span style="">css</span>/,<span style="color:#CC0000;">"templates/"</span>+template+<span style="color:#CC0000;">"/fck.css"</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#FF9933; font-style:italic;">//refresh the iframe with new css </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>I also needed to change my fckeditor.class.php so that the src attribute of the iframe was something like this:</p>
<div class="igBar"><span id="lcode-20"><a href="#" onclick="javascript:showPlainTxt('code-20'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-20">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">/puppy/fckeditor/editor/fckeditor.<span style="">html</span>?InstanceName=content&amp;amp;Toolbar=Puppy&amp;amp;EditorAreaCSS=/templates/mytemplate/fck.<span style="">css</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.castlesblog.com/2007/10/15/refresh-fckeditor-without-refreshing-the-whole-page/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mythtv</title>
		<link>http://www.castlesblog.com/2007/09/28/mythtv/</link>
		<comments>http://www.castlesblog.com/2007/09/28/mythtv/#comments</comments>
		<pubDate>Fri, 28 Sep 2007 04:52:34 +0000</pubDate>
		<dc:creator>marc</dc:creator>
		
		<category><![CDATA[media center]]></category>

		<guid isPermaLink="false">http://www.castlesblog.com/2007/09/28/mythtv/</guid>
		<description><![CDATA[This week I managed to get mythtv working and so far I've been faily happy with it. Anne keeps asking me if this will be our permanent pvr and at this stage I think it will be. She also keeps asking why we can't have windows like everyone else but thats another story.
The following is [...]]]></description>
			<content:encoded><![CDATA[<p>This week I managed to get mythtv working and so far I've been faily happy with it. Anne keeps asking me if this will be our permanent pvr and at this stage I think it will be. She also keeps asking why we can't have windows like everyone else but thats another story.</p>
<p>The following is a few hiccups I encountered along the way and I've included them here so that I can refer back to them in the future if I need to.</p>
<p>My biggest hurdle was that I was trying to use the ATI restricted drivers for my video card (9800 pro). I never did get them to work and I've ended up using the open source drivers. They seem to work fine and I've got no complaints at all.</p>
<p>On my 16:10 screen I had to add an extra flag to get mythvideo to play videos in correct aspect ratio.</p>
<p>mplayer -vo xv -fs -zoom -monitoraspect 16:10</p>
<p>I've been using the t8 icons from</p>
<p><a href="http://techtoucian.net/regulars/channels/logos/t8/blue">http://techtoucian.net/regulars/channels/logos/t8/blue</a></p>
<p>which look great but I needed some extra for win and prime so I made up my own. If you would like a copy I have attached them here:</p>
<p><img src="http://www.castlesblog.com/uploads/2007/09/prime.png" alt="Prime" /><img src="http://www.castlesblog.com/uploads/2007/09/prime-hd.png" alt="Prime HD" /><img src="http://www.castlesblog.com/uploads/2007/09/win.png" alt="Win" /><img src="http://www.castlesblog.com/uploads/2007/09/win-hd.png" alt="Win HD" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.castlesblog.com/2007/09/28/mythtv/feed/</wfw:commentRss>
		</item>
		<item>
		<title>wallpaper desktop screensaver</title>
		<link>http://www.castlesblog.com/2007/07/19/wallpaper-desktop-screensaver/</link>
		<comments>http://www.castlesblog.com/2007/07/19/wallpaper-desktop-screensaver/#comments</comments>
		<pubDate>Thu, 19 Jul 2007 04:00:07 +0000</pubDate>
		<dc:creator>marc</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.castlesblog.com/2007/07/19/wallpaper-desktop-screensaver/</guid>
		<description><![CDATA[Just a quick blog to say that I have upgraded to the latest version of wordpress.
Oh.. and this is for all those people who are confused at my title.. A screensaver is not a wallpaper. They are different. I don't know how many times I need to tell people this!
]]></description>
			<content:encoded><![CDATA[<p>Just a quick blog to say that I have upgraded to the latest version of wordpress.</p>
<p>Oh.. and this is for all those people who are confused at my title.. A screensaver is not a wallpaper. They are different. I don't know how many times I need to tell people this!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.castlesblog.com/2007/07/19/wallpaper-desktop-screensaver/feed/</wfw:commentRss>
		</item>
		<item>
		<title>It snowed today!!</title>
		<link>http://www.castlesblog.com/2007/07/17/it-snowed-today/</link>
		<comments>http://www.castlesblog.com/2007/07/17/it-snowed-today/#comments</comments>
		<pubDate>Tue, 17 Jul 2007 00:19:38 +0000</pubDate>
		<dc:creator>marc</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.castlesblog.com/2007/07/17/it-snowed-today/</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.castlesblog.com/uploads/2007/07/snow.jpg" title="snow"><img src="http://www.castlesblog.com/uploads/2007/07/snow.thumbnail.jpg" alt="snow" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.castlesblog.com/2007/07/17/it-snowed-today/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Chunky flash game</title>
		<link>http://www.castlesblog.com/2007/06/29/chunky-flash-game/</link>
		<comments>http://www.castlesblog.com/2007/06/29/chunky-flash-game/#comments</comments>
		<pubDate>Fri, 29 Jun 2007 02:16:48 +0000</pubDate>
		<dc:creator>marc</dc:creator>
		
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.castlesblog.com/2007/06/29/chunky-flash-game/</guid>
		<description><![CDATA[Today is the release day for a flash game I've been working on for the last few weeks at work. Its a flash game for Campbells Chunky Fuel up for footy competition. If your interested in haveing a play or checking it out have a look here: http://www.campbellschunky.com.au/ (click games)
]]></description>
			<content:encoded><![CDATA[<p>Today is the release day for a flash game I've been working on for the last few weeks at work. Its a flash game for Campbells Chunky Fuel up for footy competition. If your interested in haveing a play or checking it out have a look here: <a href="http://www.campbellschunky.com.au/" target="_blank">http://www.campbellschunky.com.au/</a> (click games)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.castlesblog.com/2007/06/29/chunky-flash-game/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Final Cut Pro Studio 2 has arrived</title>
		<link>http://www.castlesblog.com/2007/06/06/final-cut-pro-studio-2-has-arrived/</link>
		<comments>http://www.castlesblog.com/2007/06/06/final-cut-pro-studio-2-has-arrived/#comments</comments>
		<pubDate>Wed, 06 Jun 2007 05:19:47 +0000</pubDate>
		<dc:creator>marc</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.castlesblog.com/2007/06/06/final-cut-pro-studio-2-has-arrived/</guid>
		<description><![CDATA[Final cut pro studio 2 has arrived today and I'm very impressed.
So far.. it seems to have alot of new features and alot of the erks that I was having with it have been fixed. Here are some of the features I've noticed...
Motion 3D support is impressive
Compressor now exports mpeg program streams.
Sound Track Pro exports [...]]]></description>
			<content:encoded><![CDATA[<p>Final cut pro studio 2 has arrived today and I'm very impressed.</p>
<p>So far.. it seems to have alot of new features and alot of the erks that I was having with it have been fixed. Here are some of the features I've noticed...</p>
<p>Motion 3D support is impressive</p>
<p>Compressor now exports mpeg program streams.</p>
<p>Sound Track Pro exports mp3... no more jumping into itunes just to convert a file</p>
<p>I will update this as I find out more...</p>
]]></content:encoded>
			<wfw:commentRss>http://www.castlesblog.com/2007/06/06/final-cut-pro-studio-2-has-arrived/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Married now.. might have some time for this&#8230; maybe</title>
		<link>http://www.castlesblog.com/2007/05/11/married-now-might-have-some-time-for-this-maybe/</link>
		<comments>http://www.castlesblog.com/2007/05/11/married-now-might-have-some-time-for-this-maybe/#comments</comments>
		<pubDate>Fri, 11 May 2007 02:21:56 +0000</pubDate>
		<dc:creator>marc</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.castlesblog.com/2007/05/11/married-now-might-have-some-time-for-this-maybe/</guid>
		<description><![CDATA[Ok, so the wedding is over.. that means I don't have to do anymore wedding preperations.
CS3 has been released and We got the web studio for my work laptop. Here are my thoughts:

Photoshop CS3 - Fantastic.. well worth it
Illustrator CS3 - Dito
Flash CS3 - Dito..
Dreamweaver - Hardly worth it, Haven't noticed much speed difference or [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, so the wedding is over.. that means I don't have to do anymore wedding preperations.</p>
<p>CS3 has been released and We got the web studio for my work laptop. Here are my thoughts:</p>
<ul>
<li>Photoshop CS3 - Fantastic.. well worth it</li>
<li>Illustrator CS3 - Dito</li>
<li>Flash CS3 - Dito..</li>
<li>Dreamweaver - Hardly worth it, Haven't noticed much speed difference or features at all.. This would be the biggest disapointment for me. Hopefully next version gets the new interface the others got.</li>
<li>Fireworks - Installed it.. haven't used it.</li>
<li>Contribute - Didn't bother.</li>
<li>Flash video encoder - Better.. multipass encoding would of been nice.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.castlesblog.com/2007/05/11/married-now-might-have-some-time-for-this-maybe/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
