<?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>Daniel Hüsken</title>
	<atom:link href="http://danielhuesken.de/feed/" rel="self" type="application/rss+xml" />
	<link>http://danielhuesken.de</link>
	<description>Web Developer, IT-Professional</description>
	<lastBuildDate>Wed, 27 Mar 2013 16:00:57 +0000</lastBuildDate>
	<language>de-DE</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>iPhone sync ohne Google Sync</title>
		<link>http://danielhuesken.de/iphone-sync-ohne-google-sync/</link>
		<comments>http://danielhuesken.de/iphone-sync-ohne-google-sync/#comments</comments>
		<pubDate>Sun, 16 Dec 2012 16:11:57 +0000</pubDate>
		<dc:creator>Daniel Hüsken</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Active Sync]]></category>
		<category><![CDATA[CalDAV]]></category>
		<category><![CDATA[CardDAV]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[sync]]></category>

		<guid isPermaLink="false">http://danielhuesken.de/?p=1290</guid>
		<description><![CDATA[Ich habe gestern hier, gelesen das bei Google Sync (Active Sync. mit Gmail), zum 30.01.2013 für neue Nutzer abgeschaltet wird und dann nur noch mit den kostenpflichtigen Accounts möglich ist. Deshalb habe ich mir mal angesehen (obwohl ich nicht betroffen sein sollte), wie ich weiterhin mein iPhone/iPad Synchronismen kann. Dabei musste ich feststellen das es eigentlich ganz einfach einzurichten ist und sogar einige [...]]]></description>
				<content:encoded><![CDATA[<p>Ich habe gestern <a href="http://support.google.com/a/bin/answer.py?hl=en&amp;answer=2716936&amp;topic=27549&amp;ctx=topic">hier</a>, gelesen das bei Google Sync (Active Sync. mit Gmail), zum 30.01.2013 für <strong>neue Nutzer</strong> abgeschaltet wird und dann nur noch mit den kostenpflichtigen Accounts möglich ist.</p>
<p>Deshalb habe ich mir mal angesehen (obwohl ich nicht betroffen sein sollte), wie ich weiterhin mein iPhone/iPad Synchronismen kann.</p>
<p>Dabei musste ich feststellen das es eigentlich ganz einfach einzurichten ist und sogar einige Probleme behebt.</p>
<p>Zum Synchronisieren von Mail, Kalender und Notizen (ging mir Goggle Sync nicht) bedarf es nichts weiter als beim Hinzufügen eines Accounts, Gmail auszuwählen und seine Login Daten zu hinterlegen. Einziger nachteil den ich bisher gefunden habe ist das die Gmail Adresse auch gleichzeitig die Absenderadresse ist. Die Synchronisation wird dann per IMAP mit dem Gmail Konto durchgeführt. Der Kalender wird per CalDAV synchronisiert und die Notizen landen im IMAP Ordner Notes. Den nachteil mit den Absenderadresse umgehe ich, indem ich die Gmail App installiert habe und diese zum mailen verwende. Die App nutzt auch die Signaturen die man in seinen Gmail Konto eingerichtet hat und mann kann mit den lieb gewonnen Labels vernünftig arbeiten. Dadurch das ich jetzt beides eingerichtet habe kann ich zur not auch noch direkt aus einer anderen App eine Mail verschicken. Ein weiter vorteil ist das man direkt alle seine Google Kalender zur Verfügung hat und diese nicht erst über eine extra Internetseite freischalten muss.Den Geburtstagskalender vom Google Kalender habe ich allerdings abgewählt da ich nicht alle Geburtstage doppelt haben wollte.</p>
<p>Die Kontakte Synchronisation muss mann, ich denke zur Zeit noch, extra  einrichten. Dazu richtet man ein zusätzlichen Account für CardDAV ein. Der Server Name ist google.com, plus die Google Account Daten. Damit geht dann auch die Synchronisation der Kontakte. Im Moment sieht es so aus als würde das auch besser funktionieren als mit Google Sync (Active Snyc.) zumindest scheint es so, das sich die Felder in den Adressen nicht mehr wahrlos umbenennen und ich hoffe das Geburtstage sich nicht mehr verschieben.</p>
<p>Alles im allen scheint es keinen nachteil durch das &#8220;abschalten&#8221; von Google Sync zu geben und man braucht auch keine extra Sync. Software zu installieren.</p>
<hr /><h3>Ähnliche Beiträge:</h3><ul><li><a href="http://danielhuesken.de/ipohne-google-sync-einrichten/" rel="bookmark" title="Permanent Link: iPhone Google Sync einrichten">iPhone Google Sync einrichten</a></li><li><a href="http://danielhuesken.de/google/" rel="bookmark" title="Permanent Link: Google+">Google+</a></li><li><a href="http://danielhuesken.de/blog-update-auf-wp-26/" rel="bookmark" title="Permanent Link: Blog Update auf WP 2.6">Blog Update auf WP 2.6</a></li><li><a href="http://danielhuesken.de/neues-blog-logo-und-design/" rel="bookmark" title="Permanent Link: Neues Blog Logo und Design">Neues Blog Logo und Design</a></li><li><a href="http://danielhuesken.de/backwpup-2-0-ist-fertig-zum-testen/" rel="bookmark" title="Permanent Link: BackWPup 2.0 ist fertig zum testen">BackWPup 2.0 ist fertig zum testen</a></li></ul><hr /><p style="float:right"><img src="http://danielhuesken.de/favicon.ico" alt="Daniel H&uuml;sken Favicon"></p><br /><p><small>&copy; <a href="http://danielhuesken.de/">Daniel H&uuml;sken</a>, All rights reserved / Alle Rechte vorbehalten. (ID: 3b1b15b936cf0c4552fd22f442573dbf)</small></p><p style="padding:2px 5px; background-color: #ededed; border-top-left-radius: 10px; border-top-right-radius: 10px; border-bottom-left-radius: 10px; -moz-border-radius-topleft: 10px; -moz-border-radius-topright: 10px; -moz-border-radius-bottomleft: 10px; -webkit-border-top-left-radius: 10px; -webkit-border-top-right-radius: 10px; -webkit-border-bottom-left-radius: 10px;">
Danke für das Abonnieren meines <a href="http://danielhuesken.de/feed/">Feed</a>! Feed gefällt? <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=daniel%40huesken-net%2ede&item_name=Daniel%20Huesken%20Donation&item_number=Donation&no_shipping=0&no_note=1&tax=0&currency_code=EUR&lc=DE&bn=PP%2dDonationsBF&charset=UTF%2d8" alt="Paypal Donate">Unterst&uuml;tzen</a> &middot; <a href="http://flattr.com/thing/32224/Daniel-Husken" alt="Flattr this">Flattr</a> &middot; <a href="http://danielhuesken.de/iphone-sync-ohne-google-sync/#comments" title="zu den Kommentaren">Kommentieren</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://danielhuesken.de/iphone-sync-ohne-google-sync/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>iPhone Google Sync einrichten</title>
		<link>http://danielhuesken.de/ipohne-google-sync-einrichten/</link>
		<comments>http://danielhuesken.de/ipohne-google-sync-einrichten/#comments</comments>
		<pubDate>Sat, 22 Sep 2012 11:46:49 +0000</pubDate>
		<dc:creator>Daniel Hüsken</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[sync]]></category>

		<guid isPermaLink="false">http://danielhuesken.de/?p=1259</guid>
		<description><![CDATA[Mal wieder einier der dinge dich öfter wiedersuche. Wie richte ich mein iPhone mit Google Sync. (Exchange Aktive Sync.) ein. Das wird auf der Seite http://support.google.com/mail/bin/answer.py?hl=de&#38;answer=138740&#38;topic=21161&#38;ctx=topic sehr gut beschrieben. Was aber wichtig zu wissen ist das mann auch Mehrer Kalender Synchronisieren kann und auch einstellen kann welche die Standard Absender Adresse ist. Wo mann das Macht ist hier beschrieben: http://support.google.com/mobile/bin/answer.py?hl=en&#38;answer=139206 Wichtig ist dabei die Sprache auf [...]]]></description>
				<content:encoded><![CDATA[<p>Mal wieder einier der dinge dich öfter wiedersuche. Wie richte ich mein iPhone mit Google Sync. (Exchange Aktive Sync.) ein.</p>
<p>Das wird auf der Seite <a href="http://support.google.com/mail/bin/answer.py?hl=de&amp;answer=138740&amp;topic=21161&amp;ctx=topic">http://support.google.com/mail/bin/answer.py?hl=de&amp;answer=138740&amp;topic=21161&amp;ctx=topic</a> sehr gut beschrieben.</p>
<p>Was aber wichtig zu wissen ist das mann auch Mehrer Kalender Synchronisieren kann und auch einstellen kann welche die Standard Absender Adresse ist. Wo mann das Macht ist hier beschrieben: <a href="http://support.google.com/mobile/bin/answer.py?hl=en&amp;answer=139206">http://support.google.com/mobile/bin/answer.py?hl=en&amp;answer=139206</a><br />
Wichtig ist dabei die Sprache auf Englisch (US) umzustellen.</p>
<p>Die Punkte im Einzelnen:</p>
<ul>
<li>&#8216;Enable &#8220;Send Mail As&#8221; for this device&#8217;. Beutet das der Standard Absender aus dem Gmail Account genommen wird.</li>
<li>&#8216;Enable &#8220;Delete Email As Trash&#8221; for this device&#8217;. Bedeutet das wenn man Mails löscht diese nicht Archiviert werden sonder wirklich gelöscht werden (im Papierkorb landen).</li>
<li>Dann kann man noch einstellen welche Kalender man alle Synchronisieren möchte.</li>
</ul>
<p>&nbsp;</p>
<hr /><h3>Ähnliche Beiträge:</h3><ul><li><a href="http://danielhuesken.de/iphone-sync-ohne-google-sync/" rel="bookmark" title="Permanent Link: iPhone sync ohne Google Sync">iPhone sync ohne Google Sync</a></li><li><a href="http://danielhuesken.de/google/" rel="bookmark" title="Permanent Link: Google+">Google+</a></li><li><a href="http://danielhuesken.de/neues-blog-logo-und-design/" rel="bookmark" title="Permanent Link: Neues Blog Logo und Design">Neues Blog Logo und Design</a></li><li><a href="http://danielhuesken.de/permalinkstruktur-des-blogs/" rel="bookmark" title="Permanent Link: Permalinkstruktur des Blogs geändert">Permalinkstruktur des Blogs geändert</a></li><li><a href="http://danielhuesken.de/bbpress-antispam-v-0-5/" rel="bookmark" title="Permanent Link: bbPress Antispam v.0.5">bbPress Antispam v.0.5</a></li></ul><hr /><p style="float:right"><img src="http://danielhuesken.de/favicon.ico" alt="Daniel H&uuml;sken Favicon"></p><br /><p><small>&copy; <a href="http://danielhuesken.de/">Daniel H&uuml;sken</a>, All rights reserved / Alle Rechte vorbehalten. (ID: 3b1b15b936cf0c4552fd22f442573dbf)</small></p><p style="padding:2px 5px; background-color: #ededed; border-top-left-radius: 10px; border-top-right-radius: 10px; border-bottom-left-radius: 10px; -moz-border-radius-topleft: 10px; -moz-border-radius-topright: 10px; -moz-border-radius-bottomleft: 10px; -webkit-border-top-left-radius: 10px; -webkit-border-top-right-radius: 10px; -webkit-border-bottom-left-radius: 10px;">
Danke für das Abonnieren meines <a href="http://danielhuesken.de/feed/">Feed</a>! Feed gefällt? <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=daniel%40huesken-net%2ede&item_name=Daniel%20Huesken%20Donation&item_number=Donation&no_shipping=0&no_note=1&tax=0&currency_code=EUR&lc=DE&bn=PP%2dDonationsBF&charset=UTF%2d8" alt="Paypal Donate">Unterst&uuml;tzen</a> &middot; <a href="http://flattr.com/thing/32224/Daniel-Husken" alt="Flattr this">Flattr</a> &middot; <a href="http://danielhuesken.de/ipohne-google-sync-einrichten/#comments" title="zu den Kommentaren">Kommentieren</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://danielhuesken.de/ipohne-google-sync-einrichten/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress Links Menü Walker</title>
		<link>http://danielhuesken.de/wordpress-links-menu-walker/</link>
		<comments>http://danielhuesken.de/wordpress-links-menu-walker/#comments</comments>
		<pubDate>Wed, 19 Sep 2012 17:51:16 +0000</pubDate>
		<dc:creator>Daniel Hüsken</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Menu]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Walker]]></category>

		<guid isPermaLink="false">http://danielhuesken.de/?p=1256</guid>
		<description><![CDATA[Hier eine kleine Walker Klasse für WordPress um sich ein Menü in der Form &#8221; Link1 &#124; Link2 &#124; Link3 &#8221; zu erstellen. Einfach die Klasse in die functions.php des Themes und den Menü Eintrag dort im Template platzieren wo er hin soll. Ähnliche Beiträge:MiniMeta Widget Version 2.7.0MiniMeta Widget Version 2.00MiniMeta Widget Version 2.5.0MiniMeta Widget [...]]]></description>
				<content:encoded><![CDATA[<p>Hier eine kleine Walker Klasse für WordPress um sich ein Menü in der Form &#8221; <a href="Link1">Link1</a> | <a href="Link2">Link2</a> |<a href=" Link3"> Link3</a> &#8221; zu erstellen.</p>
<p>Einfach die Klasse in die functions.php des Themes und den Menü Eintrag dort im Template platzieren wo er hin soll.</p>
<div id="gist3751045" class="gist">
      <div class="gist-file">
        <div class="gist-data gist-syntax">



  <div class="file-data">
    <table cellpadding="0" cellspacing="0" class="lines highlight">
      <tr>
        <td class="line-numbers">
          <span class="line-number" id="file-wp-links-menu-php-L1" rel="file-wp-links-menu-php-L1">1</span>
          <span class="line-number" id="file-wp-links-menu-php-L2" rel="file-wp-links-menu-php-L2">2</span>
          <span class="line-number" id="file-wp-links-menu-php-L3" rel="file-wp-links-menu-php-L3">3</span>
          <span class="line-number" id="file-wp-links-menu-php-L4" rel="file-wp-links-menu-php-L4">4</span>
          <span class="line-number" id="file-wp-links-menu-php-L5" rel="file-wp-links-menu-php-L5">5</span>
          <span class="line-number" id="file-wp-links-menu-php-L6" rel="file-wp-links-menu-php-L6">6</span>
          <span class="line-number" id="file-wp-links-menu-php-L7" rel="file-wp-links-menu-php-L7">7</span>
          <span class="line-number" id="file-wp-links-menu-php-L8" rel="file-wp-links-menu-php-L8">8</span>
          <span class="line-number" id="file-wp-links-menu-php-L9" rel="file-wp-links-menu-php-L9">9</span>
          <span class="line-number" id="file-wp-links-menu-php-L10" rel="file-wp-links-menu-php-L10">10</span>
          <span class="line-number" id="file-wp-links-menu-php-L11" rel="file-wp-links-menu-php-L11">11</span>
          <span class="line-number" id="file-wp-links-menu-php-L12" rel="file-wp-links-menu-php-L12">12</span>
          <span class="line-number" id="file-wp-links-menu-php-L13" rel="file-wp-links-menu-php-L13">13</span>
          <span class="line-number" id="file-wp-links-menu-php-L14" rel="file-wp-links-menu-php-L14">14</span>
          <span class="line-number" id="file-wp-links-menu-php-L15" rel="file-wp-links-menu-php-L15">15</span>
          <span class="line-number" id="file-wp-links-menu-php-L16" rel="file-wp-links-menu-php-L16">16</span>
          <span class="line-number" id="file-wp-links-menu-php-L17" rel="file-wp-links-menu-php-L17">17</span>
          <span class="line-number" id="file-wp-links-menu-php-L18" rel="file-wp-links-menu-php-L18">18</span>
          <span class="line-number" id="file-wp-links-menu-php-L19" rel="file-wp-links-menu-php-L19">19</span>
          <span class="line-number" id="file-wp-links-menu-php-L20" rel="file-wp-links-menu-php-L20">20</span>
          <span class="line-number" id="file-wp-links-menu-php-L21" rel="file-wp-links-menu-php-L21">21</span>
          <span class="line-number" id="file-wp-links-menu-php-L22" rel="file-wp-links-menu-php-L22">22</span>
          <span class="line-number" id="file-wp-links-menu-php-L23" rel="file-wp-links-menu-php-L23">23</span>
          <span class="line-number" id="file-wp-links-menu-php-L24" rel="file-wp-links-menu-php-L24">24</span>
          <span class="line-number" id="file-wp-links-menu-php-L25" rel="file-wp-links-menu-php-L25">25</span>
          <span class="line-number" id="file-wp-links-menu-php-L26" rel="file-wp-links-menu-php-L26">26</span>
          <span class="line-number" id="file-wp-links-menu-php-L27" rel="file-wp-links-menu-php-L27">27</span>
          <span class="line-number" id="file-wp-links-menu-php-L28" rel="file-wp-links-menu-php-L28">28</span>
          <span class="line-number" id="file-wp-links-menu-php-L29" rel="file-wp-links-menu-php-L29">29</span>
          <span class="line-number" id="file-wp-links-menu-php-L30" rel="file-wp-links-menu-php-L30">30</span>
          <span class="line-number" id="file-wp-links-menu-php-L31" rel="file-wp-links-menu-php-L31">31</span>
          <span class="line-number" id="file-wp-links-menu-php-L32" rel="file-wp-links-menu-php-L32">32</span>
        </td>
        <td class="line-data">
          <pre class="line-pre"><div class="line" id="file-wp-links-menu-php-LC1"><span class="x">wp_nav_menu(array(</span></div><div class="line" id="file-wp-links-menu-php-LC2"><span class="x">                &#39;container&#39; =&gt; false,                           </span></div><div class="line" id="file-wp-links-menu-php-LC3"><span class="x">                &#39;menu&#39; =&gt; &#39;The Footer Links&#39;,                    </span></div><div class="line" id="file-wp-links-menu-php-LC4"><span class="x">                &#39;menu_class&#39; =&gt; &#39;nav&#39;,  </span></div><div class="line" id="file-wp-links-menu-php-LC5"><span class="x">                &#39;theme_location&#39; =&gt; &#39;footer-nav&#39;,</span></div><div class="line" id="file-wp-links-menu-php-LC6"><span class="x">                &#39;items_wrap&#39; =&gt; &#39;&lt;nav id=&quot;%1$s&quot; class=&quot;%2$s&quot; role=&quot;navigation&quot;&gt;%3$s&lt;/nav&gt;&#39;,                                                                                                         </span></div><div class="line" id="file-wp-links-menu-php-LC7"><span class="x">                &#39;depth&#39; =&gt; 1,                                   </span></div><div class="line" id="file-wp-links-menu-php-LC8"><span class="x">                &#39;walker&#39; =&gt; new Links_Walker_Nav_Menu()</span></div><div class="line" id="file-wp-links-menu-php-LC9"><span class="x">));</span></div><div class="line" id="file-wp-links-menu-php-LC10"><span class="x"> </span></div><div class="line" id="file-wp-links-menu-php-LC11"><span class="x">class Links_Walker_Nav_Menu extends Walker_Nav_Menu {</span></div><div class="line" id="file-wp-links-menu-php-LC12"><span class="x"> </span></div><div class="line" id="file-wp-links-menu-php-LC13"><span class="x">                function start_el( &amp;$output, $item, $depth = 0, $args = array(), $id = 0 ) {</span></div><div class="line" id="file-wp-links-menu-php-LC14"><span class="x">                               //Add attributes to link element.</span></div><div class="line" id="file-wp-links-menu-php-LC15"><span class="x">                               $attributes  = ! empty( $item-&gt;attr_title ) ? &#39; title=&quot;&#39;  . esc_attr( $item-&gt;attr_title ) .&#39;&quot;&#39; : &#39;&#39;;</span></div><div class="line" id="file-wp-links-menu-php-LC16"><span class="x">                               $attributes .= ! empty( $item-&gt;target ) ? &#39; target=&quot;&#39; . esc_attr( $item-&gt;target     ) .&#39;&quot;&#39; : &#39;&#39;;</span></div><div class="line" id="file-wp-links-menu-php-LC17"><span class="x">                               $attributes .= ! empty( $item-&gt;xfn ) ? &#39; rel=&quot;&#39;    . esc_attr( $item-&gt;xfn        ) .&#39;&quot;&#39; : &#39;&#39;;</span></div><div class="line" id="file-wp-links-menu-php-LC18"><span class="x">                               $attributes .= ! empty( $item-&gt;url ) ? &#39; href=&quot;&#39;   . esc_attr( $item-&gt;url        ) .&#39;&quot;&#39; : &#39;&#39;;</span></div><div class="line" id="file-wp-links-menu-php-LC19"><span class="x">                               $attributes .= ($item-&gt;current) ? &#39; class=&quot;active&quot;&#39; : &#39;&#39;;</span></div><div class="line" id="file-wp-links-menu-php-LC20"><span class="x">                              </span></div><div class="line" id="file-wp-links-menu-php-LC21"><span class="x">                               $output .= ($item-&gt;menu_order &gt; 1) ? &#39; | &#39; : &#39;&#39;;                 </span></div><div class="line" id="file-wp-links-menu-php-LC22"><span class="x">                               $output .= &#39;&lt;a&#39;. $attributes .&#39;&gt;&#39;;</span></div><div class="line" id="file-wp-links-menu-php-LC23"><span class="x">                               $output .= $args-&gt;link_before . apply_filters( &#39;the_title&#39;, $item-&gt;title, $item-&gt;ID ) . $args-&gt;link_after;</span></div><div class="line" id="file-wp-links-menu-php-LC24"><span class="x">                               $output .= &#39;&lt;/a&gt;&#39;;</span></div><div class="line" id="file-wp-links-menu-php-LC25"><span class="x"> </span></div><div class="line" id="file-wp-links-menu-php-LC26"><span class="x">                }</span></div><div class="line" id="file-wp-links-menu-php-LC27"><span class="x">               </span></div><div class="line" id="file-wp-links-menu-php-LC28"><span class="x">                function end_el(&amp;$output, $item, $depth = 0, $args = array()) {</span></div><div class="line" id="file-wp-links-menu-php-LC29"><span class="x">                               $output .= &#39;&#39;;</span></div><div class="line" id="file-wp-links-menu-php-LC30"><span class="x">                }</span></div><div class="line" id="file-wp-links-menu-php-LC31"><span class="x">               </span></div><div class="line" id="file-wp-links-menu-php-LC32"><span class="x">}</span></div></pre>
        </td>
      </tr>
    </table>
  </div>

        </div>

        <div class="gist-meta">
          <a href="https://gist.github.com/danielhuesken/3751045/raw/42bd262872ac384412f17eb14faa245692a6b63b/wp-links-menu.php" style="float:right">view raw</a>
          <a href="https://gist.github.com/danielhuesken/3751045#file-wp-links-menu-php" style="float:right; margin-right:10px; color:#666;">wp-links-menu.php</a>
          <a href="https://gist.github.com/danielhuesken/3751045">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
        </div>
      </div>
</div>

<hr /><h3>Ähnliche Beiträge:</h3><ul><li><a href="http://danielhuesken.de/minimeta-widget-version-270/" rel="bookmark" title="Permanent Link: MiniMeta Widget Version 2.7.0">MiniMeta Widget Version 2.7.0</a></li><li><a href="http://danielhuesken.de/minimeta-widget-version-200/" rel="bookmark" title="Permanent Link: MiniMeta Widget Version 2.00">MiniMeta Widget Version 2.00</a></li><li><a href="http://danielhuesken.de/minimeta-widget-version-250/" rel="bookmark" title="Permanent Link: MiniMeta Widget Version 2.5.0">MiniMeta Widget Version 2.5.0</a></li><li><a href="http://danielhuesken.de/minimeta-widget-version-300/" rel="bookmark" title="Permanent Link: MiniMeta Widget Version 3.0.0">MiniMeta Widget Version 3.0.0</a></li><li><a href="http://danielhuesken.de/minimeta-widget-350/" rel="bookmark" title="Permanent Link: MiniMeta Widget 3.5.0">MiniMeta Widget 3.5.0</a></li></ul><hr /><p style="float:right"><img src="http://danielhuesken.de/favicon.ico" alt="Daniel H&uuml;sken Favicon"></p><br /><p><small>&copy; <a href="http://danielhuesken.de/">Daniel H&uuml;sken</a>, All rights reserved / Alle Rechte vorbehalten. (ID: 3b1b15b936cf0c4552fd22f442573dbf)</small></p><p style="padding:2px 5px; background-color: #ededed; border-top-left-radius: 10px; border-top-right-radius: 10px; border-bottom-left-radius: 10px; -moz-border-radius-topleft: 10px; -moz-border-radius-topright: 10px; -moz-border-radius-bottomleft: 10px; -webkit-border-top-left-radius: 10px; -webkit-border-top-right-radius: 10px; -webkit-border-bottom-left-radius: 10px;">
Danke für das Abonnieren meines <a href="http://danielhuesken.de/feed/">Feed</a>! Feed gefällt? <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=daniel%40huesken-net%2ede&item_name=Daniel%20Huesken%20Donation&item_number=Donation&no_shipping=0&no_note=1&tax=0&currency_code=EUR&lc=DE&bn=PP%2dDonationsBF&charset=UTF%2d8" alt="Paypal Donate">Unterst&uuml;tzen</a> &middot; <a href="http://flattr.com/thing/32224/Daniel-Husken" alt="Flattr this">Flattr</a> &middot; <a href="http://danielhuesken.de/wordpress-links-menu-walker/#comments" title="zu den Kommentaren">Kommentieren</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://danielhuesken.de/wordpress-links-menu-walker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Standard WordPress Plugin Funktionen</title>
		<link>http://danielhuesken.de/standard-wordpress-plugin-funktionen/</link>
		<comments>http://danielhuesken.de/standard-wordpress-plugin-funktionen/#comments</comments>
		<pubDate>Sat, 31 Mar 2012 11:13:24 +0000</pubDate>
		<dc:creator>Daniel Hüsken</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Autoload]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://danielhuesken.de/?p=1244</guid>
		<description><![CDATA[Zwei der Funktionen/Methoden die man in zufunkt wohl in allen meinen Plugins finden wird sind: Voraussetzung ist PHP 5.1.2 für die Autoload Funktion. 1. Zum ermitteln von Plugin Daten, damit nicht immer alles per Constante definiert wird um Namensraum freizuhalten: public static function get_plugin_data($get_data=false) { $plugin_data=wp_cache_get('plugin_data','pluginname'); if ($plugin_data === false &#124;&#124; empty($plugin_data['Version'])) { $plugin_data = [...]]]></description>
				<content:encoded><![CDATA[<p>Zwei der Funktionen/Methoden die man in zufunkt wohl in allen meinen Plugins finden wird sind:<br />
Voraussetzung ist PHP 5.1.2 für die Autoload Funktion.</p>
<p>1. Zum ermitteln von Plugin Daten, damit nicht immer alles per Constante definiert wird um Namensraum freizuhalten:<br />
<code lang="php"><br />
		public static function get_plugin_data($get_data=false) {<br />
			$plugin_data=wp_cache_get('plugin_data','pluginname');<br />
			if ($plugin_data === false || empty($plugin_data['Version']))  {<br />
				$plugin_data = get_file_data( __FILE__, array(<br />
															'Name' => 'Plugin Name',<br />
															'PluginURI' => 'Plugin URI',<br />
															'Version' => 'Version',<br />
															'Description' => 'Description',<br />
															'Author' => 'Author',<br />
															'AuthorURI' => 'Author URI',<br />
															'TextDomain' => 'Text Domain',<br />
															'DomainPath' => 'Domain Path'<br />
															), 'plugin' );<br />
				$plugin_data['BaseName']=plugin_basename(__FILE__);<br />
				$plugin_data['Folder']=dirname( plugin_basename( __FILE__ ) );<br />
				$plugin_data['URL']=plugins_url( '', __FILE__ );<br />
				if (defined( 'SCRIPT_DEBUG' ) &#038;&#038; SCRIPT_DEBUG)<br />
					$plugin_data['JSVersion']=time();<br />
				else<br />
					$plugin_data['JSVersion']=$plugin_data['Version'];<br />
				wp_cache_add('plugin_data',$plugin_data,'pluginname');<br />
			}</p>
<p>			if (!$get_data)<br />
				return $plugin_data;<br />
			return $plugin_data[$get_data];<br />
		}<br />
</code><br />
2. Die Autoload Funktion von PHP zum automatischen laden von Klassen damit sie nur dann geladen werden wenn Sie auch benötigt werden. Das heißt verwend man ein &#8220;add_action&#8221; wird die classe erst geladen wenn wirklich ein &#8220;do_action&#8221; erfolgt oder die Seiten klasse für einen Menü Eintrag erst geladen wird wenn der Menüpunkt tatsächlich aufgerufen wird. Voraussetzung ist das man das ganze Plugin Klassen basierend aufbaut. Das kann dann nicht nur Ressourcen Sparen.<br />
<code lang="php"><br />
		public function __construct() {<br />
			//register autoloader<br />
			spl_autoload_register( array( $this, 'autoloader' ) );<br />
		}<br />
		public static function autoloader( $class_name ) {<br />
			//WordPress classes loader<br />
			$wpclass='/class-'.strtolower(str_replace('_','-',$class_name)).'.php';<br />
			if ( is_file(ABSPATH .'wp-admin'.DIRECTORY_SEPARATOR.'includes'.$wpclass) ) {<br />
				require(ABSPATH .'wp-admin'.DIRECTORY_SEPARATOR.'includes'.$wpclass);<br />
				return true;<br />
			}<br />
			if ( is_file(ABSPATH . WPINC . $wpclass) ) {<br />
				require(ABSPATH . WPINC . $wpclass);<br />
				return true;<br />
			}</p>
<p>			//Plugin classes to load<br />
			if ( strpos( $class_name,'PluginClass_') !== false ) {<br />
				$class_load = dirname( __FILE__ ) . DIRECTORY_SEPARATOR.'inc'.DIRECTORY_SEPARATOR.'class-' . strtolower( str_replace( array( 'PluginClass_', '_' ), array( '', '-' ), $class_name ) ) . '.php';<br />
				if ( is_file( $class_load ) ) {<br />
					require($class_load);<br />
					return true;<br />
				}</p>
<p>			}<br />
			return false;<br />
		}<br />
</code></p>
<p>Diese sollten sich innerhalb der Haupt Plugin Datei in einer Klasse befinden. </p>
<hr /><h3>Ähnliche Beiträge:</h3><ul><li><a href="http://danielhuesken.de/backwpup-sicherung-fuer-deinen-wp-plog/" rel="bookmark" title="Permanent Link: BackWPup: Sicherung für deinen WP Plog">BackWPup: Sicherung für deinen WP Plog</a></li><li><a href="http://danielhuesken.de/minimeta-wiget-bei-wordpressorg/" rel="bookmark" title="Permanent Link: MiniMeta Wiget bei WordPress.org">MiniMeta Wiget bei WordPress.org</a></li><li><a href="http://danielhuesken.de/minimeta-widget-version-200/" rel="bookmark" title="Permanent Link: MiniMeta Widget Version 2.00">MiniMeta Widget Version 2.00</a></li><li><a href="http://danielhuesken.de/minimeta-widget-und-backwpup-update/" rel="bookmark" title="Permanent Link: MiniMeta Widget und BackWPup Update">MiniMeta Widget und BackWPup Update</a></li><li><a href="http://danielhuesken.de/minimeta-widget-version-270/" rel="bookmark" title="Permanent Link: MiniMeta Widget Version 2.7.0">MiniMeta Widget Version 2.7.0</a></li></ul><hr /><p style="float:right"><img src="http://danielhuesken.de/favicon.ico" alt="Daniel H&uuml;sken Favicon"></p><br /><p><small>&copy; <a href="http://danielhuesken.de/">Daniel H&uuml;sken</a>, All rights reserved / Alle Rechte vorbehalten. (ID: 3b1b15b936cf0c4552fd22f442573dbf)</small></p><p style="padding:2px 5px; background-color: #ededed; border-top-left-radius: 10px; border-top-right-radius: 10px; border-bottom-left-radius: 10px; -moz-border-radius-topleft: 10px; -moz-border-radius-topright: 10px; -moz-border-radius-bottomleft: 10px; -webkit-border-top-left-radius: 10px; -webkit-border-top-right-radius: 10px; -webkit-border-bottom-left-radius: 10px;">
Danke für das Abonnieren meines <a href="http://danielhuesken.de/feed/">Feed</a>! Feed gefällt? <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=daniel%40huesken-net%2ede&item_name=Daniel%20Huesken%20Donation&item_number=Donation&no_shipping=0&no_note=1&tax=0&currency_code=EUR&lc=DE&bn=PP%2dDonationsBF&charset=UTF%2d8" alt="Paypal Donate">Unterst&uuml;tzen</a> &middot; <a href="http://flattr.com/thing/32224/Daniel-Husken" alt="Flattr this">Flattr</a> &middot; <a href="http://danielhuesken.de/standard-wordpress-plugin-funktionen/#comments" title="zu den Kommentaren">Kommentieren</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://danielhuesken.de/standard-wordpress-plugin-funktionen/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Internet vor 20 Jahren</title>
		<link>http://danielhuesken.de/internet-vor-20-jahren/</link>
		<comments>http://danielhuesken.de/internet-vor-20-jahren/#comments</comments>
		<pubDate>Fri, 09 Mar 2012 17:42:59 +0000</pubDate>
		<dc:creator>Daniel Hüsken</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[internet]]></category>

		<guid isPermaLink="false">http://danielhuesken.de/?p=1240</guid>
		<description><![CDATA[Da bin ich auch ungefähr angefangen mit dem Interdingsda&#8230;. Mit einem 28k Modem und einem Anbieter der 80 DM im Monat dafür bekommen hatte das man einen Zugriffspunkt hatte. Seine Telefonkosten musste man natürlich noch oben drauf Zahlen. Der Anbieter selber hatte damals selber nicht mehr wie eine 256k Standleitung&#8230;&#8230; Ähnliche Beiträge:Firefox: SeitenaktualisierungUnitymedia VoIP EinstellungenDSL [...]]]></description>
				<content:encoded><![CDATA[<p>Da bin ich auch ungefähr angefangen mit dem Interdingsda&#8230;.</p>
<p>Mit einem 28k Modem und einem Anbieter der 80 DM im Monat dafür bekommen hatte das man einen Zugriffspunkt hatte. Seine Telefonkosten musste man natürlich noch oben drauf Zahlen. Der Anbieter selber hatte damals selber nicht mehr wie eine 256k Standleitung&#8230;&#8230;</p>
<p><iframe width="625" height="352" src="http://www.youtube.com/embed/k0tVl_iYmos?feature=oembed" frameborder="0" allowfullscreen></iframe></p>
<hr /><h3>Ähnliche Beiträge:</h3><ul><li><a href="http://danielhuesken.de/firefox-seitenaktualisierung/" rel="bookmark" title="Permanent Link: Firefox: Seitenaktualisierung">Firefox: Seitenaktualisierung</a></li><li><a href="http://danielhuesken.de/unitymedia-voip-einstellungen/" rel="bookmark" title="Permanent Link: Unitymedia VoIP Einstellungen">Unitymedia VoIP Einstellungen</a></li><li><a href="http://danielhuesken.de/dsl-stoerung-bei-mir/" rel="bookmark" title="Permanent Link: DSL Störung bei mir">DSL Störung bei mir</a></li><li><a href="http://danielhuesken.de/impressum/" rel="bookmark" title="Permanent Link: Impressum">Impressum</a></li><li><a href="http://danielhuesken.de/vpn-linksys-windows/" rel="bookmark" title="Permanent Link: VPN Verbindung vom Linksys Router zum Windows 2003 Server">VPN Verbindung vom Linksys Router zum Windows 2003 Server</a></li></ul><hr /><p style="float:right"><img src="http://danielhuesken.de/favicon.ico" alt="Daniel H&uuml;sken Favicon"></p><br /><p><small>&copy; <a href="http://danielhuesken.de/">Daniel H&uuml;sken</a>, All rights reserved / Alle Rechte vorbehalten. (ID: 3b1b15b936cf0c4552fd22f442573dbf)</small></p><p style="padding:2px 5px; background-color: #ededed; border-top-left-radius: 10px; border-top-right-radius: 10px; border-bottom-left-radius: 10px; -moz-border-radius-topleft: 10px; -moz-border-radius-topright: 10px; -moz-border-radius-bottomleft: 10px; -webkit-border-top-left-radius: 10px; -webkit-border-top-right-radius: 10px; -webkit-border-bottom-left-radius: 10px;">
Danke für das Abonnieren meines <a href="http://danielhuesken.de/feed/">Feed</a>! Feed gefällt? <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=daniel%40huesken-net%2ede&item_name=Daniel%20Huesken%20Donation&item_number=Donation&no_shipping=0&no_note=1&tax=0&currency_code=EUR&lc=DE&bn=PP%2dDonationsBF&charset=UTF%2d8" alt="Paypal Donate">Unterst&uuml;tzen</a> &middot; <a href="http://flattr.com/thing/32224/Daniel-Husken" alt="Flattr this">Flattr</a> &middot; <a href="http://danielhuesken.de/internet-vor-20-jahren/#comments" title="zu den Kommentaren">Kommentieren</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://danielhuesken.de/internet-vor-20-jahren/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP Verzeichnis Übergabe prüfen</title>
		<link>http://danielhuesken.de/php-verzeichnis-ubergabe-pruefen/</link>
		<comments>http://danielhuesken.de/php-verzeichnis-ubergabe-pruefen/#comments</comments>
		<pubDate>Sat, 25 Feb 2012 10:18:05 +0000</pubDate>
		<dc:creator>Daniel Hüsken</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[abspath]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://danielhuesken.de/?p=226</guid>
		<description><![CDATA[Ich muss in meinem Plugin für WordPress den ABSPATH übergeben um eine eigene Ajax Behandlung zu haben. Was meint ihr ist der Code schnipsel dafür geeignet um es möglicht sicher gegen Angriffe zu machen ? if ( is_file( dirname(dirname(dirname(dirname( __FILE__ )))).'/wp-load.php' ) ) { require_once(dirname(dirname(dirname(dirname( __FILE__ )))).'/wp-load.php'); } else { $abspath = filter_input( INPUT_POST, 'ABSPATH', [...]]]></description>
				<content:encoded><![CDATA[<p>Ich muss in meinem Plugin für WordPress den ABSPATH übergeben um eine eigene Ajax Behandlung zu haben.<br />
Was meint ihr ist der Code schnipsel dafür geeignet um es möglicht sicher gegen Angriffe zu machen ?</p>
<p><code lang="php">if ( is_file( dirname(dirname(dirname(dirname( __FILE__ )))).'/wp-load.php' ) ) {<br />
	require_once(dirname(dirname(dirname(dirname( __FILE__ )))).'/wp-load.php');<br />
} else {<br />
	$abspath = filter_input( INPUT_POST, 'ABSPATH', FILTER_SANITIZE_URL );<br />
	$abspath = rtrim(realpath($abspath), '/\\' );<br />
	if ( ! empty($abspath) &#038;&#038; is_dir( $abspath . '/' ) &#038;&#038; is_file( realpath( $abspath . '/wp-load.php' ) ) ) {<br />
		require_once($abspath . '/wp-load.php');<br />
	} else {<br />
		die();<br />
	}<br />
}</code></p>
<p>Erläuterung:<br />
Wenn der Plugins Ordner im Standard Verzeichnis ist oder zumindest in der selben Verzeichnis Tiefe muss die Übergabe nicht genutzt werden.<br />
Sonst.<br />
Das übergebene Verzeichnis vorfiltern (nur in URLs erlaubte Zeichen werden zugelassen)<br />
mit &#8216;realpath()&#8217; alle &#8216;../&#8217;,&#8217;./&#8217; entfernen und prüfen ob das Verzeichnis existiert.<br />
da &#8216;realpath()&#8217; auch das aktuelle Verzeichnis ausgibt nochmal Verzeichnis und Datei auf Existenz prüfen.<br />
WP-load.php laden.</p>
<hr /><h3>Ähnliche Beiträge:</h3><ul><li><a href="http://danielhuesken.de/portfolio/filebrowser/" rel="bookmark" title="Permanent Link: FileBrowser">FileBrowser</a></li><li><a href="http://danielhuesken.de/backwpup-2-0-ist-fertig-zum-testen/" rel="bookmark" title="Permanent Link: BackWPup 2.0 ist fertig zum testen">BackWPup 2.0 ist fertig zum testen</a></li><li><a href="http://danielhuesken.de/portfolio/bbpress-antispam/" rel="bookmark" title="Permanent Link: bbPress Antispam">bbPress Antispam</a></li><li><a href="http://danielhuesken.de/portfolio/minimeta/" rel="bookmark" title="Permanent Link: WP-MiniMeta Widget">WP-MiniMeta Widget</a></li></ul><hr /><p style="float:right"><img src="http://danielhuesken.de/favicon.ico" alt="Daniel H&uuml;sken Favicon"></p><br /><p><small>&copy; <a href="http://danielhuesken.de/">Daniel H&uuml;sken</a>, All rights reserved / Alle Rechte vorbehalten. (ID: 3b1b15b936cf0c4552fd22f442573dbf)</small></p><p style="padding:2px 5px; background-color: #ededed; border-top-left-radius: 10px; border-top-right-radius: 10px; border-bottom-left-radius: 10px; -moz-border-radius-topleft: 10px; -moz-border-radius-topright: 10px; -moz-border-radius-bottomleft: 10px; -webkit-border-top-left-radius: 10px; -webkit-border-top-right-radius: 10px; -webkit-border-bottom-left-radius: 10px;">
Danke für das Abonnieren meines <a href="http://danielhuesken.de/feed/">Feed</a>! Feed gefällt? <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=daniel%40huesken-net%2ede&item_name=Daniel%20Huesken%20Donation&item_number=Donation&no_shipping=0&no_note=1&tax=0&currency_code=EUR&lc=DE&bn=PP%2dDonationsBF&charset=UTF%2d8" alt="Paypal Donate">Unterst&uuml;tzen</a> &middot; <a href="http://flattr.com/thing/32224/Daniel-Husken" alt="Flattr this">Flattr</a> &middot; <a href="http://danielhuesken.de/php-verzeichnis-ubergabe-pruefen/#comments" title="zu den Kommentaren">Kommentieren</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://danielhuesken.de/php-verzeichnis-ubergabe-pruefen/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Neues Blog Logo und Design</title>
		<link>http://danielhuesken.de/neues-blog-logo-und-design/</link>
		<comments>http://danielhuesken.de/neues-blog-logo-und-design/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 00:30:47 +0000</pubDate>
		<dc:creator>Daniel Hüsken</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[logo]]></category>

		<guid isPermaLink="false">http://danielhuesken.de/?p=214</guid>
		<description><![CDATA[Ich habe mir ein neues Logo für meinen Blog entworfen&#8230;. Außerdem gibt es ein neues schlichtes Design bassiernd auf Minimalist Childtheme von Xtreme Theme. Ich hoffe es gefällt euch. An Minimalist habe ich nicht viel geändert wie man sieht. Vielleicht schraube ich in Zukunft noch mal hier oder da. Die einzigen Änderungen die zur Zeit drin sind sind die Social Icons die [...]]]></description>
				<content:encoded><![CDATA[<p>Ich habe mir ein neues Logo für meinen Blog entworfen&#8230;.<br />
Außerdem gibt es ein neues schlichtes Design bassiernd auf <a href="http://de.xtreme-theme.com/themes/minimalist-childtheme/" target="_blank">Minimalist</a> Childtheme von <a href="http://de.xtreme-theme.com/" target="_blank">Xtreme Theme</a>. Ich hoffe es gefällt euch. An Minimalist habe ich nicht viel geändert wie man sieht. Vielleicht schraube ich in Zukunft noch mal hier oder da. Die einzigen Änderungen die zur Zeit drin sind sind die Social Icons die im Prinzip wie bei <a href="http://www.perun.net/2011/12/15/facebook-twitter-google-statische-buttons-im-eigenbau/" target="_blank">perun.net</a> beschrieben eingebunden wurden. Das heißt auch keine Datenübertragung im Hintergrund an Google, Facebook und ca. Ich denke das sich das neue Design auf lange Zeit bewährt.</p>
<hr /><h3>Ähnliche Beiträge:</h3><ul><li><a href="http://danielhuesken.de/minimeta-widget-und-backwpup-update/" rel="bookmark" title="Permanent Link: MiniMeta Widget und BackWPup Update">MiniMeta Widget und BackWPup Update</a></li><li><a href="http://danielhuesken.de/blog-update-auf-wp-26/" rel="bookmark" title="Permanent Link: Blog Update auf WP 2.6">Blog Update auf WP 2.6</a></li><li><a href="http://danielhuesken.de/blog-update-auf-wp-27/" rel="bookmark" title="Permanent Link: Blog Update auf WP 2.7">Blog Update auf WP 2.7</a></li><li><a href="http://danielhuesken.de/neues-theme-bugis/" rel="bookmark" title="Permanent Link: Neues Theme &#8216;Bugis&#8217;">Neues Theme &#8216;Bugis&#8217;</a></li><li><a href="http://danielhuesken.de/blog-aktualisiert-auf-wordpress-25-de/" rel="bookmark" title="Permanent Link: Blog Aktualisiert auf WordPress 2.5 DE">Blog Aktualisiert auf WordPress 2.5 DE</a></li></ul><hr /><p style="float:right"><img src="http://danielhuesken.de/favicon.ico" alt="Daniel H&uuml;sken Favicon"></p><br /><p><small>&copy; <a href="http://danielhuesken.de/">Daniel H&uuml;sken</a>, All rights reserved / Alle Rechte vorbehalten. (ID: 3b1b15b936cf0c4552fd22f442573dbf)</small></p><p style="padding:2px 5px; background-color: #ededed; border-top-left-radius: 10px; border-top-right-radius: 10px; border-bottom-left-radius: 10px; -moz-border-radius-topleft: 10px; -moz-border-radius-topright: 10px; -moz-border-radius-bottomleft: 10px; -webkit-border-top-left-radius: 10px; -webkit-border-top-right-radius: 10px; -webkit-border-bottom-left-radius: 10px;">
Danke für das Abonnieren meines <a href="http://danielhuesken.de/feed/">Feed</a>! Feed gefällt? <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=daniel%40huesken-net%2ede&item_name=Daniel%20Huesken%20Donation&item_number=Donation&no_shipping=0&no_note=1&tax=0&currency_code=EUR&lc=DE&bn=PP%2dDonationsBF&charset=UTF%2d8" alt="Paypal Donate">Unterst&uuml;tzen</a> &middot; <a href="http://flattr.com/thing/32224/Daniel-Husken" alt="Flattr this">Flattr</a> &middot; <a href="http://danielhuesken.de/neues-blog-logo-und-design/#comments" title="zu den Kommentaren">Kommentieren</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://danielhuesken.de/neues-blog-logo-und-design/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ressourcen Sparen bei Ajax Calls in WordPress</title>
		<link>http://danielhuesken.de/ressourcen-sparen-bei-ajax-calls-in-wordpress/</link>
		<comments>http://danielhuesken.de/ressourcen-sparen-bei-ajax-calls-in-wordpress/#comments</comments>
		<pubDate>Sat, 14 Jan 2012 08:27:49 +0000</pubDate>
		<dc:creator>Daniel Hüsken</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[ressourcen]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://danielhuesken.de/?p=211</guid>
		<description><![CDATA[Bei meiner arbeit am Plugin BackWPup habe ich nach einer Möglichkeit gesucht Ressourcen zu sparen bei Ajax Calls und bei der Auftrags Ausführung. Die einzeige große Einsparung die ich bisher gefunden habe ist es die Übersetzungen anderer Plugins nicht mit zu laden das die enorm viel Speicher verbrauchen. Dies bringt in meiner test Installation mit 20 Plugins eine Einsparung von 31 MB auf 25,5 MB Script speicher. Da die Dateien auch [...]]]></description>
				<content:encoded><![CDATA[<p>Bei meiner arbeit am Plugin <a href="http://backwpup.com">BackWPup</a> habe ich nach einer Möglichkeit gesucht Ressourcen zu sparen bei Ajax Calls und bei der Auftrags Ausführung. Die einzeige große Einsparung die ich bisher gefunden habe ist es die Übersetzungen anderer Plugins nicht mit zu laden das die enorm viel Speicher verbrauchen. Dies bringt in meiner test Installation mit 20 Plugins eine Einsparung von <strong>31</strong> MB auf <strong>25,5</strong> MB Script speicher. Da die Dateien auch nicht geöffnet werden wird das auch noch eine Einsparung bringen die ich im Moment nicht beziffern kann.</p>
<p>Hier die Umsetzung:<br />
Wichtig ist hierbei das ich nur die Übersetzungen nicht lade wenn es sich um Calls meines Plugins handelt.<br />
<code lang="PHP"><br />
define('PLUGIN_MENU_PAGES', 'page1,page2');<br />
if (defined('DOING_AJAX') and DOING_AJAX and in_array($_POST['backwpupajaxpage'],explode(',',PLUGIN_MENU_PAGES)))<br />
	add_filter('override_load_textdomain', create_function('$default, $domain, $mofile','if ($domain=="textdomain") return $default; else return true;'),1,3);<br />
</code></p>
<p>Zusätzlich musste ich noch einbauen das mein Plugin als erstes geladen wird:<br />
<del datetime="2012-02-13T22:34:04+00:00"><code lang="PHP"><br />
define('PLGUNINNAME_PLUGIN_BASENAME',plugin_basename(__FILE__));</p>
<p>public function pluginname_first_plugin($newvalue, $oldvalue) {<br />
	if (!is_array($newvalue))<br />
		return $newvalue;<br />
	for ($i=0; $i<count ($newvalue);$i++) {<br />
		if ($newvalue[$i]==PLGUNINNAME_PLUGIN_BASENAME)<br />
			unset($newvalue[$i]);<br />
	}<br />
	array_unshift($newvalue,PLGUNINNAME_PLUGIN_BASENAME);<br />
	return $newvalue;<br />
}<br />
add_filter('pre_update_option_active_plugins', 'pluginname_first_plugin',1,2);<br />
</code></count></code></del></p>
<p>Vielleicht kennt ja noch jemand eine Lösung die Ressourcen weiter zu optimieren und die WordPress eigene Ajax Behandlung zu nutzen&#8230;</p>
<p><strong>Update:</strong><br />
mit einer etwas geänderten Funktion ist es nicht mehr notwendig das Plugin nach vorne zu schieben <img src='http://danielhuesken.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
<code lang="PHP"><br />
define('PLUGIN_MENU_PAGES', 'page1,page2');<br />
function overide_textdomain($default, $domain, $mofile) {<br />
	if ( (defined( 'DOING_CRON' ) &#038;&#038; DOING_CRON) &#038;&#038; in_array($_POST['backwpupajaxpage'],explode(',',PLUGIN_MENU_PAGES))) {<br />
		global $l10n;<br />
		if ($domain=='owntextdomainname') {<br />
			foreach (array_keys($l10n) as $domainkey)<br />
				unset($l10n[$domainkey]);<br />
		} else {<br />
			return true;<br />
		}<br />
	}<br />
	return $default;<br />
}<br />
add_filter('override_load_textdomain','overide_textdomain');<br />
</code></p>
<p><strong>Update:</strong> Ich glaub das best ist es wenn in WordPress der <a href="http://www.it-gecko.de/wordpress-extrem-beschleunigen-wp-performance-gettext-patch.html" target="_blank">WP-Performance-Gettext-Patch</a> integriert wird. Nach meinen Tests bring das am meisten. Der Speicher verbrauch geht dann auf ca 17MB runter.</p>
<hr /><h3>Ähnliche Beiträge:</h3><ul><li><a href="http://danielhuesken.de/minimeta-wiget-bei-wordpressorg/" rel="bookmark" title="Permanent Link: MiniMeta Wiget bei WordPress.org">MiniMeta Wiget bei WordPress.org</a></li><li><a href="http://danielhuesken.de/blog-aktualisiert-auf-wordpress-25-de/" rel="bookmark" title="Permanent Link: Blog Aktualisiert auf WordPress 2.5 DE">Blog Aktualisiert auf WordPress 2.5 DE</a></li><li><a href="http://danielhuesken.de/standard-wordpress-plugin-funktionen/" rel="bookmark" title="Permanent Link: Standard WordPress Plugin Funktionen">Standard WordPress Plugin Funktionen</a></li><li><a href="http://danielhuesken.de/minimeta-widget-und-backwpup-update/" rel="bookmark" title="Permanent Link: MiniMeta Widget und BackWPup Update">MiniMeta Widget und BackWPup Update</a></li><li><a href="http://danielhuesken.de/php-verzeichnis-ubergabe-pruefen/" rel="bookmark" title="Permanent Link: PHP Verzeichnis Übergabe prüfen">PHP Verzeichnis Übergabe prüfen</a></li></ul><hr /><p style="float:right"><img src="http://danielhuesken.de/favicon.ico" alt="Daniel H&uuml;sken Favicon"></p><br /><p><small>&copy; <a href="http://danielhuesken.de/">Daniel H&uuml;sken</a>, All rights reserved / Alle Rechte vorbehalten. (ID: 3b1b15b936cf0c4552fd22f442573dbf)</small></p><p style="padding:2px 5px; background-color: #ededed; border-top-left-radius: 10px; border-top-right-radius: 10px; border-bottom-left-radius: 10px; -moz-border-radius-topleft: 10px; -moz-border-radius-topright: 10px; -moz-border-radius-bottomleft: 10px; -webkit-border-top-left-radius: 10px; -webkit-border-top-right-radius: 10px; -webkit-border-bottom-left-radius: 10px;">
Danke für das Abonnieren meines <a href="http://danielhuesken.de/feed/">Feed</a>! Feed gefällt? <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=daniel%40huesken-net%2ede&item_name=Daniel%20Huesken%20Donation&item_number=Donation&no_shipping=0&no_note=1&tax=0&currency_code=EUR&lc=DE&bn=PP%2dDonationsBF&charset=UTF%2d8" alt="Paypal Donate">Unterst&uuml;tzen</a> &middot; <a href="http://flattr.com/thing/32224/Daniel-Husken" alt="Flattr this">Flattr</a> &middot; <a href="http://danielhuesken.de/ressourcen-sparen-bei-ajax-calls-in-wordpress/#comments" title="zu den Kommentaren">Kommentieren</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://danielhuesken.de/ressourcen-sparen-bei-ajax-calls-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>WordPress 3.3 add_contextual_help deprecated</title>
		<link>http://danielhuesken.de/wordpress-3-3-add_contextual_help-deprecated/</link>
		<comments>http://danielhuesken.de/wordpress-3-3-add_contextual_help-deprecated/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 15:17:51 +0000</pubDate>
		<dc:creator>Daniel Hüsken</dc:creator>
				<category><![CDATA[Allgemein]]></category>

		<guid isPermaLink="false">http://danielhuesken.de/?p=209</guid>
		<description><![CDATA[Eine einfache Möglichkeit festzustellen ob man mit &#8220;add_contextual_help()&#8221; oder &#8220;get_current_screen()->add_help_tab&#8221; arbeiten muss um die abwärts Kompatibilität zu behalten. if (method_exists(get_current_screen(),'add_help_tab')) { get_current_screen()->add_help_tab( array( 'id' => 'plugininfo', 'title' => 'Plugin Info', 'content' => ' Text ') ); } elseif (function_exists('add_contextual_help')) { add_contextual_help( get_current_screen(), ' Text '); } Ähnliche Beiträge:Blog Aktualisiert auf WordPress 2.5 DEMiniMeta Widget und [...]]]></description>
				<content:encoded><![CDATA[<p>Eine einfache Möglichkeit festzustellen ob man mit &#8220;add_contextual_help()&#8221; oder &#8220;get_current_screen()->add_help_tab&#8221; arbeiten muss um die abwärts Kompatibilität zu behalten.</p>
<p><code lang="php"><br />
if (method_exists(get_current_screen(),'add_help_tab')) {<br />
    get_current_screen()->add_help_tab( array(<br />
        'id' => 'plugininfo',<br />
        'title' => 'Plugin Info',<br />
        'content' => '
<p>Text</p>
<p>') );<br />
} elseif (function_exists('add_contextual_help')) {<br />
    add_contextual_help( get_current_screen(), '
<p>Text</p>
<p>');<br />
}<br />
</code></p>
<hr /><h3>Ähnliche Beiträge:</h3><ul><li><a href="http://danielhuesken.de/blog-aktualisiert-auf-wordpress-25-de/" rel="bookmark" title="Permanent Link: Blog Aktualisiert auf WordPress 2.5 DE">Blog Aktualisiert auf WordPress 2.5 DE</a></li><li><a href="http://danielhuesken.de/minimeta-widget-und-backwpup-update/" rel="bookmark" title="Permanent Link: MiniMeta Widget und BackWPup Update">MiniMeta Widget und BackWPup Update</a></li><li><a href="http://danielhuesken.de/minimeta-wiget-bei-wordpressorg/" rel="bookmark" title="Permanent Link: MiniMeta Wiget bei WordPress.org">MiniMeta Wiget bei WordPress.org</a></li><li><a href="http://danielhuesken.de/backwpup-sicherung-fuer-deinen-wp-plog/" rel="bookmark" title="Permanent Link: BackWPup: Sicherung für deinen WP Plog">BackWPup: Sicherung für deinen WP Plog</a></li><li><a href="http://danielhuesken.de/forum-abgeschaltet/" rel="bookmark" title="Permanent Link: Forum abgeschaltet">Forum abgeschaltet</a></li></ul><hr /><p style="float:right"><img src="http://danielhuesken.de/favicon.ico" alt="Daniel H&uuml;sken Favicon"></p><br /><p><small>&copy; <a href="http://danielhuesken.de/">Daniel H&uuml;sken</a>, All rights reserved / Alle Rechte vorbehalten. (ID: 3b1b15b936cf0c4552fd22f442573dbf)</small></p><p style="padding:2px 5px; background-color: #ededed; border-top-left-radius: 10px; border-top-right-radius: 10px; border-bottom-left-radius: 10px; -moz-border-radius-topleft: 10px; -moz-border-radius-topright: 10px; -moz-border-radius-bottomleft: 10px; -webkit-border-top-left-radius: 10px; -webkit-border-top-right-radius: 10px; -webkit-border-bottom-left-radius: 10px;">
Danke für das Abonnieren meines <a href="http://danielhuesken.de/feed/">Feed</a>! Feed gefällt? <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=daniel%40huesken-net%2ede&item_name=Daniel%20Huesken%20Donation&item_number=Donation&no_shipping=0&no_note=1&tax=0&currency_code=EUR&lc=DE&bn=PP%2dDonationsBF&charset=UTF%2d8" alt="Paypal Donate">Unterst&uuml;tzen</a> &middot; <a href="http://flattr.com/thing/32224/Daniel-Husken" alt="Flattr this">Flattr</a> &middot; <a href="http://danielhuesken.de/wordpress-3-3-add_contextual_help-deprecated/#comments" title="zu den Kommentaren">Kommentieren</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://danielhuesken.de/wordpress-3-3-add_contextual_help-deprecated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bbPress Antispam v.0.6</title>
		<link>http://danielhuesken.de/bbpress-antispam-v-0-6/</link>
		<comments>http://danielhuesken.de/bbpress-antispam-v-0-6/#comments</comments>
		<pubDate>Sun, 18 Dec 2011 17:04:34 +0000</pubDate>
		<dc:creator>Daniel Hüsken</dc:creator>
				<category><![CDATA[bbPress Antispam]]></category>
		<category><![CDATA[Antispam]]></category>
		<category><![CDATA[bbPress]]></category>

		<guid isPermaLink="false">http://danielhuesken.de/?p=205</guid>
		<description><![CDATA[bbPress Antispam hat einige Änderungen und fixes/verbesserungen bekommen. Dazu gehören: E-Mail sende bei neuer Antwort/neues Thema. Geänderte Default Einstellungen. Verbesserte Fake IP Erkennung. Ähnliche Beiträge:bbPress Antispam v.0.5bbPress AntispamPortfolio und über mich&#169; Daniel H&#252;sken, All rights reserved / Alle Rechte vorbehalten. (ID: 3b1b15b936cf0c4552fd22f442573dbf) Danke für das Abonnieren meines Feed! Feed gefällt? Unterst&#252;tzen &#183; Flattr &#183; Kommentieren]]></description>
				<content:encoded><![CDATA[<p><a title="bbPress Antispam" href="http://danielhuesken.de/portfolio/bbpress-antispam/">bbPress Antispam</a> hat einige Änderungen und fixes/verbesserungen bekommen.<br />
Dazu gehören:</p>
<ul>
<li>E-Mail sende bei neuer Antwort/neues Thema.</li>
<li>Geänderte Default Einstellungen.</li>
<li>Verbesserte Fake IP Erkennung.</li>
</ul>
<hr /><h3>Ähnliche Beiträge:</h3><ul><li><a href="http://danielhuesken.de/bbpress-antispam-v-0-5/" rel="bookmark" title="Permanent Link: bbPress Antispam v.0.5">bbPress Antispam v.0.5</a></li><li><a href="http://danielhuesken.de/portfolio/bbpress-antispam/" rel="bookmark" title="Permanent Link: bbPress Antispam">bbPress Antispam</a></li><li><a href="http://danielhuesken.de/portfolio/" rel="bookmark" title="Permanent Link: Portfolio und über mich">Portfolio und über mich</a></li></ul><hr /><p style="float:right"><img src="http://danielhuesken.de/favicon.ico" alt="Daniel H&uuml;sken Favicon"></p><br /><p><small>&copy; <a href="http://danielhuesken.de/">Daniel H&uuml;sken</a>, All rights reserved / Alle Rechte vorbehalten. (ID: 3b1b15b936cf0c4552fd22f442573dbf)</small></p><p style="padding:2px 5px; background-color: #ededed; border-top-left-radius: 10px; border-top-right-radius: 10px; border-bottom-left-radius: 10px; -moz-border-radius-topleft: 10px; -moz-border-radius-topright: 10px; -moz-border-radius-bottomleft: 10px; -webkit-border-top-left-radius: 10px; -webkit-border-top-right-radius: 10px; -webkit-border-bottom-left-radius: 10px;">
Danke für das Abonnieren meines <a href="http://danielhuesken.de/feed/">Feed</a>! Feed gefällt? <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=daniel%40huesken-net%2ede&item_name=Daniel%20Huesken%20Donation&item_number=Donation&no_shipping=0&no_note=1&tax=0&currency_code=EUR&lc=DE&bn=PP%2dDonationsBF&charset=UTF%2d8" alt="Paypal Donate">Unterst&uuml;tzen</a> &middot; <a href="http://flattr.com/thing/32224/Daniel-Husken" alt="Flattr this">Flattr</a> &middot; <a href="http://danielhuesken.de/bbpress-antispam-v-0-6/#comments" title="zu den Kommentaren">Kommentieren</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://danielhuesken.de/bbpress-antispam-v-0-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
