<?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>Lars Schenk &#187; Widget</title>
	<atom:link href="http://lars-schenk.com/tag/widget/feed" rel="self" type="application/rss+xml" />
	<link>http://lars-schenk.com</link>
	<description>IT-Services :: Software-Development since 1980 :: Freelancer since 1988</description>
	<lastBuildDate>Thu, 18 Feb 2010 23:42:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Kategorie Widget für WordPress</title>
		<link>http://lars-schenk.com/kategorie-widget-fuer-wordpress/132</link>
		<comments>http://lars-schenk.com/kategorie-widget-fuer-wordpress/132#comments</comments>
		<pubDate>Thu, 02 Aug 2007 10:35:13 +0000</pubDate>
		<dc:creator>Lars Schenk</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[tech-recipes]]></category>
		<category><![CDATA[Scriptaculous]]></category>
		<category><![CDATA[Widget]]></category>

		<guid isPermaLink="false">http://lars-schenk.com/kategorie-widget-fuer-wordpress/132</guid>
		<description><![CDATA[Für ein WordPress basiertes Projekt soll eine umfangreiche Kategorie-Liste ansprechend präsentiert werden. Eine hohe Usability soll gewährleistet sein, so dass die Kategorie-Liste eine tragende Rolle bei der Navigation durch die Beiträge einnehmen kann.
Es sind einige Plugins im Umlauf, die die integrierte Kategorie-Liste von WordPress ersetzen und z.B. um aufklappbare Ordner erweitern. 
Fold Category List 1.12 [...]]]></description>
			<content:encoded><![CDATA[<p>Für ein WordPress basiertes Projekt soll eine umfangreiche Kategorie-Liste ansprechend präsentiert werden. Eine hohe Usability soll gewährleistet sein, so dass die Kategorie-Liste eine tragende Rolle bei der Navigation durch die Beiträge einnehmen kann.</p>
<p>Es sind einige Plugins im Umlauf, die die integrierte Kategorie-Liste von WordPress ersetzen und z.B. um aufklappbare Ordner erweitern. <span id="more-132"></span></p>
<p><a href="http://www.webspaceworks.com/resources/cat/wp-plugins/31/">Fold Category List 1.12</a> - Provides PHP functions to display a folding category tree.</p>
<p>Dieses Tool kommt ohne Widget daher und arbeitet ohne JavaScript. Es wird also zum Aufklappen eine Kategorie immer eine neue Seite geladen.</p>
<p>Genau diesen Nachteil adressiert das <a href="http://dragonflyeye.net/blog/javascript-collapsing-categories/">JavaScript Animated Collapsing Categories Widget</a>.</p>
<p>Diese Lösung basiert auf JavaScript - somit wird das Neuladen der Seite vermieden. Ausserdem wird ein Widget beigesteuert. Die Kompatibelität zu WordPress 2.2 scheint jedoch noch nicht gewährleistet zu sein. Der Autor schreibt dazu "NOTE Concerning WordPress 2.2: I have not upgraded my blog to 2.2 yet, and cannot speak to the compatibility of this plugin with WP2.2.  If you’ve tried it, please share with me your results!" Ich habe auch Probleme mit diesem Tool unter WP2.2 @Apache2, php5 gehabt, so dass ich mich einem anderen Tool zugewendet habe:</p>
<p><a href="http://www.silpstream.com/blog/wp-dtree/">WP-dTree</a></p>
<p>Leider ist auch hier die aktuelle WP-dTree Version 2.2 bereits etwas angestaubt (last update 10 July 2006) und wolle auf Anhieb nicht so recht mit WP 2.2 harmonieren. </p>
<p>WP-dTree Version 2.2 setzt auf <a href="http://www.silpstream.com/blog/wp-scriptaculous/">WP-Scriptaculous</a> auf, was vom Autoren ein Lösungsansatz ist unterschiedliche <a href="http://script.aculo.us/">Scriptaculous</a> Versionen zu handlen und die Installation für Scriptaculous-basierte Widgets zu vereinfachen. Ich denke aber, dass dieser zusätzliche Layer nur mehr Komplexibelität mit sich bringt, die nicht zwingend erforderlich ist. Sehr negativ finde ich auch, dass das Plugin Schreibrechte auf die .htaccess benötigt. Um den Problemen mit WP-Scriptaculous aus dem Weg zu gehen habe ich mich entschlossen auf WP-Scriptaculous zu verzichten.</p>
<p>Damit WP-dTree Version 2.2 auch ohne WP-Scriptaculous eingesetzt werden kann, habe ich an /wp-content/plugins/wp-dtree.php folgende Änderungen durchgeführt:</p>
<div class="igBar"><span id="lphp-3"><a href="#" onclick="javascript:showPlainTxt('php-3'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-3">
<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;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span> !<span style="color:#0000FF;">$effon</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; update_option<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'wp_dtree_options'</span>, <span style="color:#0000FF;">$wpdtreeopt</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; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"&lt;div id=<span style="color:#000099; font-weight:bold;">\"</span>message<span style="color:#000099; font-weight:bold;">\"</span> class=<span style="color:#000099; font-weight:bold;">\"</span>updated fade<span style="color:#000099; font-weight:bold;">\"</span>&gt;&lt;p&gt;"</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/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"&lt;font color=<span style="color:#000099; font-weight:bold;">\"</span>red<span style="color:#000099; font-weight:bold;">\"</span>&gt;WP-dTree settings updated...&lt;/font&gt;&lt;br /&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; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"&lt;/p&gt;&lt;/div&gt;"</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> <span style="color:#616100;">else</span> <span style="color:#008000;">/* LS change (Verzicht auf WP_Scriptaculous) | if ( get_option('wp_scriptaculous_installed') )*/</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; update_option<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'wp_dtree_options'</span>, <span style="color:#0000FF;">$wpdtreeopt</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/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"&lt;div id=<span style="color:#000099; font-weight:bold;">\"</span>message<span style="color:#000099; font-weight:bold;">\"</span> class=<span style="color:#000099; font-weight:bold;">\"</span>updated fade<span style="color:#000099; font-weight:bold;">\"</span>&gt;&lt;p&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; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"&lt;font color=<span style="color:#000099; font-weight:bold;">\"</span>red<span style="color:#000099; font-weight:bold;">\"</span>&gt;WP-dTree settings updated...&lt;/font&gt;&lt;br /&gt;"</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/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"&lt;font color=<span style="color:#000099; font-weight:bold;">\"</span>red<span style="color:#000099; font-weight:bold;">\"</span>&gt;Effects are active...&lt;/font&gt;&lt;br /&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; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"&lt;/p&gt;&lt;/div&gt;"</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> <span style="color:#008000;">/* LS change (Verzicht auf WP_Scriptaculous) | else {</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:#008000;">&nbsp; &nbsp; echo &quot;&lt;div id=\&quot;message\&quot; class=\&quot;updated fade\&quot;&gt;&lt;p&gt;&quot;;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; echo &quot;&lt;font color=\&quot;red\&quot;&gt;WP-Scriptaculous plugin was not detected.&lt;/font&gt;&lt;br /&gt;&quot;;</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:#008000;">&nbsp; &nbsp; echo &quot;&lt;font color=\&quot;red\&quot;&gt;Disable the effect and update again or install the plugin.&lt;/font&gt;&lt;br /&gt;&quot;;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">&nbsp; &nbsp; echo &quot;&lt;font color=\&quot;red\&quot;&gt;Update failed...&lt;/font&gt;&quot;;</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:#008000;">&nbsp; &nbsp; echo &quot;&lt;/p&gt;&lt;/div&gt;&quot;;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">} */</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>In meinem Theme referenziere ich dann die erforderlichen Scriptaculous Dateien, die von WP aus mitgeliefert werden:</p>
<div class="igBar"><span id="lphp-4"><a href="#" onclick="javascript:showPlainTxt('php-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-4">
<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;">&lt;!-- required <span style="color:#616100;">for</span> WP-dTree --&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script src=<span style="color:#FF0000;">"&lt;?php bloginfo('home');?&gt;/wp-includes/js/scriptaculous/prototype.js"</span> type=<span style="color:#FF0000;">"text/javascript"</span> language=<span style="color:#FF0000;">"JavaScript"</span>&gt;&lt;/script&gt;</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;">&lt;script src=<span style="color:#FF0000;">"&lt;?php bloginfo('home');?&gt;/wp-includes/js/scriptaculous/scriptaculous.js?load=effects"</span> type=<span style="color:#FF0000;">"text/javascript"</span> language=<span style="color:#FF0000;">"JavaScript"</span>&gt;&lt;/script&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;!-- /required <span style="color:#616100;">for</span> WP-dTree --&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Wünschenswert wäre es übrigens, wenn hier eine AJAX basierte Lösung verfügbar wäre, da somit auch bei umfangreicheren Kategorie-Listen geringere Ladezeiten realisierbar wären.</p>
<p>Last but not least fehlt dem WP-dTree ein Widget so dass es statisch in das Theme eingebunden werden müsste um es zu nutzen. Ich habe mir daher ein einfaches Widget gebaut, welches als Layer um den Funktions-Aufruf für die Kategorie-Liste gelegt wird. Ich habe es lsdtree genannt und sie können es <a href="/wp-content/plugins/widgets/lsdtree.zip">hier downloaden</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://lars-schenk.com/kategorie-widget-fuer-wordpress/132/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Wordpress 2.2 bringt Widgets mit</title>
		<link>http://lars-schenk.com/wordpress-22-bringt-widgets-mit/110</link>
		<comments>http://lars-schenk.com/wordpress-22-bringt-widgets-mit/110#comments</comments>
		<pubDate>Mon, 21 May 2007 14:21:49 +0000</pubDate>
		<dc:creator>Lars Schenk</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Widget]]></category>

		<guid isPermaLink="false">http://www.lars-schenk.com/wordpress-22-bringt-widgets-mit/110</guid>
		<description><![CDATA[Das Upgrade auf Wordpress 2.2 lief gewohnt Stressfrei ab. Da ich bereits zuvor das Widget-System von Automattic als externes Plugin genutzt habe, hatte ich befürchtet, dass es in diesem Bereich Probleme geben könnte. Aber beim Upgrade wurde das externe Widget-Plugin deaktiviert und stattdessen auf das interne Widget-System umgestellt. Mein Theme, dass ich ja bereits mit [...]]]></description>
			<content:encoded><![CDATA[<p>Das Upgrade auf <a href="http://wordpress.org/">Wordpress</a> 2.2 lief gewohnt Stressfrei ab. Da ich bereits zuvor das Widget-System von <a href=" http://automattic.com">Automattic</a> als externes Plugin genutzt habe, hatte ich befürchtet, dass es in diesem Bereich Probleme geben könnte. Aber beim Upgrade wurde das externe Widget-Plugin deaktiviert und stattdessen auf das interne Widget-System umgestellt. Mein Theme, dass ich ja bereits mit dynamischen Sidebars betreibe, brauchte nicht angepasst zu werden. Auch die von mir selbst erstellten Widgets brauchten nicht angepasst zu werden.</p>
<p>Bei anderen WP-Installationen, die bisher mit statischen Sidebars arbeiteten, habe ich die dort verwendeten Themes auf dynamische Sidebars umgestellt, so dass der WP-Admin dort auch die Widgets nutzen kann.</p>
]]></content:encoded>
			<wfw:commentRss>http://lars-schenk.com/wordpress-22-bringt-widgets-mit/110/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Upgrades &#8211; Impact auf Plugings</title>
		<link>http://lars-schenk.com/wordpress-upgrades-impact-auf-plugings/105</link>
		<comments>http://lars-schenk.com/wordpress-upgrades-impact-auf-plugings/105#comments</comments>
		<pubDate>Thu, 26 Apr 2007 12:02:58 +0000</pubDate>
		<dc:creator>Lars Schenk</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[tech-recipes]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Widget]]></category>

		<guid isPermaLink="false">http://www.lars-schenk.com/wordpress-upgrades-impact-auf-plugings/105</guid>
		<description><![CDATA[Mit dem Wordpress-Upgrade auf 2.1 (derzeit 2.13) habe ich mich bei diesem Blog etwas schwer getan, denn ich verwende zahlreiche Plugins deren Kompatibelität zur 2.1er Version nocht nicht bestätigt war. Jetzt habe ich endlich das Upgrade von der 2.07 zur 2.13 gewagt und fahre dabei mit folgenden Plugins weiterhin überwiegend reibungslos: 

iG:Syntax Hiliter 3.5
Subscribe to [...]]]></description>
			<content:encoded><![CDATA[<p>Mit dem Wordpress-Upgrade auf 2.1 (derzeit 2.13) habe ich mich bei diesem Blog etwas schwer getan, denn ich verwende zahlreiche Plugins deren Kompatibelität zur 2.1er Version nocht nicht bestätigt war. Jetzt habe ich endlich das Upgrade von der 2.07 zur 2.13 gewagt und fahre dabei mit folgenden Plugins weiterhin überwiegend reibungslos: <span id="more-105"></span></p>
<ol>
<li><a href="http://blog.igeek.info/wp-plugins/igsyntax-hiliter/">iG:Syntax Hiliter 3.5</a></li>
<li><a href="http://txfx.net/code/wordpress/subscribe-to-comments/">Subscribe to comments 2.1</a></li>
<li><a href="http://www.acmetech.com/blog/adsense-deluxe/">Adsense-Deluxe 0.8</a></li>
<li><a href="http://tantannoodles.com/toolkit/photo-album/">Flickr Photo Gallery</a> (aktuelle Version 0.91 broken downgrade auf Version 0.89)</li>
</ol>
<p>Das Subscripte to comments scheint einen Bug zu haben, denn die Einstellung: "CSS "clear" auf Abonnieren-Checkbos ausführen" lässt sich nicht ändern. Da das CSS mit meinem Theme nicht harmoniert habe ich im Plugin subscripte-to-comments.php bei Zeile 269 folgende kleine Änderung vorgenommen:</p>
<div class="igBar"><span id="lphp-6"><a href="#" onclick="javascript:showPlainTxt('php-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-6">
<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:#FF9933; font-style:italic;">// 26.04.2007 - clear-both war immer true. Wird wohl nicht richtig in die DB geschrieben. </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// Ich brauche es immer disabled. Daher stelle ich es hier auf null/false.</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:#0000FF;">$this</span>-&gt;<span style="color:#006600;">clear_both</span> = <span style="color:#FF0000;">''</span>; <span style="color:#FF9933; font-style:italic;">// $this-&gt;settings['clear_both']; </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Das nützliche Plugin erlaubt, Kommentare zu abonieren. Man erhält also eine EMail-Benachrichtigung, wenn jemand einen Folgekommentar auf einen eigenen Kommentar abgegeben hat.</p>
<p>Und noch eine Hinweis zur aktuellen Flickr Photo Gallery Version 0.91: Da hat sich offenbar ein Fehler eingeschlichen, denn es erscheint die Fehlermeldung "Error: Please create at least one Flickr photo set, and then click the “Refresh” button above to see your photos." beim Versuch den Flickr-Cash zu refreshen. Diese Fehlermeldung wurde auch im Blog von anderen Anwendern bestätigt. Ich habe auf die 0.89 downgraden müssen und bin damit das Problem losgeworden. Ab Version 0.87 ist das Plugin für WP 2.1 geeignet. Da ich zuvor die 0.85 laufen hatte war ich zu einem Upgrade gezwungen.</p>
]]></content:encoded>
			<wfw:commentRss>http://lars-schenk.com/wordpress-upgrades-impact-auf-plugings/105/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
