<?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>Nicolas Kuttler &#187; usability</title>
	<atom:link href="http://www.nkuttler.de/tag/usability/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nkuttler.de</link>
	<description>WordPress Services, IT Services</description>
	<lastBuildDate>Wed, 28 Jul 2010 23:49:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Using recordmydesktop to upload to YouTube, Vimeo etc.</title>
		<link>http://www.nkuttler.de/2010/06/21/convert-recordmydesktop-movies-to-flash/</link>
		<comments>http://www.nkuttler.de/2010/06/21/convert-recordmydesktop-movies-to-flash/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 13:10:51 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[xorg]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de/?p=1527</guid>
		<description><![CDATA[recordMyDesktop is a great tool to make videos of what you&#8217;re doing with your computer. This can be very useful to demonstrate software features or to document workflows. By default, recordMyDesktop produces Ogg-Theora-Vorbis. If you want to share your files or upload them to a video site you&#8217;ll want to convert them to something more [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://recordmydesktop.sourceforge.net/">recordMyDesktop</a> is a great tool to make videos of what you&#8217;re doing with your computer. This can be very useful to demonstrate software features or to document workflows. By default, recordMyDesktop produces Ogg-Theora-Vorbis. If you want to share your files or upload them to a video site you&#8217;ll want to convert them to something more common.<span id="more-1527"></span></p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">mencoder out.ogv -ovc xvid -oac mp3lame -xvidencopts pass=1 -o out.avi</pre></div></div>

<p>This will produce a video of good enough quality so that people can see what you are doing.</p>
<p>Here&#8217;s an example:</p>
<p><object width="500" height="400"><param name="movie" value="http://www.youtube.com/v/OTv8loMWDPU&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/OTv8loMWDPU&#038;fs=1" type="application/x-shockwave-flash" width="500" height="400" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>Please notice that mouse and click highlighting aren&#8217;t recordMyDesktop features.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2010/06/21/convert-recordmydesktop-movies-to-flash/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to add support for navigation menus to your WordPress theme</title>
		<link>http://www.nkuttler.de/2010/06/08/wp_nav_menu-wordpress-3-0/</link>
		<comments>http://www.nkuttler.de/2010/06/08/wp_nav_menu-wordpress-3-0/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 15:00:50 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Content Management]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress theme]]></category>
		<category><![CDATA[wp_nav_menu]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de/?p=1613</guid>
		<description><![CDATA[The new navigation menus system in WordPress 3.0 looks promising, but in my opinion it&#8217;s not very usable yet. Anyway, here&#8217;s one way to add navigation menus to your theme while maintaining backward compatibility: In your theme&#8217;s functions.php add something like the following code: 1 2 3 4 5 6 7 8 9 10 11 [...]]]></description>
			<content:encoded><![CDATA[<p>The new <a href="http://codex.wordpress.org/Appearance_Menus_SubPanel">navigation menus</a> system in WordPress 3.0 looks promising, but in my opinion it&#8217;s not very usable yet. Anyway, here&#8217;s one way to add navigation menus to your theme while maintaining backward compatibility:</p>
<p>In your theme&#8217;s <code>functions.php</code> add something like the following code:<span id="more-1613"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> mytheme_addmenus<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	register_nav_menus<span style="color: #009900;">&#40;</span>
		<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
			<span style="color: #0000ff;">'main_nav'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'The Main Menu'</span><span style="color: #339933;">,</span>
		<span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'init'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'mytheme_addmenus'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> mytheme_nav<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'wp_nav_menu'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
        wp_nav_menu<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'menu=main_nav&amp;container_class=pagemenu&amp;fallback_cb=mytheme_nav_fallback'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">else</span>
        mytheme_nav_fallback<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> mytheme_nav_fallback<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    wp_page_menu<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'show_home=Start&amp;menu_class=pagemenu'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>In line 1 we add support for the navigation menus. The <code>mytheme_nav()</code> function is what you will use in the theme to display the menu. Inside that function we check if <code>wp_nav_menu()</code> exists, that means if we&#8217;re running WordPress 3.0 (or later). If not we&#8217;ll use the fallback function <code>mytheme_nav_fallback()</code>.</p>
<p>Notice that the fallback also gets called if no navigation menus have been created in the admin area. That&#8217;s what the <code>fallback_cb</code> parameter on line 4 does.</p>
<p>To keep the HTM markup and the CSS consistent you&#8217;ll have to use the <code>container_class</code> parameter on <code>wp_nav_menu</code> but the <code>menu_class</code> parameter for <code>wp_page_menu</code>.</p>
<p>In your template use the following code to use your new custom function:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> mytheme_nav<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h3>Resources</h3>
<ul>
<li><a href="http://codex.wordpress.org/Function_Reference/wp_nav_menu">wp_nav_menu() reference</a></li>
<li><a href="http://codex.wordpress.org/Template_Tags/wp_page_menu">wp_page_menu() reference</a></li>
<li><a href="http://justintadlock.com/archives/2010/06/01/goodbye-headaches-hello-menus">Informative article on nav menus by Justin Tadlock</a></li>
</ul>
<a name="wptoc_0_0_0"></a><h2>Ramblings</h2>
<p>What&#8217;s good about the new menu system:</p>
<ul>
<li>Total control over what appears in the menu</li>
<li>You can add posts, pages, categories and tags in the menu</li>
<li>Very nice drag and drop interface</li>
</ul>
<p>What&#8217;s bad:</p>
<ul>
<li>You will have to teach your users how to use the system properly.</li>
<li>If you create new pages they won&#8217;t be added to your existing menu (except for top level pages).</li>
<li>You can not control your page menus through the navigation menus interface. I think it is&#8230; very very odd that WordPress doesn&#8217;t have a simple drag-and-drop interface to arrange pages.</li>
<li>The previous point means that the new menu system is useless unless you update your theme.</li>
<li>The <code>wp_nav_menu()</code> call is inconsistent with the existing <code>wp_page_menu()</code> function.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2010/06/08/wp_nav_menu-wordpress-3-0/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>WPMU fast backend switch</title>
		<link>http://www.nkuttler.de/2010/06/07/wpmu-switch-backend/</link>
		<comments>http://www.nkuttler.de/2010/06/07/wpmu-switch-backend/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 11:10:46 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Content Management]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress plugin]]></category>
		<category><![CDATA[WPMU]]></category>

		<guid isPermaLink="false">http://nkuttler.wordpress-server.de/?p=1687</guid>
		<description><![CDATA[I recently converted several simple WordPress installs into a single WPMU install. As I use all of the blogs myself I wanted a quick way to switch between the various backends. This is probably only useful if you don&#8217;t have too many blogs and use all of them yourself. The switch links will be added [...]]]></description>
			<content:encoded><![CDATA[<p>I recently converted several simple WordPress installs into a single WPMU install. As I use all of the blogs myself I wanted a quick way to switch between the various backends. This is probably  only useful if you don&#8217;t have too many blogs and use all of them yourself. The switch links will be added to your super admin menu.<span id="more-1687"></span></p>
<p>By the way, I use the <a href="http://wordpress.org/extend/plugins/ozh-admin-drop-down-menu/">Ozh admin menu plugin</a>. You might need two clicks to switch if  you don&#8217;t. </p>
<p><a href="http://wordpress.org/extend/plugins/wpmu-fast-backend-switch/">Download the plugin</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2010/06/07/wpmu-switch-backend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visitor Movies for WordPress</title>
		<link>http://www.nkuttler.de/2010/05/21/record-movies-of-visitors/</link>
		<comments>http://www.nkuttler.de/2010/05/21/record-movies-of-visitors/#comments</comments>
		<pubDate>Fri, 21 May 2010 10:02:04 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Content Management]]></category>
		<category><![CDATA[clicktracking]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[marketing]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress plugin]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de/?p=1530</guid>
		<description><![CDATA[Did you ever want to know what exactly your visitors are doing on your site? Watch them! A client of mine wanted a plugin to log what users type into forms. I kind of didn&#8217;t see the point at first. But a few days later I was a little annoyed that there was apparently no [...]]]></description>
			<content:encoded><![CDATA[<p>Did you ever want to know what exactly your visitors are doing on your site? Watch them!</p>
<p>A client of mine wanted a plugin to log what users type into forms. I kind of didn&#8217;t see the point at first. But a few days later I was a little annoyed that there was apparently no free alternative to websites like <a href="http://clixpy.com">clixpy</a>, clicktale and similar services.<span id="more-1530"></span></p>
<p>It occured to me that recording movies of visits isn&#8217;t really hard to do. And so i started a new plugin, loosely based on the unpublished form input tracking plugin.</p>
<p>I am very pleased with the results so far. Of course it&#8217;s no match for the professional services mentioned above. But it is good enough to gain a few insights into what can be improved on your website.</p>
<p>The recording script is pretty lightweight but has a rather hefty dependeny: jQuery. It also loads json2.js. I&#8217;m sure the logging could be rewritten without the jQuery dependency but that really wasn&#8217;t a priority for the first public release.</p>
<p>This plugin probably needs WordPress 2.8 and PHP 5. I didn&#8217;t bother to test older versions and won&#8217;t support them in the future.</p>
<p>Here is a sample movie of what a recorded session can look like. As you can see mouse movements, clicks, form input, select boxes, checkboxes and radio buttons are recorded.</p>
<p><object width="500" height="400"><param name="movie" value="http://www.youtube.com/v/OTv8loMWDPU&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/OTv8loMWDPU&#038;fs=1" type="application/x-shockwave-flash" width="500" height="400" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><strong>Important</strong>: For the playback you should always use the same browser as the visitor. If you don&#8217;t, the mouse position will probably be very wrong. The plugin also doesn&#8217;t save a page&#8217;s state at the time of recording. This means if comments are added or the content changes, you will see the old movements on a new website.</p>
<p>Downloads at <a href="http://wordpress.org/extend/plugins/visitor-movies/">WordPress.org</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2010/05/21/record-movies-of-visitors/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Convert WordPress pages to posts</title>
		<link>http://www.nkuttler.de/2010/05/20/how-to-convert-wordpress-pages-to-posts/</link>
		<comments>http://www.nkuttler.de/2010/05/20/how-to-convert-wordpress-pages-to-posts/#comments</comments>
		<pubDate>Thu, 20 May 2010 10:20:34 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Content Management]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress page]]></category>
		<category><![CDATA[WordPress post]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de/?p=1535</guid>
		<description><![CDATA[I like WordPress, but I don&#8217;t like the WordPress page system at all. That&#8217;s why I recently converted all my plugin pages to posts. My main reasons for doing so were: Pages can&#8217;t be tagged Pages don&#8217;t have categories Pages and posts don&#8217;t mix too well in custom loops Pages don&#8217;t appear in your RSS [...]]]></description>
			<content:encoded><![CDATA[<p>I like WordPress, but I don&#8217;t like the WordPress page system at all. That&#8217;s why I recently converted all my plugin pages to posts. My main reasons for doing so were:<span id="more-1535"></span></p>
<ul>
<li>Pages can&#8217;t be <strong>tagged</strong></li>
<li>Pages don&#8217;t have <strong>categories</strong></li>
<li>Pages and posts don&#8217;t mix too well in <strong>custom loops</strong></li>
<li>Pages don&#8217;t appear in your RSS <strong>feed</strong></li>
<li>Posts are better for <strong>usability</strong> and <strong>SEO</strong></li>
</ul>
<p>I converted the pages with the help of the excellent <a href="http://www.briandgoad.com/blog/downloads/p2pConverter">p2pConverter</a> plugin. Converting the pages is very easy. The plugin adds a &#8220;convert to post&#8221; button to every page on the page overview. Just click it, confirm, and you&#8217;re basically done. Of course, having more features for posts makes it necessary to perform a few additional steps after the conversion to get the full benefit:</p>
<ul>
<li>The category will be your default category, you probably want to change that</li>
<li>The new post has no tags. The whole point of converting the pages (for me) was to add tags.</li>
<li>As a safeguard I added 301 redirects to my server config from the old page address to the new post. The plugin or WordPress seems to do this anyway, but I wanted to be 100% sure nothing breaks in the future. Besides, doing this in the webserver saves a few PHP calls.</li>
</ul>
<p>One thing that isn&#8217;t ideal is that all converted posts were added to the top of my RSS feed, even though their publishing date is the same as that of the former page. I&#8217;m not sure it&#8217;s possible to work around this, but I don&#8217;t think it&#8217;s a big deal if you&#8217;re only dealing with a few pages.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2010/05/20/how-to-convert-wordpress-pages-to-posts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change Typo3 template depending on column content</title>
		<link>http://www.nkuttler.de/2009/09/05/change-typo3-template-depending-on-column-content/</link>
		<comments>http://www.nkuttler.de/2009/09/05/change-typo3-template-depending-on-column-content/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 07:33:02 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Content Management]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[Typo3]]></category>
		<category><![CDATA[typoscript]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[Webdesign]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de//?p=852</guid>
		<description><![CDATA[Let&#8217;s assume you don&#8217;t just want to inject some HTML if there is content in a column, but you want to use a completely different layout. This isn&#8217;t hard to accomplish, see the example: tmp.templateFile = COA tmp.templateFile &#123; 10 = COA 10 &#123; if.isFalse.numRows &#60; styles.content.getRight 10 = FILE 10 &#123; file = fileadmin/template/1col.html [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s assume you don&#8217;t just want to <a href="http://www.nkuttler.de//2009/05/24/change-template-if-content-exists-in-typo3/">inject some HTML</a> if there is content in a column, but you want to use a completely different layout. This isn&#8217;t hard to accomplish, see the example:<span id="more-852"></span></p>

<div class="wp_syntax"><div class="code"><pre class="typoscript" style="font-family:monospace;">tmp<span style="color: #339933; font-weight: bold;">.</span>templateFile <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #990000; font-weight: bold;">COA</span>
tmp<span style="color: #339933; font-weight: bold;">.</span>templateFile <span style="color: #009900;">&#123;</span>
	<span style="color: #cc0000;">10</span> <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #990000; font-weight: bold;">COA</span>
	<span style="color: #cc0000;">10</span> <span style="color: #009900;">&#123;</span>
		<span style="font-weight: bold;">if</span><span style="color: #339933; font-weight: bold;">.</span>isFalse<span style="color: #339933; font-weight: bold;">.</span><span style="font-weight: bold;">numRows</span> <span style="color: #339933; font-weight: bold;">&lt;</span> <span style="color: #000066; font-weight: bold;">styles</span><span style="color: #339933; font-weight: bold;">.</span>content<span style="color: #339933; font-weight: bold;">.</span>getRight
		<span style="color: #cc0000;">10</span> <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #990000; font-weight: bold;">FILE</span>
		<span style="color: #cc0000;">10</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000066; font-weight: bold;">file</span> <span style="color: #339933; font-weight: bold;">=</span> fileadmin<span style="color: #339933; font-weight: bold;">/</span>template<span style="color: #339933; font-weight: bold;">/</span>1col<span style="color: #339933; font-weight: bold;">.</span>html
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #cc0000;">20</span> <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #990000; font-weight: bold;">COA</span>
	<span style="color: #cc0000;">20</span> <span style="color: #009900;">&#123;</span>
		<span style="font-weight: bold;">if</span><span style="color: #339933; font-weight: bold;">.</span>isTrue<span style="color: #339933; font-weight: bold;">.</span><span style="font-weight: bold;">numRows</span> <span style="color: #339933; font-weight: bold;">&lt;</span> <span style="color: #000066; font-weight: bold;">styles</span><span style="color: #339933; font-weight: bold;">.</span>content<span style="color: #339933; font-weight: bold;">.</span>getRight
		<span style="color: #cc0000;">10</span> <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #990000; font-weight: bold;">FILE</span>
		<span style="color: #cc0000;">10</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000066; font-weight: bold;">file</span> <span style="color: #339933; font-weight: bold;">=</span> fileadmin<span style="color: #339933; font-weight: bold;">/</span>template<span style="color: #339933; font-weight: bold;">/</span>2col<span style="color: #339933; font-weight: bold;">.</span>html
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>The <tt>if</tt>s check if there is or isn&#8217;t content in the right column and the <tt>COA</tt> returns the correct cObject, FILE in this case.</p>
<p>And then in your main typoscript something like:</p>

<div class="wp_syntax"><div class="code"><pre class="typoscript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">page</span><span style="color: #339933; font-weight: bold;">.</span>10<span style="color: #339933; font-weight: bold;">.</span>template <span style="color: #339933; font-weight: bold;">&lt;</span> tmp<span style="color: #339933; font-weight: bold;">.</span>templateFile</pre></div></div>

<p>instead of the more usual</p>

<div class="wp_syntax"><div class="code"><pre class="typoscript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">page</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #cc0000;">10</span> <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #990000; font-weight: bold;">TEMPLATE</span>
	<span style="color: #cc0000;">10</span> <span style="color: #009900;">&#123;</span>
		template <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #990000; font-weight: bold;">FILE</span>
		template <span style="color: #009900;">&#123;</span>
			<span style="color: #000066; font-weight: bold;">file</span> <span style="color: #339933; font-weight: bold;">=</span> fileadmin<span style="color: #339933; font-weight: bold;">/</span>template<span style="color: #339933; font-weight: bold;">/</span>1col<span style="color: #339933; font-weight: bold;">.</span>html
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>That&#8217;s all.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2009/09/05/change-typo3-template-depending-on-column-content/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Change template if content exists in Typo3</title>
		<link>http://www.nkuttler.de/2009/05/24/change-template-if-content-exists-in-typo3/</link>
		<comments>http://www.nkuttler.de/2009/05/24/change-template-if-content-exists-in-typo3/#comments</comments>
		<pubDate>Sun, 24 May 2009 19:23:41 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Content Management]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Typo3]]></category>
		<category><![CDATA[typoscript]]></category>
		<category><![CDATA[usability]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de//?p=729</guid>
		<description><![CDATA[If you build sites with Typo3 you might want to use a smart template that uses different markup for different pages. Of course you can define as many templates as you like in Typo3. But what if you want to use a two and a three-column layout, depending on if content in one column exists, [...]]]></description>
			<content:encoded><![CDATA[<p>If you build sites with Typo3 you might want to use a smart template that uses different markup for different pages. Of course you can define as many templates as you like in Typo3. But what if you want to use a two and a three-column layout, depending on if content in one column exists, and if you don&#8217;t know in advance if there is content in that column? The solution is rather easy, do something like in this example:<span id="more-729"></span></p>

<div class="wp_syntax"><div class="code"><pre class="typoscript" style="font-family:monospace;"><span style="color: #aaa; font-style: italic;"># Add a float if we have content in column 2</span>
foo <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #990000; font-weight: bold;">COA</span>
foo <span style="color: #009900;">&#123;</span>
	wrap <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #3366CC;">&lt;div&gt;</span><span style="color: #339933; font-weight: bold;">|</span><span style="color: #3366CC;">&lt;/div&gt;</span>
	<span style="color: #cc0000;">200</span> <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #990000; font-weight: bold;">CONTENT</span>
	<span style="color: #cc0000;">200</span> <span style="color: #009900;">&#123;</span>
		table <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #000066; font-weight: bold;">tt_content</span>
		<span style="font-weight: bold;">select</span> <span style="color: #009900;">&#123;</span>
			where <span style="color: #339933; font-weight: bold;">=</span> colPos <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #cc0000;">2</span>
			orderBy <span style="color: #339933; font-weight: bold;">=</span> sorting
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #aaa; font-style: italic;"># conditional to test if content exists in column</span>
	<span style="font-weight: bold;">if</span><span style="color: #339933; font-weight: bold;">.</span>isTrue<span style="color: #339933; font-weight: bold;">.</span><span style="font-weight: bold;">numRows</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #aaa; font-style: italic;"># check current page page</span>
		pidInList <span style="color: #339933; font-weight: bold;">=</span> this
		<span style="color: #aaa; font-style: italic;"># in the table tt_content</span>
		table <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #000066; font-weight: bold;">tt_content</span>
		<span style="color: #aaa; font-style: italic;"># colPos = 2 (right)</span>
		<span style="font-weight: bold;">select</span><span style="color: #339933; font-weight: bold;">.</span>where <span style="color: #339933; font-weight: bold;">=</span> colPos<span style="color: #339933; font-weight: bold;">=</span><span style="color: #cc0000;">2</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>This example shows a very simple flexible template using a float.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2009/05/24/change-template-if-content-exists-in-typo3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Displaying a smaller banner in an Openx zone</title>
		<link>http://www.nkuttler.de/2009/02/27/displaying-a-smaller-banner-in-an-openx-zone/</link>
		<comments>http://www.nkuttler.de/2009/02/27/displaying-a-smaller-banner-in-an-openx-zone/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 13:35:10 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[advertising]]></category>
		<category><![CDATA[marketing]]></category>
		<category><![CDATA[openx]]></category>
		<category><![CDATA[usability]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de//?p=617</guid>
		<description><![CDATA[Did you ever want to chain a zone with smaller banners after a zone with big banners in Openx? This sounds like useful feature. We don&#8217;t live in the 90s anymore where every page had a pixel-precise table layout. The world has learned how to build fluid layouts. One the Advanced page of the admin [...]]]></description>
			<content:encoded><![CDATA[<p>Did you ever want to chain a zone with smaller banners after a zone with big banners in Openx? This sounds like useful feature. We don&#8217;t live in the 90s anymore where every page had a pixel-precise table layout. The world has learned how to build fluid layouts.<span id="more-617"></span><br />
One the <tt>Advanced</tt> page of the admin pages of a zone, there is this <i>If no banners from this zone can be delivered, try to&#8230;</i> setting. Openx should really let me decide which zone I want to pick from the <i>Display the selected zone instead</i> list. I want to see all zones in the list.<br />
Yes, there are workarounds, like using <tt>*x*</tt> sized zones, but why on earth should I create a new zone if I already have one that has exactly the ads I want to display?<br />
Well, here&#8217;s how to change it. If you want to have the full choice, edit <tt>/www/admin/zone-advanced.php</tt>. In version 2.6.3, simply add the following line after line 230:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$allowothersizes</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span></pre></div></div>

<p>Now, you get the full list in the dropdown.</p>
<p>Here&#8217;s a little more context:</p>

<div class="wp_syntax"><div class="code"><pre class="diff" style="font-family:monospace;">--- zone-advanced-orig.php      <span style="">2009</span>-02-02 07:<span style="">46</span>:<span style="">45.000000000</span> +0100
<span style="color: #888822;">+++ zone-advanced.php   <span style="">2009</span>-01-<span style="">21</span> <span style="">15</span>:<span style="">22</span>:<span style="">04.000000000</span> +0100</span>
<span style="color: #440088;">@@ -<span style="">228</span>,<span style="">6</span> +<span style="">228</span>,<span style="">7</span> @@</span>
     $doZones = OA_Dal::factoryDO<span style="">&#40;</span>'zones'<span style="">&#41;</span>;
&nbsp;
     $allowothersizes = $zone<span style="">&#91;</span>'delivery'<span style="">&#93;</span> == phpAds_ZoneInterstitial || $zone<span style="">&#91;</span>'delivery'<span style="">&#93;</span> == phpAds_ZonePopup;
<span style="color: #00b000;">+       $allowothersizes = true;</span>
     if <span style="">&#40;</span>$zone<span style="">&#91;</span>'width'<span style="">&#93;</span> != -<span style="">1</span> &amp;amp;&amp;amp; !$allowothersizes<span style="">&#41;</span> <span style="">&#123;</span>
         $doZones-&amp;gt;width = $zone<span style="">&#91;</span>'width'<span style="">&#93;</span>;
     <span style="">&#125;</span></pre></div></div>

<p>Kind of funny that this setting exists but isn&#8217;t exposed anywhere in the UI&#8230; Yes, it&#8217;s a quick hack, so test it before running it on anything in production. Works for me though.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2009/02/27/displaying-a-smaller-banner-in-an-openx-zone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Opera and the &lt;noscript&gt; tag</title>
		<link>http://www.nkuttler.de/2008/12/27/opera-and-the-noscript-tag/</link>
		<comments>http://www.nkuttler.de/2008/12/27/opera-and-the-noscript-tag/#comments</comments>
		<pubDate>Sat, 27 Dec 2008 08:00:07 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[usability]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de//?p=476</guid>
		<description><![CDATA[When you build websites and test them in various browsers there always are some problems in some browsers. Usually it&#8217;s the one you expect who displays things incorrectly. But a few days ago I was surprised when Opera insisted on showing me the contents of a &#60;noscript&#62; tag. The solution to the problem was a [...]]]></description>
			<content:encoded><![CDATA[<p>When you build websites and test them in various browsers there always are some problems in some browsers. Usually it&#8217;s the one you expect who displays things incorrectly. But a few days ago I was surprised when Opera insisted on showing me the contents of a &lt;noscript&gt; tag<span id="more-476"></span>.<br />
The solution to the problem was a little surprising. To have users see a nice noscript message I had styled it through CSS. When I removed the styles Opera behaved. The line that triggered the display was</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span></pre></div></div>

<p>Other <tt>display</tt> configurations seem to create the same problem. Opera&#8217;s behaviour is incorrect, see <a href="http://www.w3.org/TR/REC-html40/interact/scripts.html#h-18.3.1">the specs</a> as <a href="http://www.earth.li/~dave/techie/blog/programming/html/OperaShowingNoscript.html">Dave</a> points out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2008/12/27/opera-and-the-noscript-tag/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress 2.7 and the comment pager</title>
		<link>http://www.nkuttler.de/2008/11/04/comment-paging-in-wordpress-27/</link>
		<comments>http://www.nkuttler.de/2008/11/04/comment-paging-in-wordpress-27/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 23:41:28 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Content Management]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[Webdesign]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress theme]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de//?p=397</guid>
		<description><![CDATA[Comment paging is a great new feature in WordPress 2.7. However, how do you not display the pager when there are no previous or next comments? After digging through the code for quite a while and chatting with some people here&#8217;s a solution: &#60;?php if &#40; have_comments&#40;&#41; &#41; &#123; ?&#62; &#60;ol class=&#34;commentlist&#34;&#62; &#60;?php wp_list_comments&#40;&#41;; if [...]]]></description>
			<content:encoded><![CDATA[<p>Comment paging is a great new feature in WordPress 2.7. However, how do you not display the pager when there are no previous or next comments? After digging through the code for quite a while and chatting with some people here&#8217;s a solution:<span id="more-397"></span></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> have_comments<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
    &lt;ol class=&quot;commentlist&quot;&gt;
    <span style="color: #000000; font-weight: bold;">&lt;?php</span>
    wp_list_comments<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page_comments'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span>
        get_query_var<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cpage'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">1</span> <span style="color: #339933;">||</span>
        get_query_var<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cpage'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;</span> get_comment_pages_count<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">?&gt;</span> &lt;!-- pager HTML --&gt; <span style="color: #000000; font-weight: bold;">&lt;?php</span>
            next_comments_link<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000000; font-weight: bold;">?&gt;</span> &lt;!-- pager HTML --&gt; <span style="color: #000000; font-weight: bold;">&lt;?php</span>
            previous_comments_link<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
            <span style="color: #000000; font-weight: bold;">?&gt;</span> &lt;!-- pager HTML --&gt; <span style="color: #000000; font-weight: bold;">&lt;?php</span>
    <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
    &lt;/ol&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>If you want to get started with 2.7 theme migration have a look at <a href="http://ottodestruct.com/blog/2008/09/29/wordpress-27-comments-enhancements/">Otto&#8217;s</a> or <a href="http://sivel.net/2008/10/wp-27-comment-separation/">Matt&#8217;s</a> posts on the new comment system and ping/comment separation.</p>
<p><b>Update:</b> No, <tt>get_previous_posts_page_link()</tt> is incorrect and <tt>get_previous_comments_link()</tt> doesn&#8217;t exist (yet).</p>
<p><b>Update 2:</b> Thanks to Viper007Bond for pointing me in the right direction.</p>
<p><b>Update 3:</b> <a href="http://trac.wordpress.org/ticket/8058">trac ticket</a></p>
<p><b>Update 4:</b> Additional conditional to not show the pager at all if paging isn&#8217;t enabled.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2008/11/04/comment-paging-in-wordpress-27/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
