<?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>Biggle&#039;s Blog &#187; PHP</title>
	<atom:link href="http://www.biggle.de/blog/category/development/php-development/feed" rel="self" type="application/rss+xml" />
	<link>http://www.biggle.de/blog</link>
	<description>Web- und Software Development</description>
	<lastBuildDate>Tue, 07 Feb 2012 13:08:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>BBComments um SyntaxTag [code] erweitert</title>
		<link>http://www.biggle.de/blog/bbcomments-um-syntaxtag-code-erweitert</link>
		<comments>http://www.biggle.de/blog/bbcomments-um-syntaxtag-code-erweitert#comments</comments>
		<pubDate>Sun, 21 Nov 2010 19:09:37 +0000</pubDate>
		<dc:creator>Mario Priebe</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.biggle.de/blog/?p=5977</guid>
		<description><![CDATA[Wer BBComments und WP-Syntax im seinem WordPress-Blog verwendet, sollte BBComments updaten. Ich habe das Plugin um das [code] Tag erweitert, wodurch es möglich ist, Sourcecode im Kommentar zu posten. BBComments verwendet dazu WP-Syntax. Unter optionaler Angabe von lang="" kann man das Einfärben des Codes beeinflussen, hierfür können alle Sprachen verwendet werden, die auch wp-syntax verwendet. [...]]]></description>
			<content:encoded><![CDATA[<p>Wer <a href="http://www.biggle.de/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3dvcmRwcmVzcy5vcmcvZXh0ZW5kL3BsdWdpbnMvYmJjb21tZW50cy8=">BBComments</a> und <a href="http://www.biggle.de/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3dvcmRwcmVzcy5vcmcvZXh0ZW5kL3BsdWdpbnMvd3Atc3ludGF4Lw==">WP-Syntax</a> im seinem WordPress-Blog verwendet, sollte BBComments updaten. </p>
<p>Ich habe das Plugin um das [code] Tag erweitert, wodurch es möglich ist, Sourcecode im Kommentar zu posten. BBComments verwendet dazu <a href="http://www.biggle.de/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3dvcmRwcmVzcy5vcmcvZXh0ZW5kL3BsdWdpbnMvd3Atc3ludGF4Lw==">WP-Syntax</a>.</p>
<p>Unter optionaler Angabe von lang="" kann man das Einfärben des Codes beeinflussen, hierfür können alle Sprachen verwendet werden, die auch wp-syntax verwendet. (z.B. csharp, php, ruby, xml,...)</p>
<p>Verwendungsbeispiele<br />
[code lang="php"]samplecode[/code]<br />
[code lang="ruby"]samplecode[/code]<br />
[code lang="csharp"]samplecode[/code]</p>
<p>Bei der default Angabe war ich egoistisch und habe hier csharp angegeben : )<br />
wer also csharp code posten will, brauch nur [code]samplecode[/code] angeben.</p>
<p>Viel Spaß damit!</p>
<hr /><p style="float:right; font-size:0.9em;">Dieser Beitrag stammt von <a href="http://www.biggle.de/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5iaWdnbGUuZGU=">Mario Priebe</a>.</p> <img src="http://www.biggle.de/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=5977" width="1" height="1" style="display: none;" /><h2  class="related_post_title">Ähnliche Beiträge</h2><ul class="related_post"><li>23. April 2010 -- <a href="http://www.biggle.de/blog/facebook-like-button-im-blog-einbinden" title="Facebook Like Button im Blog einbinden">Facebook Like Button im Blog einbinden</a></li><li>13. Februar 2010 -- <a href="http://www.biggle.de/blog/dotnet-kick-button-in-wordpress-einbinden-ii" title="Dotnet-Kick Button in Wordpress einbinden II">Dotnet-Kick Button in Wordpress einbinden II</a></li><li>3. Januar 2010 -- <a href="http://www.biggle.de/blog/aktuelles-copyright-datum-im-footer" title="Aktuelles &#8220;Copyright&#8221; Datum im Footer">Aktuelles &#8220;Copyright&#8221; Datum im Footer</a></li><li>19. Dezember 2009 -- <a href="http://www.biggle.de/blog/merkwuerdige-wp-vars-php-im-footer" title="Merkwürdige wp-vars.php im Footer">Merkwürdige wp-vars.php im Footer</a></li><li>27. November 2009 -- <a href="http://www.biggle.de/blog/falsche-uhrzeit-im-weblog" title="Falsche Uhrzeit im WebLog">Falsche Uhrzeit im WebLog</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.biggle.de/blog/bbcomments-um-syntaxtag-code-erweitert/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook Like Button + Status kombinieren</title>
		<link>http://www.biggle.de/blog/facebook-like-button-status-kombinieren</link>
		<comments>http://www.biggle.de/blog/facebook-like-button-status-kombinieren#comments</comments>
		<pubDate>Sat, 21 Aug 2010 20:28:37 +0000</pubDate>
		<dc:creator>Mario Priebe</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tipps]]></category>
		<category><![CDATA[facebook]]></category>

		<guid isPermaLink="false">http://www.biggle.de/blog/?p=5168</guid>
		<description><![CDATA[Bei Prometeo habe ich gefunden, wie man den Like Button im Blog um die Funktion der Statusaktualisierung erweitern kann. Nun kann ich zusätzlich zum &#8220;Ich mag den Artikel&#8221; auch gleich noch ein Kommentar dazu mit abgegeben, welcher dann als Status auf deiner Facebook Pinnwand erscheint. Verwendet wird hier die Facebook Markup Language kurz FBML (Developers Guide) [...]]]></description>
			<content:encoded><![CDATA[<p>Bei <a href="http://www.biggle.de/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5wcm9tZXRlby5kZS8yMDEwLzA3L2ZhY2Vib29rLWdlZmFlbGx0LW1pci1idXR0b24tdW5kLXNoYXJlLWJ1dHRvbi1idWVuZGVsbi8=">Prometeo</a> habe ich gefunden, wie man den Like Button im Blog um die Funktion der Statusaktualisierung erweitern kann. Nun kann ich zusätzlich zum &#8220;Ich mag den Artikel&#8221; auch gleich noch ein Kommentar dazu mit abgegeben, welcher dann als Status auf deiner Facebook Pinnwand erscheint. Verwendet wird hier die Facebook Markup Language kurz FBML (<a href="http://www.biggle.de/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2RldmVsb3BlcnMuZmFjZWJvb2suY29tL2RvY3MvcmVmZXJlbmNlL2ZibWwv">Developers Guide</a>)</p>
<p>Um den Facebook Like &#8211; Status-Button einzubinden sind folgende Schritte notwendig:</p>
<p>Eine Facebook API-Key beantragen: <a href="http://www.biggle.de/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2RldmVsb3BlcnMuZmFjZWJvb2suY29tL3NldHVwLw==">http://developers.facebook.com/setup/</a> hier bitte darauf achten, dass man bei der Domain die man dort angibt ein abschließenden Slash mit angibt, ansonsten gibt es eine Fehlermeldung: Also www.domain.de/</p>
<p>Des Weiteren benötigt man seine FacebookId. Die schnellste Möglichkeit an diese heranzukommen ist über die Anwendung <a href="http://www.biggle.de/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5mYWNlYm9vay5jb20vIyEvd2hhdGlzbXlpZA==">What is myID</a>.</p>
<p>Hat man beides zur Hand, nur noch folgenden Codeschnipsel setzen:</p>
<p>Header (innerhalb head)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td 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> is_single<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>
&lt;meta property=&quot;fb:admins&quot; content=&quot;YOUR.FACEBOOK.ID&quot; /&gt;
&lt;meta property=&quot;fb:app_id&quot; content=&quot;YOUR.API.KEY&quot; /&gt;
&lt;meta property=&quot;og:site_name&quot; content=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
&lt;meta property=&quot;og:title&quot; content=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_the_title<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>&quot; /&gt;
&lt;meta property=&quot;og:type&quot; content=&quot;article&quot; /&gt;
<span style="color: #000000; font-weight: bold;">&lt;?</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Footer (vor ende body)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td 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> is_single<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>
&lt;div id=&quot;fb-root&quot;&gt;&lt;/div&gt;
&nbsp;
&lt;script src=&quot;http://connect.facebook.net/de_DE/all.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
window.fbAsyncInit = function() {
FB.init({appId: 'YOUR.API.KEY', status: true, cookie: true, xfbml: true});
}
&lt;/script&gt;
<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></pre></td></tr></table></div>

<p>an gewünschte Ausgabestelle (z.b. single.php &#8211; falls an anderer Stelle if is_single anpassen)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;fb:like href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; layout=&quot;standard&quot; show_faces=&quot;false&quot; width=&quot;300&quot; action=&quot;like&quot; colorscheme=&quot;light&quot; font=&quot;trebuchet ms&quot;&gt;&lt;/fb:like&gt;</pre></td></tr></table></div>

<p>Das wars auch schon, bei mir im Blog läuft das ganze schon, also einfach mal ausprobieren.</p>
<p>Was n bissle spackt, dass der irgendein Bild im Status verwendet, wie man darauf Einfluss hat weiss ich leider noch nicht. Wenn es jemand heraus bekommt bitte unbedingt in die Kommentare damit : )</p>
<p><br class="spacer_" /></p>
<hr /><p style="float:right; font-size:0.9em;">Dieser Beitrag stammt von <a href="http://www.biggle.de/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5iaWdnbGUuZGU=">Mario Priebe</a>.</p> <img src="http://www.biggle.de/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=5168" width="1" height="1" style="display: none;" /><h2  class="related_post_title">Ähnliche Beiträge</h2><ul class="related_post"><li>19. August 2010 -- <a href="http://www.biggle.de/blog/the-social-network-der-film-kino" title="The Social Network &#8211; Der Film">The Social Network &#8211; Der Film</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.biggle.de/blog/facebook-like-button-status-kombinieren/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alle Bilder eines Verzeichnisses &#8211; PHP Quicky</title>
		<link>http://www.biggle.de/blog/alle-bilder-eines-verzeichnisses-php-quicky</link>
		<comments>http://www.biggle.de/blog/alle-bilder-eines-verzeichnisses-php-quicky#comments</comments>
		<pubDate>Sun, 04 Apr 2010 10:20:45 +0000</pubDate>
		<dc:creator>Mario Priebe</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[CodeSnippet]]></category>
		<category><![CDATA[Quicky]]></category>

		<guid isPermaLink="false">http://www.biggle.de/blog/?p=4261</guid>
		<description><![CDATA[Um alle Bilder eines Verzeichnisses aufzulisten kann man folgenden CodeSchnipsel verwenden: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 &#60;?php $dir = 'pics'; &#160; $d = dir&#40;$dir&#41;; while&#40;$pic = $d-&#62;read&#40;&#41;&#41; &#123; if &#40;preg_match&#40;'/\.jpe?g$/i', $pic&#41;&#41; &#123; echo &#34;&#60;img src=\&#34;$dir/$pic\&#34; /&#62;&#34;; echo &#34;&#60;br /&#62;&#34;; $i ++; &#125; &#125; $d-&#62;close&#40;&#41;; ?&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Um alle Bilder eines Verzeichnisses aufzulisten kann man folgenden CodeSchnipsel verwenden:</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
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$dir</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'pics'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$d</span> <span style="color: #339933;">=</span> <span style="color: #990000;">dir</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dir</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pic</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$d</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">read</span><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: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/\.jpe?g$/i'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$pic</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;img src=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #006699; font-weight: bold;">$dir</span>/<span style="color: #006699; font-weight: bold;">$pic</span><span style="color: #000099; font-weight: bold;">\&quot;</span> /&gt;&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;br /&gt;&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$i</span> <span style="color: #339933;">++;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000088;">$d</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">close</span><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></td></tr></table></div>

<hr /><p style="float:right; font-size:0.9em;">Dieser Beitrag stammt von <a href="http://www.biggle.de/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5iaWdnbGUuZGU=">Mario Priebe</a>.</p> <img src="http://www.biggle.de/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=4261" width="1" height="1" style="display: none;" /><h2  class="related_post_title">Ähnliche Beiträge</h2><ul class="related_post"><li>14. Februar 2011 -- <a href="http://www.biggle.de/blog/texttrimming-xaml-quicky" title="TextTrimming &#8211;  XAML Quicky">TextTrimming &#8211;  XAML Quicky</a></li><li>14. Februar 2011 -- <a href="http://www.biggle.de/blog/doppelklick-im-datagrid-abfangen-wpf-quicky" title="Doppelklick im DataGrid abfangen &#8211; WPF Quicky">Doppelklick im DataGrid abfangen &#8211; WPF Quicky</a></li><li>28. Dezember 2011 -- <a href="http://www.biggle.de/blog/websequencediagrams-api-mit-net" title="WebSequenceDiagrams API mit .NET">WebSequenceDiagrams API mit .NET</a></li><li>4. November 2011 -- <a href="http://www.biggle.de/blog/wie-verhindere-ich-beim-klick-eines-hyperlinkbuttons-in-silverlight-die-umrandung-quicky" title="Wie verhindere ich beim Klick eines HyperlinkButtons in Silverlight die Umrandung &#8211; Quicky">Wie verhindere ich beim Klick eines HyperlinkButtons in Silverlight die Umrandung &#8211; Quicky</a></li><li>5. Mai 2011 -- <a href="http://www.biggle.de/blog/prufen-ob-ein-string-eine-guid-ist" title="Prüfen ob ein String eine Guid ist">Prüfen ob ein String eine Guid ist</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.biggle.de/blog/alle-bilder-eines-verzeichnisses-php-quicky/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Jahresabo zu gewinnen</title>
		<link>http://www.biggle.de/blog/php-jahresabo-zu-gewinnen</link>
		<comments>http://www.biggle.de/blog/php-jahresabo-zu-gewinnen#comments</comments>
		<pubDate>Tue, 23 Mar 2010 17:11:54 +0000</pubDate>
		<dc:creator>Mario Priebe</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Gewinnspiel]]></category>

		<guid isPermaLink="false">http://www.biggle.de/blog/?p=4220</guid>
		<description><![CDATA[Zwei mal ein Jahresabo für das PHP Magazin gibt es beim Jan von PHP Performance zu gewinnen. Alles was man dazu machen soll, ist eben &#8220;wie gewohnt&#8221; einen kurzen Artikel verfassen, der auf das Gewinnspiel verlinkt. Na dann, ich versuche dann mal mein Glück : ) Dieser Beitrag stammt von Mario Priebe. Ähnliche Beiträge31. Juli [...]]]></description>
			<content:encoded><![CDATA[<p>Zwei mal ein Jahresabo für das <a href="http://www.biggle.de/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2l0LXJlcHVibGlrLmRlL3BocC8=">PHP Magazin</a> gibt es beim Jan von <a href="http://www.biggle.de/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3BocHBlcmZvcm1hbmNlLmRlL3BocC1tYWdhemluLWdld2lubmUtZWluZXMtdm9uLXp3ZWktamFocmVzYWJvcy8=">PHP Performance</a> zu gewinnen. Alles was man dazu machen soll, ist eben &#8220;wie gewohnt&#8221; einen kurzen Artikel verfassen, der auf das Gewinnspiel verlinkt.</p>
<p>Na dann, ich versuche dann mal mein Glück : )</p>
<p><a href="http://www.biggle.de/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5iaWdnbGUuZGUvYmxvZy93cC1jb250ZW50L3VwbG9hZHMvMjAxMC8wMy9waHBtYWdhemluLmpwZw=="><img class="alignnone size-full wp-image-4221" title="phpmagazin" src="http://www.biggle.de/blog/wp-content/uploads/2010/03/phpmagazin.jpg" alt="" width="440" height="128" /></a></p>
<p><br class="spacer_" /></p>
<hr /><p style="float:right; font-size:0.9em;">Dieser Beitrag stammt von <a href="http://www.biggle.de/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5iaWdnbGUuZGU=">Mario Priebe</a>.</p> <img src="http://www.biggle.de/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=4220" width="1" height="1" style="display: none;" /><h2  class="related_post_title">Ähnliche Beiträge</h2><ul class="related_post"><li>31. Juli 2010 -- <a href="http://www.biggle.de/blog/verlosung-usb-crypto-stick" title="Verlosung USB Crypto Stick">Verlosung USB Crypto Stick</a></li><li>7. September 2008 -- <a href="http://www.biggle.de/blog/gewinnspiel-fortgeschrittene-css-techniken" title="Gewinnspiel Fortgeschrittene CSS-Techniken">Gewinnspiel Fortgeschrittene CSS-Techniken</a></li><li>5. August 2008 -- <a href="http://www.biggle.de/blog/technical-summit-2008-gewinnspiel" title="Technical Summit 2008 &#8211; Gewinnspiel">Technical Summit 2008 &#8211; Gewinnspiel</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.biggle.de/blog/php-jahresabo-zu-gewinnen/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aktuelles &#8220;Copyright&#8221; Datum im Footer</title>
		<link>http://www.biggle.de/blog/aktuelles-copyright-datum-im-footer</link>
		<comments>http://www.biggle.de/blog/aktuelles-copyright-datum-im-footer#comments</comments>
		<pubDate>Sun, 03 Jan 2010 21:10:04 +0000</pubDate>
		<dc:creator>Mario Priebe</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[CodeSnippet]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.biggle.de/blog/?p=3602</guid>
		<description><![CDATA[Peruns Weblog erinnert daran, das Datum im Footer zu aktualisieren und zeigt auch einen php-oneliner der das Jahr aktuell halten soll. Folgendes Snippet legt noch einen drauf und gibt den Zeitraum vom ersten bis zum letzten Posting aus, welches Du in deinem Blog geschrieben hast: Copyright © 2008-2010 1 2 3 4 5 6 7 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.biggle.de/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5wZXJ1bi5uZXQvMjAxMC8wMS8wMi9rb3JyaWdpZXJ0LWV1cmUtaGlud2Vpc2UtZnVlci1kaWUtY29weXJpZ2h0LWphaHJlLw==">Peruns Weblog</a> erinnert daran, das Datum im Footer zu aktualisieren und zeigt auch einen php-oneliner der das Jahr aktuell halten soll.</p>
<p>Folgendes Snippet legt noch einen drauf und gibt den Zeitraum vom ersten bis zum letzten Posting aus, welches Du in deinem Blog geschrieben hast: Copyright ©  2008-2010</p>
<p><br class="spacer_" /></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
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
    <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$post_datetimes</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_row</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">prepare</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT YEAR(min(post_date_gmt)) AS firstyear, YEAR(max(post_date_gmt)) AS lastyear FROM <span style="color: #006699; font-weight: bold;">$wpdb-&gt;posts</span> WHERE post_date_gmt &gt; 1970&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_datetimes</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$firstpost</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$post_datetimes</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">firstyear</span><span style="color: #339933;">;</span>
            <span style="color: #000088;">$lastpost</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$post_datetimes</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">lastyear</span><span style="color: #339933;">;</span>
&nbsp;
            <span style="color: #000088;">$copyright</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Copyright &amp;copy;&amp;nbsp;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$firstpost</span><span style="color: #339933;">;</span>
            <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$firstpost</span> <span style="color: #339933;">!=</span> <span style="color: #000088;">$lastpost</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                    <span style="color: #000088;">$copyright</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'-'</span><span style="color: #339933;">.</span> <span style="color: #000088;">$lastpost</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
            <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$copyright</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p><br class="spacer_" /></p>
<hr /><p style="float:right; font-size:0.9em;">Dieser Beitrag stammt von <a href="http://www.biggle.de/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5iaWdnbGUuZGU=">Mario Priebe</a>.</p> <img src="http://www.biggle.de/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=3602" width="1" height="1" style="display: none;" /><h2  class="related_post_title">Ähnliche Beiträge</h2><ul class="related_post"><li>17. Oktober 2008 -- <a href="http://www.biggle.de/blog/letzten-10-updates-w3c-valid" title="Letzten 10 Updates W3C Valid">Letzten 10 Updates W3C Valid</a></li><li>9. September 2008 -- <a href="http://www.biggle.de/blog/willkommen-zuruck-wp-snippet" title="Willkommen zurück WP-Snippet">Willkommen zurück WP-Snippet</a></li><li>19. Dezember 2009 -- <a href="http://www.biggle.de/blog/datenbankverbindung-php-mysql" title="Datenbankverbindung PHP / MySQL">Datenbankverbindung PHP / MySQL</a></li><li>17. Oktober 2008 -- <a href="http://www.biggle.de/blog/ebay-live-price-watcher" title="Ebay Live Price-Watcher">Ebay Live Price-Watcher</a></li><li>28. Dezember 2011 -- <a href="http://www.biggle.de/blog/websequencediagrams-api-mit-net" title="WebSequenceDiagrams API mit .NET">WebSequenceDiagrams API mit .NET</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.biggle.de/blog/aktuelles-copyright-datum-im-footer/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

