<?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>Bennis Welt &#187; PHP</title>
	<atom:link href="http://voetterle.de/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://voetterle.de</link>
	<description>Dies ist der Blog von Benjamin Vötterle</description>
	<lastBuildDate>Fri, 03 Sep 2010 15:22:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<atom:link rel="next" href="http://voetterle.de/category/php/feed/?page=2" />

		<item>
		<title>WordPress mit mehreren Sidebars versehen</title>
		<link>http://voetterle.de/2009/03/28/wordpress-mit-mehreren-sidebars-versehen/</link>
		<comments>http://voetterle.de/2009/03/28/wordpress-mit-mehreren-sidebars-versehen/#comments</comments>
		<pubDate>Sat, 28 Mar 2009 21:41:23 +0000</pubDate>
		<dc:creator>Benni</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Webentwicklung]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://voetterle.de/?p=506</guid>
		<description><![CDATA[Wie Ihr unschwer erkennen könnt, hat sich das Design meines Blogs etwas verändert. Ich habe eine weitere Sidebar für die Widgets eingebaut, da mir die einzelne Sidebar zu lang geworden ist. Nur wie habe ich das gemacht?
Zu allererst habe ich in der functions.php meines Themes folgende Zeile eingefügt:
1register_sidebars&#40;2&#41;;
Die &#8220;2&#8243; in der Klammer steht für die [...]]]></description>
			<content:encoded><![CDATA[<p>Wie Ihr unschwer erkennen könnt, hat sich das Design meines Blogs etwas verändert. Ich habe eine weitere Sidebar für die Widgets eingebaut, da mir die einzelne Sidebar zu lang geworden ist. Nur wie habe ich das gemacht?</p>
<p>Zu allererst habe ich in der functions.php meines Themes folgende Zeile eingefügt:</p>
<div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">register_sidebars<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>Die &#8220;2&#8243; in der Klammer steht für die Anzahl der Sidebars. Dann habe ich die alte sidebar.php gelöscht und zwei neue erstellt, die sidebar-1.php und die sidebar-2.php. Die sidebar-1.php enthält folgenden Code:</p>
<div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;div id=&quot;sidebar-1&quot;&gt;<br />
&nbsp; &nbsp; &lt;ul&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/function_exists"><span style="color: #990000;">function_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'dynamic_sidebar'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #339933;">!</span>dynamic_sidebar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br />
&nbsp; &nbsp; &lt;/ul&gt;<br />
&lt;/div&gt;</div></td></tr></tbody></table></div>
<p>Und die sidebar-2.php diesen:</p>
<div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;div id=&quot;sidebar-2&quot;&gt;<br />
&nbsp; &nbsp; &lt;ul&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/function_exists"><span style="color: #990000;">function_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'dynamic_sidebar'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #339933;">!</span>dynamic_sidebar<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br />
&nbsp; &nbsp; &lt;/ul&gt;<br />
&lt;/div&gt;</div></td></tr></tbody></table></div>
<p>Nun kann man die Sidebars mit diesem Code z.B. in der index.php einfügen:</p>
<div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>Die &#8217;1&#8242; steht für das, was nach dem Strich im Namen in der jeweiligen Sidebar Datei kommt.</p>
]]></content:encoded>
			<wfw:commentRss>http://voetterle.de/2009/03/28/wordpress-mit-mehreren-sidebars-versehen/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Quickform und UTF-8</title>
		<link>http://voetterle.de/2008/09/23/quickforms-und-utf-8/</link>
		<comments>http://voetterle.de/2008/09/23/quickforms-und-utf-8/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 08:47:08 +0000</pubDate>
		<dc:creator>Benni</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Webentwicklung]]></category>
		<category><![CDATA[Programmieren]]></category>

		<guid isPermaLink="false">http://voetterle.de/?p=122</guid>
		<description><![CDATA[Will man PHP Quickforms mit UTF-8 Codierung verwenden, so reicht es nicht aus um diese auch sicher zu erzwingen, im jeweiligen HTML Header die Codierung mit,
1&#38;lt;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; utf-8&#34;/&#38;gt;
anzugeben. Zusätzlich muss auch noch im Code das Forumlar auf UTF-8 eingestellt werden. Dies geht folgender Weise:
12$formular = new HTML_QuickForm('Formular', 'post');
$formular-&#38;gt;charset('UTF-8');
]]></description>
			<content:encoded><![CDATA[<p>Will man <a href="http://pear.php.net/package/HTML_QuickForm">PHP Quickforms</a> mit <a href="http://de.wikipedia.org/wiki/UTF-8">UTF-8</a> Codierung verwenden, so reicht es nicht aus um diese auch sicher zu erzwingen, im jeweiligen HTML Header die Codierung mit,</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; utf-8&quot;/&amp;gt;</div></td></tr></tbody></table></div>
<p>anzugeben. Zusätzlich muss auch noch im Code das Forumlar auf UTF-8 eingestellt werden. Dies geht folgender Weise:</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$formular = new HTML_QuickForm('Formular', 'post');<br />
$formular-&amp;gt;charset('UTF-8');</div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://voetterle.de/2008/09/23/quickforms-und-utf-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
