<?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>Hiranthi&#039;s weblog &#187; WordPress</title> <atom:link href="http://hiranthi.nl/category/wordpress/feed/" rel="self" type="application/rss+xml" /><link>http://hiranthi.nl</link> <description>Weblog van een ondernemende vrouw</description> <lastBuildDate>Fri, 20 Jan 2012 13:00:40 +0000</lastBuildDate> <language>nl</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>Fatale error met Shopp Cache Helper</title><link>http://hiranthi.nl/wordpress/fatale-error-met-shopp-cache-helper/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fatale-error-met-shopp-cache-helper</link> <comments>http://hiranthi.nl/wordpress/fatale-error-met-shopp-cache-helper/#comments</comments> <pubDate>Fri, 20 Jan 2012 13:00:40 +0000</pubDate> <dc:creator>famire</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[cache]]></category> <category><![CDATA[Shopp]]></category><guid
isPermaLink="false">https://hiranthi.nl/?p=3356</guid> <description><![CDATA[Een tijdje terug activeerde ik de Shopp Cache Helper plugin om Shopp met W3TC te kunnen gebruiken. Helaas lukte dat niet, vanwege een fatale error die ik kreeg: Fatal error: Call to undefined method W3_Config::instance() in /&#8230;/wp-content/plugins/shopp-cache-helper/shopp-cache-helper.php on line 244 Ben toen gaan inspecteren wat er op die regel stond: $config = W3_Config::instance(); Als testje [...]]]></description> <content:encoded><![CDATA[<p>Een tijdje terug activeerde ik de Shopp Cache Helper plugin om Shopp met W3TC te kunnen gebruiken. Helaas lukte dat niet, vanwege een fatale error die ik kreeg:</p><blockquote><p>Fatal error: Call to undefined method W3_Config::instance() in /&#8230;/wp-content/plugins/shopp-cache-helper/shopp-cache-helper.php on line 244</p></blockquote><p>Ben toen gaan inspecteren wat er op die regel stond:</p><pre class="brush: php; gutter: true">$config = W3_Config::instance();</pre><p>Als testje er dit van gemaakt:</p><pre class="brush: php; gutter: true">$config = new W3_Config;</pre><p>En toen opnieuw geprobeerd. En toen werkte de plugin wel weer <img
src='http://hiranthi.nl/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p><p><em>Ik weet niet of dit intussen ook is gewijzigd in de plugin, ik heb er 3 maanden geleden een <a
rel="nofollow" target="_blank" href="http://wordpress.org/support/topic/plugin-shopp-cache-helper-fatal-error-upon-activation">topic</a> over geopend op de WordPress forums, maar nooit een reactie op gehad.</em></p><div
class="printfriendly alignleft"><a
href="http://hiranthi.nl/wordpress/fatale-error-met-shopp-cache-helper/?pfstyle=wp" rel="nofollow" ><img
src="//cdn.printfriendly.com/pf-print-icon.gif" alt="Print Friendly"/><span
class="printandpdf printfriendly-text"> Print <img
src="//cdn.printfriendly.com/pf-pdf-icon.gif" alt="Get a PDF version of this webpage" /> PDF </span></a></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Ffatale-error-met-shopp-cache-helper%2F&amp;t=Fatale+error+met+Shopp+Cache+Helper" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=Fatale+error+met+Shopp+Cache+Helper%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D3356%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1581px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Ffatale-error-met-shopp-cache-helper%2F&amp;title=Fatale+error+met+Shopp+Cache+Helper&amp;notes=Een+tijdje+terug+activeerde+ik+de+Shopp+Cache+Helper+plugin+om+Shopp+met+W3TC+te+kunnen+gebruiken.+Helaas+lukte+dat+niet%2C+vanwege+een+fatale+error+die+ik+kreeg%3A%0D%0A%0D%0AFatal+error%3A+Call+to+undefined+method+W3_Config%3A%3Ainstance%28%29+in+%2F...%2Fwp-content%2Fplugins" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Ffatale-error-met-shopp-cache-helper%2F&amp;title=Fatale+error+met+Shopp+Cache+Helper&amp;bodytext=Een+tijdje+terug+activeerde+ik+de+Shopp+Cache+Helper+plugin+om+Shopp+met+W3TC+te+kunnen+gebruiken.+Helaas+lukte+dat+niet%2C+vanwege+een+fatale+error+die+ik+kreeg%3A%0D%0A%0D%0AFatal+error%3A+Call+to+undefined+method+W3_Config%3A%3Ainstance%28%29+in+%2F...%2Fwp-content%2Fplugins" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Ffatale-error-met-shopp-cache-helper%2F&amp;title=Fatale+error+met+Shopp+Cache+Helper" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1496px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/wordpress/fatale-error-met-shopp-cache-helper/" onclick="addBookmark(event);" title="Fatale error met Shopp Cache Helper" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:info@illutic.nl?subject=Fatale error met Shopp Cache Helper&amp;body=Een tijdje terug activeerde ik de Shopp Cache Helper plugin om Shopp met W3TC te kunnen gebruiken. Helaas lukte dat niet, vanwege een fatale error die ik kreeg:Fatal error: Call to undefined method W3_Config::instance() in /.../wp-content/plugins - http://hiranthi.nl/wordpress/fatale-error-met-shopp-cache-helper/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1343px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/wordpress/fatale-error-met-shopp-cache-helper/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Adresgegevens in de account opslaan</title><link>http://hiranthi.nl/tutorials/adresgegevens-in-de-account-opslaan/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=adresgegevens-in-de-account-opslaan</link> <comments>http://hiranthi.nl/tutorials/adresgegevens-in-de-account-opslaan/#comments</comments> <pubDate>Tue, 17 Jan 2012 13:00:22 +0000</pubDate> <dc:creator>famire</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[Shopp]]></category><guid
isPermaLink="false">http://hiranthi.nl/?p=3363</guid> <description><![CDATA[Een opdrachtgever van me wilde graag geen adres-velden op de checkout, maar alleen op de account-pagina. Op zich was dat niet zo heel erg moeilijk, velden toevoegen aan account.php en verborgen input-velden met de adresgegevens in checkout.php (Shopp vereist namelijk wel een adres tijdens de checkout). Maar toen kwamen we achter een probleem: het wijzigen [...]]]></description> <content:encoded><![CDATA[<p>Een opdrachtgever van me wilde graag geen adres-velden op de checkout, maar alleen op de account-pagina. Op zich was dat niet zo heel erg moeilijk, velden toevoegen aan account.php en verborgen input-velden met de adresgegevens in checkout.php (Shopp vereist namelijk wel een adres tijdens de checkout).<span
id="more-3363"></span></p><p>Maar toen kwamen we achter een probleem: het wijzigen van de adresgegevens op de account-pagina werkt niet. Het wordt alleen opgeslagen als je op de checkout.php zit.<br
/>Zoeken in de Shopp forums hielp ook niet, daar bleek dat dit al sinds het begin zo is (en er erg veel mensen zijn die dit wel graag willen).</p><p>Het enige dat ik dacht was: &#8220;maar zo moeilijk kan het toch niet zijn?&#8221; En inderdaad: zo moeilijk was het ook niet <img
src='http://hiranthi.nl/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /></p><h2>De code</h2><p>De volgende code zet je in de functions.php van je theme (of in een aparte plugin -&amp;gt; aangeraden!):</p><pre><pre class="brush: php; gutter: true">function save_address_info()
{
  global $Shopp;
  
  $Order =&amp; $Shopp-&gt;Order;
  
  if ( isset($_GET[&#039;acct&#039;]) &amp;&amp; ( $_GET[&#039;acct&#039;] == &#039;account&#039; ) )
  {
    if ( isset($_POST[&#039;billing&#039;]) &amp;&amp; isset($_POST[&#039;shipping&#039;]) )
    {
      // Shipping address
      $Order-&gt;Shipping-&gt;address  = $_POST[&#039;shipping&#039;][&#039;address&#039;];
      $Order-&gt;Shipping-&gt;xaddress  = $_POST[&#039;shipping&#039;][&#039;xaddress&#039;];
      $Order-&gt;Shipping-&gt;city    = $_POST[&#039;shipping&#039;][&#039;city&#039;];
      $Order-&gt;Shipping-&gt;state    = $_POST[&#039;shipping&#039;][&#039;state&#039;];
      $Order-&gt;Shipping-&gt;country  = $_POST[&#039;shipping&#039;][&#039;country&#039;];
      
      $Order-&gt;Shipping-&gt;save();
      
      // Billing address
      $Order-&gt;Billing-&gt;address  = $_POST[&#039;billing&#039;][&#039;address&#039;];
      $Order-&gt;Billing-&gt;xaddress  = $_POST[&#039;billing&#039;][&#039;xaddress&#039;];
      $Order-&gt;Billing-&gt;city    = $_POST[&#039;billing&#039;][&#039;city&#039;];
      $Order-&gt;Billing-&gt;state    = $_POST[&#039;billing&#039;][&#039;state&#039;];
      $Order-&gt;Billing-&gt;country  = $_POST[&#039;billing&#039;][&#039;country&#039;];
      
      $Order-&gt;Billing-&gt;save();
    }
  }
} // end save_address_info
add_action(&#039;shopp_init&#039;,&#039;save_address_info&#039;);</pre></pre><p>En je moet natuurlijk niet vergeten om de velden daadwerkelijk aan je account.php toe te voegen <img
src='http://hiranthi.nl/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /></p><div
class="printfriendly alignleft"><a
href="http://hiranthi.nl/tutorials/adresgegevens-in-de-account-opslaan/?pfstyle=wp" rel="nofollow" ><img
src="//cdn.printfriendly.com/pf-print-icon.gif" alt="Print Friendly"/><span
class="printandpdf printfriendly-text"> Print <img
src="//cdn.printfriendly.com/pf-pdf-icon.gif" alt="Get a PDF version of this webpage" /> PDF </span></a></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fadresgegevens-in-de-account-opslaan%2F&amp;t=Adresgegevens+in+de+account+opslaan" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=Adresgegevens+in+de+account+opslaan%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D3363%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1581px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fadresgegevens-in-de-account-opslaan%2F&amp;title=Adresgegevens+in+de+account+opslaan&amp;notes=Een+opdrachtgever+van+me+wilde+graag+geen+adres-velden+op+de+checkout%2C+maar+alleen+op+de+account-pagina.+Op+zich+was+dat+niet+zo+heel+erg+moeilijk%2C+velden+toevoegen+aan+account.php+en+verborgen+input-velden+met+de+adresgegevens+in+checkout.php+%28Shopp" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fadresgegevens-in-de-account-opslaan%2F&amp;title=Adresgegevens+in+de+account+opslaan&amp;bodytext=Een+opdrachtgever+van+me+wilde+graag+geen+adres-velden+op+de+checkout%2C+maar+alleen+op+de+account-pagina.+Op+zich+was+dat+niet+zo+heel+erg+moeilijk%2C+velden+toevoegen+aan+account.php+en+verborgen+input-velden+met+de+adresgegevens+in+checkout.php+%28Shopp" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fadresgegevens-in-de-account-opslaan%2F&amp;title=Adresgegevens+in+de+account+opslaan" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1496px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/tutorials/adresgegevens-in-de-account-opslaan/" onclick="addBookmark(event);" title="Adresgegevens in de account opslaan" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:info@illutic.nl?subject=Adresgegevens in de account opslaan&amp;body=Een opdrachtgever van me wilde graag geen adres-velden op de checkout, maar alleen op de account-pagina. Op zich was dat niet zo heel erg moeilijk, velden toevoegen aan account.php en verborgen input-velden met de adresgegevens in checkout.php (Shopp - http://hiranthi.nl/tutorials/adresgegevens-in-de-account-opslaan/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1343px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/tutorials/adresgegevens-in-de-account-opslaan/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>CPT &#8220;moeder-pagina&#8221;</title><link>http://hiranthi.nl/wordpress/cpt-moeder-pagina/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cpt-moeder-pagina</link> <comments>http://hiranthi.nl/wordpress/cpt-moeder-pagina/#comments</comments> <pubDate>Wed, 12 Oct 2011 12:00:38 +0000</pubDate> <dc:creator>famire</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[CPT]]></category> <category><![CDATA[Custom Post Type]]></category><guid
isPermaLink="false">http://hiranthi.nl/?p=3341</guid> <description><![CDATA[Bijna een half jaar geleden heb ik op WordPress.org een idee ingestuurd: om een moeder-pagina te kunnen selecteren voor je custom post types, net zoals je voor je posts kan doen (als je een afwijkende pagina voor je posts wilt gebruiken). Momenteel moet je dit via workarounds proberen na te bootsen, terwijl het veel logischer [...]]]></description> <content:encoded><![CDATA[<p>Bijna een half jaar geleden heb ik op WordPress.org een idee ingestuurd: om een moeder-pagina te kunnen selecteren voor je custom post types, net zoals je voor je posts kan doen (als je een afwijkende pagina voor je posts wilt gebruiken).<span
id="more-3341"></span></p><p>Momenteel moet je dit via workarounds proberen na te bootsen, terwijl het veel logischer zou zijn als dit in de core zou zitten. Het zit er voor posts immers ook al ingebakken. Vreemde is dat <a
rel="nofollow" target="_blank" title="Custom Post Type Page in Settings" href="http://wordpress.org/extend/ideas/topic/custom-post-type-page-in-settings">het betreffende idee</a> de status &#8220;This is plugin territory&#8221; (ofwel: dit moet mbv plugins verwezenlijkt worden) heeft gekregen en daar ben ik het dus absoluut niet mee eens.</p><p>Het gaat hier immers om iets dat WP zelf al doet voor de Post Type &#8220;Posts&#8221;. Ik zou niet weten waarom het dan voor Custom Post Types ineens niet in de core zou hoeven te zitten. Tuurlijk, posts zitten altijd in WP, maar dat is eigenlijk ook het enige verschil. Het is voor gebruikers alleen maar verwarrend dat zo&#8217;n instelling er niet al in zit (en zulke code is gewoon automatisch te genereren voor toegevoegde CPT&#8217;s, dmv het loopen door de CPT&#8217;s heen) en als een plugin dit af zou moeten handelen krijg je weer dat mensen verwart raken omdat het voor de ene Post Type op de ene pagina ingesteld moet worden en voor de andere moet het ergens anders ingesteld worden.</p><p>Ik ben dus van mening dat dit in de core moet komen. Ben jij dat ook? Laat dan vooral je stem achter op <a
rel="nofollow" target="_blank" title="Custom Post Type Page in Settings" href="http://wordpress.org/extend/ideas/topic/custom-post-type-page-in-settings">mijn idee</a>. Wellicht veranderen ze alsnog van gedachten!</p><div
class="printfriendly alignleft"><a
href="http://hiranthi.nl/wordpress/cpt-moeder-pagina/?pfstyle=wp" rel="nofollow" ><img
src="//cdn.printfriendly.com/pf-print-icon.gif" alt="Print Friendly"/><span
class="printandpdf printfriendly-text"> Print <img
src="//cdn.printfriendly.com/pf-pdf-icon.gif" alt="Get a PDF version of this webpage" /> PDF </span></a></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fcpt-moeder-pagina%2F&amp;t=CPT+%26%238220%3Bmoeder-pagina%26%238221%3B" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=CPT+%26%238220%3Bmoeder-pagina%26%238221%3B%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D3341%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1581px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fcpt-moeder-pagina%2F&amp;title=CPT+%26%238220%3Bmoeder-pagina%26%238221%3B&amp;notes=%0D%0ABijna+een+half+jaar+geleden+heb+ik+op+WordPress.org+een+idee+ingestuurd%3A+om+een+moeder-pagina+te+kunnen+selecteren+voor+je+custom+post+types%2C+net+zoals+je+voor+je+posts+kan+doen+%28als+je+een+afwijkende+pagina+voor+je+posts+wilt+gebruiken%29.%0D%0AMomentee" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fcpt-moeder-pagina%2F&amp;title=CPT+%26%238220%3Bmoeder-pagina%26%238221%3B&amp;bodytext=%0D%0ABijna+een+half+jaar+geleden+heb+ik+op+WordPress.org+een+idee+ingestuurd%3A+om+een+moeder-pagina+te+kunnen+selecteren+voor+je+custom+post+types%2C+net+zoals+je+voor+je+posts+kan+doen+%28als+je+een+afwijkende+pagina+voor+je+posts+wilt+gebruiken%29.%0D%0AMomentee" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fcpt-moeder-pagina%2F&amp;title=CPT+%26%238220%3Bmoeder-pagina%26%238221%3B" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1496px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/wordpress/cpt-moeder-pagina/" onclick="addBookmark(event);" title="CPT &#8220;moeder-pagina&#8221;" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:info@illutic.nl?subject=CPT &#8220;moeder-pagina&#8221;&amp;body=
Bijna een half jaar geleden heb ik op WordPress.org een idee ingestuurd: om een moeder-pagina te kunnen selecteren voor je custom post types, net zoals je voor je posts kan doen (als je een afwijkende pagina voor je posts wilt gebruiken).
Momentee - http://hiranthi.nl/wordpress/cpt-moeder-pagina/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1343px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/wordpress/cpt-moeder-pagina/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Verwijder deactivatie link voor specifieke plugins</title><link>http://hiranthi.nl/wordpress/verwijder-de-activatie-link-specifieke-plugins/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=verwijder-de-activatie-link-specifieke-plugins</link> <comments>http://hiranthi.nl/wordpress/verwijder-de-activatie-link-specifieke-plugins/#comments</comments> <pubDate>Fri, 16 Sep 2011 08:06:44 +0000</pubDate> <dc:creator>famire</dc:creator> <category><![CDATA[WordPress]]></category><guid
isPermaLink="false">http://hiranthi.nl/?p=3308</guid> <description><![CDATA[Ik heb m&#8217;n RSS feeds te lang niet bekeken en ben ze nu een beetje aan het doorspitten. In een van de WordPress-gerelateerde feeds kwam ik een erg interessant artikel tegen over hoe je voor bepaalde plugins het deactiveren als het ware kunt uitschakelen. Erg handig als je een website oplevert die bepaalde plugins echt [...]]]></description> <content:encoded><![CDATA[<p>Ik heb m&#8217;n RSS feeds te lang niet bekeken en ben ze nu een beetje aan het doorspitten. In een van de WordPress-gerelateerde feeds kwam ik een erg interessant artikel tegen over hoe je voor bepaalde plugins het deactiveren als het ware kunt uitschakelen. Erg handig als je een website oplevert die bepaalde plugins echt nodig heeft en je opdrachtgever wel graag plugins wil kunnen activeren/deactiveren.</p><p>Het originele artikel (van 29 augustus jl.) staat op WordPress for Beginners: <a
rel="nofollow" target="_blank" href="http://feedproxy.google.com/~r/wpbeginner/~3/k3iy2_4pa38/">How to Disable Plugin Deactivation from WordPress Admin Panel</a>.</p><div
class="printfriendly alignleft"><a
href="http://hiranthi.nl/wordpress/verwijder-de-activatie-link-specifieke-plugins/?pfstyle=wp" rel="nofollow" ><img
src="//cdn.printfriendly.com/pf-print-icon.gif" alt="Print Friendly"/><span
class="printandpdf printfriendly-text"> Print <img
src="//cdn.printfriendly.com/pf-pdf-icon.gif" alt="Get a PDF version of this webpage" /> PDF </span></a></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fverwijder-de-activatie-link-specifieke-plugins%2F&amp;t=Verwijder+deactivatie+link+voor+specifieke+plugins" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=Verwijder+deactivatie+link+voor+specifieke+plugins%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D3308%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1581px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fverwijder-de-activatie-link-specifieke-plugins%2F&amp;title=Verwijder+deactivatie+link+voor+specifieke+plugins&amp;notes=Ik+heb+m%27n+RSS+feeds+te+lang+niet+bekeken+en+ben+ze+nu+een+beetje+aan+het+doorspitten.+In+een+van+de+WordPress-gerelateerde+feeds+kwam+ik+een+erg+interessant+artikel+tegen+over+hoe+je+voor+bepaalde+plugins+het+deactiveren+als+het+ware+kunt+uitschakel" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fverwijder-de-activatie-link-specifieke-plugins%2F&amp;title=Verwijder+deactivatie+link+voor+specifieke+plugins&amp;bodytext=Ik+heb+m%27n+RSS+feeds+te+lang+niet+bekeken+en+ben+ze+nu+een+beetje+aan+het+doorspitten.+In+een+van+de+WordPress-gerelateerde+feeds+kwam+ik+een+erg+interessant+artikel+tegen+over+hoe+je+voor+bepaalde+plugins+het+deactiveren+als+het+ware+kunt+uitschakel" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fverwijder-de-activatie-link-specifieke-plugins%2F&amp;title=Verwijder+deactivatie+link+voor+specifieke+plugins" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1496px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/wordpress/verwijder-de-activatie-link-specifieke-plugins/" onclick="addBookmark(event);" title="Verwijder deactivatie link voor specifieke plugins" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:info@illutic.nl?subject=Verwijder deactivatie link voor specifieke plugins&amp;body=Ik heb m'n RSS feeds te lang niet bekeken en ben ze nu een beetje aan het doorspitten. In een van de WordPress-gerelateerde feeds kwam ik een erg interessant artikel tegen over hoe je voor bepaalde plugins het deactiveren als het ware kunt uitschakel - http://hiranthi.nl/wordpress/verwijder-de-activatie-link-specifieke-plugins/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1343px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/wordpress/verwijder-de-activatie-link-specifieke-plugins/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Shopp en iDEAL via banken</title><link>http://hiranthi.nl/wordpress/shopp-en-ideal-via-banken/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=shopp-en-ideal-via-banken</link> <comments>http://hiranthi.nl/wordpress/shopp-en-ideal-via-banken/#comments</comments> <pubDate>Mon, 12 Sep 2011 12:00:56 +0000</pubDate> <dc:creator>famire</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[E-commerce]]></category> <category><![CDATA[Shopp]]></category> <category><![CDATA[webshop]]></category> <category><![CDATA[webwinkel]]></category><guid
isPermaLink="false">http://hiranthi.nl/?p=3301</guid> <description><![CDATA[Zoals je misschien al wist ben ik sinds 2009 op zoek naar een partij die iDEAL via de banken voor Shopp zou kunnen maken. Heb toen mensen in mijn netwerk gevraagd en een project op Freelance.nl gezet: niks gevonden. Via ideal-checkout.nl geprobeerd, maar dan zou ik honderden euro&#8217;s moeten betalen voor een betaalmethode die ik [...]]]></description> <content:encoded><![CDATA[<p>Zoals je misschien al wist ben ik sinds 2009 op zoek naar een partij die iDEAL via de banken voor Shopp zou kunnen maken. Heb toen mensen in mijn netwerk gevraagd en een project op Freelance.nl gezet: niks gevonden.</p><p>Via <a
rel="nofollow" target="_blank" href="http://ideal-checkout.nl/">ideal-checkout.nl</a> geprobeerd, maar dan zou ik honderden euro&#8217;s moeten betalen voor een betaalmethode die ik zelf niet zou mogen verkopen. Ze vinden daar namelijk dat Shopp geen open source is (blijkbaar kennen ze de definitie van open source niet), dus moet er voor betaald worden.</p><p>Maar nu is de dag dan toch daar! Elephant CS heeft een <a
rel="nofollow" target="_blank" title="iDEAL voor WordPress" href="http://elephantcs.nl/shop/ideal-voor-wordpress/">iDEAL plugin</a> geschreven die geïntegreerd kan worden met Shopp. Je heb hier dan een iDEAL abonnement van een van de volgende banken voor nodig:</p><ul><li>ABN Amro</li><li>Rabobank</li><li>ING Bank</li><li>Friesland Bank</li></ul><h2>Twee type licenties</h2><div>Elephant CS hanteert twee type licenties voor de iDEAL plugin:</div><div><ul><li>Single Site (€27,-)</li><li>Developer (€127,-)</li></ul><div>Is iDEAL via Mollie of Sisow (voorheen AssurePay) dus niets voor jou (omdat de kosten te hoog zijn) dan kun je nu dus ook iDEAL via de bank gebruiken met Shopp!</div></div><div
class="printfriendly alignleft"><a
href="http://hiranthi.nl/wordpress/shopp-en-ideal-via-banken/?pfstyle=wp" rel="nofollow" ><img
src="//cdn.printfriendly.com/pf-print-icon.gif" alt="Print Friendly"/><span
class="printandpdf printfriendly-text"> Print <img
src="//cdn.printfriendly.com/pf-pdf-icon.gif" alt="Get a PDF version of this webpage" /> PDF </span></a></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fshopp-en-ideal-via-banken%2F&amp;t=Shopp+en+iDEAL+via+banken" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=Shopp+en+iDEAL+via+banken%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D3301%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1581px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fshopp-en-ideal-via-banken%2F&amp;title=Shopp+en+iDEAL+via+banken&amp;notes=Zoals+je+misschien+al+wist+ben+ik+sinds+2009+op+zoek+naar+een+partij+die+iDEAL+via+de+banken+voor+Shopp+zou+kunnen+maken.+Heb+toen+mensen+in+mijn+netwerk+gevraagd+en+een+project+op+Freelance.nl+gezet%3A+niks+gevonden.%0D%0AVia+ideal-checkout.nl+geprobeerd%2C" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fshopp-en-ideal-via-banken%2F&amp;title=Shopp+en+iDEAL+via+banken&amp;bodytext=Zoals+je+misschien+al+wist+ben+ik+sinds+2009+op+zoek+naar+een+partij+die+iDEAL+via+de+banken+voor+Shopp+zou+kunnen+maken.+Heb+toen+mensen+in+mijn+netwerk+gevraagd+en+een+project+op+Freelance.nl+gezet%3A+niks+gevonden.%0D%0AVia+ideal-checkout.nl+geprobeerd%2C" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fshopp-en-ideal-via-banken%2F&amp;title=Shopp+en+iDEAL+via+banken" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1496px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/wordpress/shopp-en-ideal-via-banken/" onclick="addBookmark(event);" title="Shopp en iDEAL via banken" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:info@illutic.nl?subject=Shopp en iDEAL via banken&amp;body=Zoals je misschien al wist ben ik sinds 2009 op zoek naar een partij die iDEAL via de banken voor Shopp zou kunnen maken. Heb toen mensen in mijn netwerk gevraagd en een project op Freelance.nl gezet: niks gevonden.
Via ideal-checkout.nl geprobeerd, - http://hiranthi.nl/wordpress/shopp-en-ideal-via-banken/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1343px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/wordpress/shopp-en-ideal-via-banken/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Maatwerk product aan winkelwagen toevoegen</title><link>http://hiranthi.nl/tutorials/maatwerk-product-aan-winkelwagen-toevoegen/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=maatwerk-product-aan-winkelwagen-toevoegen</link> <comments>http://hiranthi.nl/tutorials/maatwerk-product-aan-winkelwagen-toevoegen/#comments</comments> <pubDate>Thu, 28 Jul 2011 09:06:55 +0000</pubDate> <dc:creator>famire</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[E-commerce]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Shopp]]></category> <category><![CDATA[webshop]]></category> <category><![CDATA[winkelwagen]]></category><guid
isPermaLink="false">http://hiranthi.nl/?p=3256</guid> <description><![CDATA[Het kan voorkomen dat je Shopp wilt gebruiken voor de afhandeling van de bestelling/betaling, maar dat je de daadwerkelijke producten niet (allemaal) als product wilt toevoegen. In zo&#8217;n geval is het natuurlijk handig om te weten hoe je producten via PHP in de winkelwagen krijgt. In dit deel van de &#8220;Shopp: maatwerk product in winkelwagen&#8221;-serie [...]]]></description> <content:encoded><![CDATA[<p>Het kan voorkomen dat je Shopp wilt gebruiken voor de afhandeling van de bestelling/betaling, maar dat je de daadwerkelijke producten niet (allemaal) als product wilt toevoegen. In zo&#8217;n geval is het natuurlijk handig om te weten hoe je producten via PHP in de winkelwagen krijgt.<span
id="more-3256"></span></p><p>In dit deel van de &#8220;Shopp: maatwerk product in winkelwagen&#8221;-serie laat ik zien hoe je met een eigen formulier een product aan de winkelwagen kan toevoegen. Met deze code kun je dan inhaken op andere plugins.</p><h2>Het formulier</h2><p>Als eerste maken we het formulier. Je kunt hier het beste een aparte pagina-template voor gebruiken.</p><pre><pre lang="php" class="brush: php; gutter: true">&lt;form action=&quot;&quot; method=&quot;post&quot;&gt;
  &lt;input type=&quot;hidden&quot; name=&quot;ProductName&quot; value=&quot;Naam van Product&quot; &gt;
  &lt;input type=&quot;hidden&quot; name=&quot;ProductPrice&quot; value=&quot;10.00&quot; &gt;

  &lt;h2&gt;Naam van Product&lt;/h2&gt;

  &lt;big&gt;Prijs: &lt;php echo money(10.00); ?&gt;&lt;/big&gt;

  &lt;p&gt;&lt;label for=&quot;ProductQuantity&quot;&gt;Aantal&lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;ProductQuantity&quot; id=&quot;ProductQuantity&quot; value=&quot;1&quot; /&gt;&lt;/p&gt;
  &lt;p&gt;&lt;input type=&quot;submit&quot; name=&quot;addtocart&quot; value=&quot;In winkelwagen&quot; /&gt;&lt;/p&gt;
&lt;/form&gt;</pre></pre><h3>Uitleg formulier code</h3><p>Zoals je kan zien is de <code>action</code> van dit formulier leeg, hierdoor wordt het formulier verzonden naar de huidige pagina. Vandaar de aparte pagina-template, je kunt de code voor het afhandelen van het verzonden formulier dan bij het formulier zelf houden.</p><pre><pre lang="html" class="brush: php; gutter: true">&lt;input type=&quot;hidden&quot; name=&quot;ProductName&quot; value=&quot;Naam van Product&quot; &gt;
  &lt;input type=&quot;hidden&quot; name=&quot;ProductPrice&quot; value=&quot;10.00&quot; &gt;</pre></pre><p>Deze verborgen velden zijn voor het opgeven van de benodigde gegevens, de naam en de prijs. De prijs wordt hier niet &#8220;op z&#8217;n Nederlands&#8221; neergezet, maar met een punt als scheiding tussen de decimalen en hele getallen. Dit om te verzekeren dat het bedrag juist wordt overgenomen als het product in de winkelwagen wordt gestopt.</p><pre lang="html" class="brush: php; gutter: true">&lt;h2&gt;Naam van Product&lt;/h2&gt;</pre><p>Dit lijkt me voor zich spreken. Je geeft de naam van het product wel mee in een verborgen veld, maar voor je bezoekers/klanten is het ook wel zo handig om te weten hoe het product heet.</p><pre lang="php" class="brush: php; gutter: true">&lt;big&gt;Prijs: &lt;php echo money(10.00); ?&gt;&lt;/big&gt;</pre><p>Je klanten willen natuurlijk ook wel graag weten wat een product dan kost, voor ze het in de winkelwagen stoppen. De <code>money()</code> functie is een Shopp-functie die ervoor zorgt dat de weergave van het bedrag overeenkomt met de valuta van je webshop. In Euro&#8217;s wordt dit dan <code>&amp;euro;10,00</code>.</p><pre lang="html" class="brush: php; gutter: true">&lt;p&gt;&lt;label for=&quot;ProductQuantity&quot;&gt;Aantal&lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;ProductQuantity&quot; id=&quot;ProductQuantity&quot; value=&quot;1&quot; /&gt;&lt;/p&gt;</pre><p>Een invoerveld voor het aantal dat toegevoegd moet worden aan de winkelwagen. Hier kun je uiteraard ook een verborgen veld voor gebruiken waarmee je het aantal dat wordt toegevoegd vastzet.</p><pre lang="html" class="brush: php; gutter: true">&lt;p&gt;&lt;input type=&quot;submit&quot; name=&quot;addtocart&quot; value=&quot;In winkelwagen&quot; /&gt;&lt;/p&gt;</pre><p>De button die het formulier verzend.</p><h2>Aan winkelwagen toevoegen</h2><p>Met bovenstaande code heb je een leuk formuliertje, maar verder eigenlijk ook niet. We hebben nog code nodig die de verzonden gegevens gaan verwerken.</p><pre><pre lang="php" class="brush: php; gutter: true">&lt;?php

// is het formulier gepost?
if ( isset($_POST[&#039;addtocart&#039;]) )
{
  global $Shopp;
  $Order  =&amp;#038; ShoppOrder();
  $Cart  =&amp;#038; $Order-&gt;Cart;
  
  $Product          = new Product((time()-1));
  $NewProduct    = new Item($Product,time());

  $NewProduct-&gt;name  = esc_attr($_POST[&#039;ProductName&#039;]); // productnaam
  $NewProduct-&gt;unitprice  = intval($_POST[&#039;ProductPrice&#039;]); // de prijs per product
  $NewProduct-&gt;quantity  = intval($_POST[&#039;ProductQuantity&#039;]); // aantal van het product
  $NewProduct-&gt;taxrate  = shopp_taxrate(); // haal het BTW-percentage uit de Shopp instellingen
  $NewProduct-&gt;taxable  = true; // of het product met BTW belast moet worden of niet (true|false)

  $Cart-&gt;contents[]  = $NewProduct; // voeg het nieuwe product aan de winkelwagen toe
  $Cart-&gt;changed(true); // laat Shopp weten dat de winkelwagen is verandert
}

?&gt;</pre></pre><p>Shopp heeft ook een speciale functie om producten aan de winkelwagen toe te voegen, Adam heeft daar een voorbeeld van in <a
rel="nofollow" target="_blank" href="http://www.mygeeknc.com/shopp/programmatically-adding-items-to-shopps-cart/" title="Programmatically adding items to Shopp’s Cart">een van zijn tutorials</a>, maar ik vind deze manier zelf fijner. Zo heb je meer controle over waar het item in de winkelwagen geplaatst wordt.</p><h2>Custom data per product</h2><p>Wil je graag custom data toevoegen aan je product(en)? Dat kan uiteraard en dat doe je zo (moet boven <code>$Cart-&gt;contents[] = $NewProduct;</code> geplaatst worden):</p><pre><pre lang="php" class="brush: php; gutter: true">&lt;?php
  $NewProduct-&gt;data[&#039;Naam specifiek veld 1&#039;] = esc_attr($_POST[&#039;SpecificField1&#039;]);
  $NewProduct-&gt;data[&#039;Naam specifiek veld 2&#039;] = esc_attr($_POST[&#039;SpecificField2&#039;]);
?&gt;</pre></pre><p>Vergeet niet om de inputs voor deze velden ook toe te voegen aan het formulier (al dan niet met verborgen velden).</p><h2>Verwijderen uit winkelwagen</h2><p>Om het product uit de winkelwagen te verwijderen heb je geen extra code nodig, hier zorgt Shopp zelf voor.</p><div
class="printfriendly alignleft"><a
href="http://hiranthi.nl/tutorials/maatwerk-product-aan-winkelwagen-toevoegen/?pfstyle=wp" rel="nofollow" ><img
src="//cdn.printfriendly.com/pf-print-icon.gif" alt="Print Friendly"/><span
class="printandpdf printfriendly-text"> Print <img
src="//cdn.printfriendly.com/pf-pdf-icon.gif" alt="Get a PDF version of this webpage" /> PDF </span></a></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fmaatwerk-product-aan-winkelwagen-toevoegen%2F&amp;t=Maatwerk+product+aan+winkelwagen+toevoegen" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=Maatwerk+product+aan+winkelwagen+toevoegen%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D3256%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1581px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fmaatwerk-product-aan-winkelwagen-toevoegen%2F&amp;title=Maatwerk+product+aan+winkelwagen+toevoegen&amp;notes=Het+kan+voorkomen+dat+je+Shopp+wilt+gebruiken+voor+de+afhandeling+van+de+bestelling%2Fbetaling%2C+maar+dat+je+de+daadwerkelijke+producten+niet+%28allemaal%29+als+product+wilt+toevoegen.+In+zo%27n+geval+is+het+natuurlijk+handig+om+te+weten+hoe+je+producten+via+" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fmaatwerk-product-aan-winkelwagen-toevoegen%2F&amp;title=Maatwerk+product+aan+winkelwagen+toevoegen&amp;bodytext=Het+kan+voorkomen+dat+je+Shopp+wilt+gebruiken+voor+de+afhandeling+van+de+bestelling%2Fbetaling%2C+maar+dat+je+de+daadwerkelijke+producten+niet+%28allemaal%29+als+product+wilt+toevoegen.+In+zo%27n+geval+is+het+natuurlijk+handig+om+te+weten+hoe+je+producten+via+" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fmaatwerk-product-aan-winkelwagen-toevoegen%2F&amp;title=Maatwerk+product+aan+winkelwagen+toevoegen" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1496px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/tutorials/maatwerk-product-aan-winkelwagen-toevoegen/" onclick="addBookmark(event);" title="Maatwerk product aan winkelwagen toevoegen" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:info@illutic.nl?subject=Maatwerk product aan winkelwagen toevoegen&amp;body=Het kan voorkomen dat je Shopp wilt gebruiken voor de afhandeling van de bestelling/betaling, maar dat je de daadwerkelijke producten niet (allemaal) als product wilt toevoegen. In zo'n geval is het natuurlijk handig om te weten hoe je producten via  - http://hiranthi.nl/tutorials/maatwerk-product-aan-winkelwagen-toevoegen/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1343px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/tutorials/maatwerk-product-aan-winkelwagen-toevoegen/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>Vertraging in launch Shopplugin.nl</title><link>http://hiranthi.nl/wordpress/vertraging-in-launch-shopplugin-nl/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=vertraging-in-launch-shopplugin-nl</link> <comments>http://hiranthi.nl/wordpress/vertraging-in-launch-shopplugin-nl/#comments</comments> <pubDate>Wed, 27 Jul 2011 12:55:36 +0000</pubDate> <dc:creator>famire</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[Shopp]]></category> <category><![CDATA[Shopplugin.nl]]></category><guid
isPermaLink="false">http://hiranthi.nl/?p=3253</guid> <description><![CDATA[Een paar weken terug publiceerde ik de post over Shopplugin.nl, een eigen nieuw project. Helaas is die site nog niet online en het zal waarschijnlijk wel een paar weken gaan duren. ICTRecht is nu bezig met de voorwaarden voor de site, ik wil het namelijk juridisch &#8211; uiteraard &#8211; ook goed geregeld hebben. Hoewel dat [...]]]></description> <content:encoded><![CDATA[<p>Een paar weken terug publiceerde ik de <a
rel="nofollow" target="_blank" title="Een nieuw project: Shopplugin.nl" href="http://hiranthi.nl/wordpress/nieuw-project-shopplugin-nl/">post</a> over <a
href="http://shopplugin.nl">Shopplugin.nl</a>, een eigen nieuw project. Helaas is die site nog niet online en het zal waarschijnlijk wel een paar weken gaan duren.<span
id="more-3253"></span></p><p><a
rel="nofollow" target="_blank" href="http://www.ictrecht.nl">ICTRecht</a> is nu bezig met de voorwaarden voor de site, ik wil het namelijk juridisch &#8211; uiteraard &#8211; ook goed geregeld hebben. Hoewel dat bijna klaar is zal het dus nog wel een paar weken duren. Mijn vakantie begint vrijdag en de komende drie weken breng ik graag door met mijn man en zoon (ipv achter de laptop).</p><p>De geplande lanceerdatum is nu 1 <del
datetime="2011-07-29T19:25:12+00:00">augustus</del> <ins
datetime="2011-07-29T19:25:12+00:00">september</ins> aanstaande. Ik zal er straks even de mogelijkheid op zetten om je in te schrijven op de Shopplugin.nl nieuwsbrief (dan krijg je meteen bericht als de site gelanceerd is).</p><div
class="printfriendly alignleft"><a
href="http://hiranthi.nl/wordpress/vertraging-in-launch-shopplugin-nl/?pfstyle=wp" rel="nofollow" ><img
src="//cdn.printfriendly.com/pf-print-icon.gif" alt="Print Friendly"/><span
class="printandpdf printfriendly-text"> Print <img
src="//cdn.printfriendly.com/pf-pdf-icon.gif" alt="Get a PDF version of this webpage" /> PDF </span></a></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fvertraging-in-launch-shopplugin-nl%2F&amp;t=Vertraging+in+launch+Shopplugin.nl" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=Vertraging+in+launch+Shopplugin.nl%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D3253%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1581px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fvertraging-in-launch-shopplugin-nl%2F&amp;title=Vertraging+in+launch+Shopplugin.nl&amp;notes=Een+paar+weken+terug+publiceerde+ik+de+post+over+Shopplugin.nl%2C+een+eigen+nieuw+project.+Helaas+is+die+site+nog+niet+online+en+het+zal+waarschijnlijk+wel+een+paar+weken+gaan+duren.%0D%0AICTRecht+is+nu+bezig+met+de+voorwaarden+voor+de+site%2C+ik+wil+het+nam" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fvertraging-in-launch-shopplugin-nl%2F&amp;title=Vertraging+in+launch+Shopplugin.nl&amp;bodytext=Een+paar+weken+terug+publiceerde+ik+de+post+over+Shopplugin.nl%2C+een+eigen+nieuw+project.+Helaas+is+die+site+nog+niet+online+en+het+zal+waarschijnlijk+wel+een+paar+weken+gaan+duren.%0D%0AICTRecht+is+nu+bezig+met+de+voorwaarden+voor+de+site%2C+ik+wil+het+nam" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fvertraging-in-launch-shopplugin-nl%2F&amp;title=Vertraging+in+launch+Shopplugin.nl" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1496px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/wordpress/vertraging-in-launch-shopplugin-nl/" onclick="addBookmark(event);" title="Vertraging in launch Shopplugin.nl" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:info@illutic.nl?subject=Vertraging in launch Shopplugin.nl&amp;body=Een paar weken terug publiceerde ik de post over Shopplugin.nl, een eigen nieuw project. Helaas is die site nog niet online en het zal waarschijnlijk wel een paar weken gaan duren.
ICTRecht is nu bezig met de voorwaarden voor de site, ik wil het nam - http://hiranthi.nl/wordpress/vertraging-in-launch-shopplugin-nl/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1343px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/wordpress/vertraging-in-launch-shopplugin-nl/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Een nieuw project: Shopplugin.nl</title><link>http://hiranthi.nl/wordpress/nieuw-project-shopplugin-nl/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=nieuw-project-shopplugin-nl</link> <comments>http://hiranthi.nl/wordpress/nieuw-project-shopplugin-nl/#comments</comments> <pubDate>Fri, 01 Jul 2011 07:00:12 +0000</pubDate> <dc:creator>famire</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[E-commerce]]></category> <category><![CDATA[Shopp]]></category> <category><![CDATA[shopplugin]]></category> <category><![CDATA[webshop]]></category> <category><![CDATA[WordPress plugin]]></category> <category><![CDATA[WP e-Commerce]]></category><guid
isPermaLink="false">http://hiranthi.nl/?p=3241</guid> <description><![CDATA[De afgelopen paar weken ben ik druk bezig geweest met een nieuwe (eigen) project: Shopplugin.nl. In deze webshop kun je terecht voor uitbreidingen voor je Shopp webshop. De webshop gaat op 1 juli 14 juli aanstaande online en de volgende plugins kun je er dan al vinden: Kadobonnen Transformeer producten naar cadeaubonnen. Stuur de cadeaubon, via e-mail, [...]]]></description> <content:encoded><![CDATA[De afgelopen paar weken ben ik druk bezig geweest met een nieuwe (eigen) project: <a
rel="nofollow" target="_blank" title="Uitbreidingen voor je Shopp webshop" href="http://shopplugin.nl">Shopplugin.nl</a>. In deze webshop kun je terecht voor uitbreidingen voor je Shopp webshop.<span
id="more-3241"></span>De webshop gaat op <del>1 juli</del> 14 juli aanstaande online en de volgende plugins kun je er dan al vinden:<ul><li>Kadobonnen</li><ul><li>Transformeer producten naar cadeaubonnen.</li><li>Stuur de cadeaubon, via e-mail, naar de juiste persoon (in HTML of PDF).</li></ul><li>Recent bekeken</li><ul><li>Een widget die de laatst bekeken (door betreffende bezoeker) producten weergeeft.</li></ul><li>Standaard product type</li><ul><li>Kies welk product type standaard geselecteerd staat bij het aanmaken van een nieuw product</li></ul><li>Standaard betaalmethode</li><ul><li>Kies welke betaalmethode standaard geselecteerd staat in het bestelproces.</li></ul></ul><h2>Een jaar updates en support</h2><div>Bij het aanschaffen van een plugin krijg je een jaar gratis updates en support. En er zit geen restrictie op het aantal websites waar je het op kunt gebruiken!</div><div
class="printfriendly alignleft"><a
href="http://hiranthi.nl/wordpress/nieuw-project-shopplugin-nl/?pfstyle=wp" rel="nofollow" ><img
src="//cdn.printfriendly.com/pf-print-icon.gif" alt="Print Friendly"/><span
class="printandpdf printfriendly-text"> Print <img
src="//cdn.printfriendly.com/pf-pdf-icon.gif" alt="Get a PDF version of this webpage" /> PDF </span></a></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fnieuw-project-shopplugin-nl%2F&amp;t=Een+nieuw+project%3A+Shopplugin.nl" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=Een+nieuw+project%3A+Shopplugin.nl%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D3241%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1581px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fnieuw-project-shopplugin-nl%2F&amp;title=Een+nieuw+project%3A+Shopplugin.nl&amp;notes=De+afgelopen+paar+weken+ben+ik+druk+bezig+geweest+met+een+nieuwe+%28eigen%29+project%3A+Shopplugin.nl.+In+deze+webshop+kun+je+terecht+voor+uitbreidingen+voor+je+Shopp+webshop.%0D%0A%0D%0ADe+webshop+gaat+op+1+juli%C2%A014+juli+aanstaande+online+en+de+volgende+plugins+k" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fnieuw-project-shopplugin-nl%2F&amp;title=Een+nieuw+project%3A+Shopplugin.nl&amp;bodytext=De+afgelopen+paar+weken+ben+ik+druk+bezig+geweest+met+een+nieuwe+%28eigen%29+project%3A+Shopplugin.nl.+In+deze+webshop+kun+je+terecht+voor+uitbreidingen+voor+je+Shopp+webshop.%0D%0A%0D%0ADe+webshop+gaat+op+1+juli%C2%A014+juli+aanstaande+online+en+de+volgende+plugins+k" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fnieuw-project-shopplugin-nl%2F&amp;title=Een+nieuw+project%3A+Shopplugin.nl" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1496px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/wordpress/nieuw-project-shopplugin-nl/" onclick="addBookmark(event);" title="Een nieuw project: Shopplugin.nl" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:info@illutic.nl?subject=Een nieuw project: Shopplugin.nl&amp;body=De afgelopen paar weken ben ik druk bezig geweest met een nieuwe (eigen) project: Shopplugin.nl. In deze webshop kun je terecht voor uitbreidingen voor je Shopp webshop.De webshop gaat op 1 juli 14 juli aanstaande online en de volgende plugins k - http://hiranthi.nl/wordpress/nieuw-project-shopplugin-nl/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1343px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/wordpress/nieuw-project-shopplugin-nl/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Code in posts hersteld</title><link>http://hiranthi.nl/wordpress/code-in-posts-hersteld/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=code-in-posts-hersteld</link> <comments>http://hiranthi.nl/wordpress/code-in-posts-hersteld/#comments</comments> <pubDate>Wed, 22 Jun 2011 18:16:47 +0000</pubDate> <dc:creator>hiranthi</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[code]]></category> <category><![CDATA[formatting]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[pre]]></category> <category><![CDATA[tutorials]]></category><guid
isPermaLink="false">http://hiranthi.nl/?p=3230</guid> <description><![CDATA[Een tijdje terug heb ik deze site van een losstaande WordPress installatie naar een Multisite omgeving verhuisd. Na die verhuizing kwam ik er achter dat alle code tussen de pre-tags uit was gestript en alle tutorial posts dus eigenlijk gewoon waardeloos waren. HTML behouden bij import Remkus wees me toen op een plugin &#8220;Unfiltered MU&#8220;, [...]]]></description> <content:encoded><![CDATA[Een <a
title="Website verhuisd" href="http://hiranthi.nl/overig/website-verhuisd/">tijdje terug</a> heb ik deze site van een losstaande WordPress installatie naar een Multisite omgeving verhuisd. Na die verhuizing kwam ik er achter dat alle code tussen de pre-tags uit was gestript en alle tutorial posts dus eigenlijk gewoon waardeloos waren.<span
id="more-3230"></span><h2>HTML behouden bij import</h2> <a
rel="nofollow" target="_blank" href="http://wpdimensie.nl">Remkus</a> wees me toen op een plugin &#8220;<a
rel="nofollow" target="_blank" href="http://wordpress.org/extend/plugins/unfiltered-mu/">Unfiltered MU</a>&#8220;, die zou ervoor zorgen dat alle HTML-code in de export (nog van de losstaande installatie) behouden zou blijven bij het importeren. Dus: alle oude posts verwijdert en &#8211; met die plugin geactiveerd &#8211; het export-bestand opnieuw geïmporteerd.
Resultaat: precies hetzelfde als voor de nieuwe import. De code van de tutorials was er nog steeds uit gehaald.Toen bedacht ik me dat de gebruiker waar ik alle posts aan had gekoppeld, tijdens de import, geen beheerder was. Misschien dat dat ervoor zorgde dat de code er toch uit gehaald werd (te lage rol). Dus: weer alle oude posts verwijdert, gebruiker de beheerder-rol gegeven, posts weer importeren.
Resultaat: precies hetzelfde als met een lagere rol.Toen via de Unfiltered MU pagina (op WP.org) naar de forum-berichten over die plugin gekeken. In een van de posts las ik dat er meer mensen waren die deze plugin niet werkend kregen op een WP3.1 Multisite omgeving. In een van de posts werd de <a
rel="nofollow" target="_blank" href="http://wordpress.org/extend/plugins/extend-kses/">Extend KSES</a> plugin genoemd.De Extend KSES plugin geïnstalleerd en geactiveerd, alle oude posts weer verwijdert en de posts opnieuw ingeladen. Toen bedacht ik me dat deze plugin natuurlijk opties had en ik daar niet naar had gekeken. En inderdaad: je moet eerst de te bewaren tags selecteren in de instellingen. Dus alle posts weer verwijdert, die instelling (voor de pre-tags) geactiveerd en alle posts opnieuw ingeladen.
Nu werd de class van de pre-tags ook bewaard, maar de inhoud (de daadwerkelijke code) werd er nog steeds uitgehaald.<h2>Na veel proberen eindelijk resultaat</h2> Toen via Google gezocht en daar kwam ik de <a
rel="nofollow" target="_blank" href="http://wordpress.org/extend/plugins/preserve-code-formatting/">Preserve Code Formatting</a> tegen en ik besloot om het nog een keer uit te proberen. Dus snel die plugin geïnstalleerd en geactiveerd. Voor de zekerheid de Extend KSES plugin actief gelaten (je weet immers maar nooit), alle oude posts weer verwijdert en weer opnieuw ingeladen. En ja hoor! Eindelijk de code daar waar die hoort! <img
src='http://hiranthi.nl/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />Mocht jij dus een blog moeten verhuizen waarin HTML wordt gebruikt die WP zelf normaal niet toestaat? Dan kan ik je de Preserve Code Formatting plugin van harte aanraden! <img
src='http://hiranthi.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />Nu alleen nog ff wat aan de weergave van die code doen <img
src='http://hiranthi.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><div
class="printfriendly alignleft"><a
href="http://hiranthi.nl/wordpress/code-in-posts-hersteld/?pfstyle=wp" rel="nofollow" ><img
src="//cdn.printfriendly.com/pf-print-icon.gif" alt="Print Friendly"/><span
class="printandpdf printfriendly-text"> Print <img
src="//cdn.printfriendly.com/pf-pdf-icon.gif" alt="Get a PDF version of this webpage" /> PDF </span></a></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fcode-in-posts-hersteld%2F&amp;t=Code+in+posts+hersteld" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=Code+in+posts+hersteld%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D3230%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1581px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fcode-in-posts-hersteld%2F&amp;title=Code+in+posts+hersteld&amp;notes=Een+tijdje+terug+heb+ik+deze+site+van+een+losstaande+WordPress+installatie+naar+een+Multisite+omgeving+verhuisd.+Na+die+verhuizing+kwam+ik+er+achter+dat+alle+code+tussen+de+pre-tags+uit+was+gestript+en+alle+tutorial+posts+dus+eigenlijk+gewoon+waardel" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fcode-in-posts-hersteld%2F&amp;title=Code+in+posts+hersteld&amp;bodytext=Een+tijdje+terug+heb+ik+deze+site+van+een+losstaande+WordPress+installatie+naar+een+Multisite+omgeving+verhuisd.+Na+die+verhuizing+kwam+ik+er+achter+dat+alle+code+tussen+de+pre-tags+uit+was+gestript+en+alle+tutorial+posts+dus+eigenlijk+gewoon+waardel" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fcode-in-posts-hersteld%2F&amp;title=Code+in+posts+hersteld" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1496px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/wordpress/code-in-posts-hersteld/" onclick="addBookmark(event);" title="Code in posts hersteld" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:info@illutic.nl?subject=Code in posts hersteld&amp;body=Een tijdje terug heb ik deze site van een losstaande WordPress installatie naar een Multisite omgeving verhuisd. Na die verhuizing kwam ik er achter dat alle code tussen de pre-tags uit was gestript en alle tutorial posts dus eigenlijk gewoon waardel - http://hiranthi.nl/wordpress/code-in-posts-hersteld/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1343px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/wordpress/code-in-posts-hersteld/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Elke taal een eigen sidebar</title><link>http://hiranthi.nl/tutorials/elke-taal-een-eigen-sidebar/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=elke-taal-een-eigen-sidebar</link> <comments>http://hiranthi.nl/tutorials/elke-taal-een-eigen-sidebar/#comments</comments> <pubDate>Wed, 18 May 2011 12:00:45 +0000</pubDate> <dc:creator>famire</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[sidebars]]></category> <category><![CDATA[vertalen]]></category> <category><![CDATA[WPML]]></category><guid
isPermaLink="false">http://hiranthi.nl/?p=2238</guid> <description><![CDATA[Als je WPML gebruikt in een WordPress website met sidebars, dan wil je die sidebars ook graag mee veranderen als de bezoeker een andere taal selecteert. Om dit te realiseren zul je voor elke taal een eigen sidebar aan moeten maken. Nou kun je natuurlijk de code daarvoor vast in de functions.php zetten, maar als [...]]]></description> <content:encoded><![CDATA[Als je <a
rel="nofollow" target="_blank" href="http://wpml.org/?aid=6111&#038;affiliate_key=CJoK2cWIFnRa" rel="affiliate external">WPML</a> gebruikt in een WordPress website met sidebars, dan wil je die sidebars ook graag mee veranderen als de bezoeker een andere taal selecteert. Om dit te realiseren zul je voor elke taal een eigen sidebar aan moeten maken.
Nou kun je natuurlijk de code daarvoor vast in de functions.php zetten, maar als jij (of je opdrachtgever etc.) op een later tijdstip besluit om een taal toe te voegen of te verwijderen, dan moet dit ook handmatig gebeuren.<h2>Dynamische sidebars per taal</h2> Het makkelijkst is dus om sidebars dynamisch aan te laten maken op basis van de talen die geactiveerd zijn. Dat doe je met de volgende code:<pre><pre class="brush: php; gutter: true;">&amp;amp;lt;?php

/*
 Register sidebars
*/
if ( function_exists(&#039;register_sidebars&#039;) )
{
    // WPML is active
    if ( function_exists(&#039;icl_get_languages&#039;) )
    {
        foreach ( icl_get_languages(&#039;skip_missing=0&amp;amp;orderby=name&amp;amp;order=asc&#039;) as $lang )
        {
            register_sidebar( array(
                &#039;name&#039;          =&amp;amp;gt; __(sprintf(&#039;%s Sidebar&#039;,strtoupper($lang[&#039;language_code&#039;]))),
                &#039;id&#039;            =&amp;amp;gt; &#039;sidebar-&#039;.$lang[&#039;language_code&#039;],
                &#039;before_widget&#039; =&amp;amp;gt; &#039;&amp;amp;lt;li id=&quot;%1$s&quot;&amp;amp;gt;&#039;,
                &#039;after_widget&#039;  =&amp;amp;gt; &#039;&amp;amp;lt;/li&amp;amp;gt;&#039;,
                &#039;before_title&#039;  =&amp;amp;gt; &#039;&amp;amp;lt;h4&amp;amp;gt;&#039;,
                &#039;after_title&#039;   =&amp;amp;gt; &#039;&amp;amp;lt;/h4&amp;amp;gt;&#039;
            ) );
        }
    }
    // WPML is not active
    else
    {
        register_sidebar( array(
            &#039;name&#039;          =&amp;amp;gt; __(&#039;Sidebar&#039;),
            &#039;id&#039;            =&amp;amp;gt; &#039;sidebar-default&#039;,
            &#039;before_widget&#039; =&amp;amp;gt; &#039;&amp;amp;lt;li id=&quot;%1$s&quot;&amp;amp;gt;&#039;,
            &#039;after_widget&#039;  =&amp;amp;gt; &#039;&amp;amp;lt;/li&amp;amp;gt;&#039;,
            &#039;before_title&#039;  =&amp;amp;gt; &#039;&amp;amp;lt;h4&amp;amp;gt;&#039;,
            &#039;after_title&#039;   =&amp;amp;gt; &#039;&amp;amp;lt;/h4&amp;amp;gt;&#039;
        ) );
    } // end if/else
} // end if

?&amp;amp;gt;</pre></pre> Met bovenstaande code zorg je ervoor dat er een standaard sidebar wordt aangemaakt als er geen talen actief zijn.<h2>Meerdere sidebars</h2> Gebruik je meerdere sidebars en wil je die allemaal vertalen? Dan herhaal je de code binnen in de <code>foreach</code> (de <code>register_sidebar</code> functie dus) en maak je de benodigde wijzigingen (naam &amp; ID van de sidebar).Een voorbeeldje van meerdere sidebars vertalen (een standaard sidebar en eentje voor de blogs):<pre><pre class="brush: php; gutter: true;">&amp;amp;lt;?php

/*
 Register sidebars
*/
if ( function_exists(&#039;register_sidebars&#039;) )
{
    // WPML is active
    if ( function_exists(&#039;icl_get_languages&#039;) )
    {
        foreach ( icl_get_languages(&#039;skip_missing=0&amp;amp;orderby=name&amp;amp;order=asc&#039;) as $lang )
        {
            register_sidebar( array(
                &#039;name&#039;          =&amp;amp;gt; __(sprintf(&#039;%s Sidebar | Default&#039;,strtoupper($lang[&#039;language_code&#039;]))),
                &#039;id&#039;            =&amp;amp;gt; &#039;sidebar-default-&#039;.$lang[&#039;language_code&#039;],
                &#039;before_widget&#039; =&amp;amp;gt; &#039;&amp;amp;lt;li id=&quot;%1$s&quot;&amp;amp;gt;&#039;,
                &#039;after_widget&#039;  =&amp;amp;gt; &#039;&amp;amp;lt;/li&amp;amp;gt;&#039;,
                &#039;before_title&#039;  =&amp;amp;gt; &#039;&amp;amp;lt;h4&amp;amp;gt;&#039;,
                &#039;after_title&#039;   =&amp;amp;gt; &#039;&amp;amp;lt;/h4&amp;amp;gt;&#039;
            ) );

            register_sidebar( array(
                &#039;name&#039;          =&amp;amp;gt; __(sprintf(&#039;%s Sidebar | Blog&#039;,strtoupper($lang[&#039;language_code&#039;]))),
                &#039;id&#039;            =&amp;amp;gt; &#039;sidebar-blog-&#039;.$lang[&#039;language_code&#039;],
                &#039;before_widget&#039; =&amp;amp;gt; &#039;&amp;amp;lt;li id=&quot;%1$s&quot;&amp;amp;gt;&#039;,
                &#039;after_widget&#039;  =&amp;amp;gt; &#039;&amp;amp;lt;/li&amp;amp;gt;&#039;,
                &#039;before_title&#039;  =&amp;amp;gt; &#039;&amp;amp;lt;h4&amp;amp;gt;&#039;,
                &#039;after_title&#039;   =&amp;amp;gt; &#039;&amp;amp;lt;/h4&amp;amp;gt;&#039;
            ) );
        }
    }
    // WPML is not active
    else
    {
        register_sidebar( array(
            &#039;name&#039;          =&amp;amp;gt; __(&#039;Sidebar | Default&#039;),
            &#039;id&#039;            =&amp;amp;gt; &#039;sidebar-default&#039;,
            &#039;before_widget&#039; =&amp;amp;gt; &#039;&amp;amp;lt;li id=&quot;%1$s&quot;&amp;amp;gt;&#039;,
            &#039;after_widget&#039;  =&amp;amp;gt; &#039;&amp;amp;lt;/li&amp;amp;gt;&#039;,
            &#039;before_title&#039;  =&amp;amp;gt; &#039;&amp;amp;lt;h4&amp;amp;gt;&#039;,
            &#039;after_title&#039;   =&amp;amp;gt; &#039;&amp;amp;lt;/h4&amp;amp;gt;&#039;
        ) );

        register_sidebar( array(
            &#039;name&#039;          =&amp;amp;gt; __(&#039;Sidebar | Blog&#039;),
            &#039;id&#039;            =&amp;amp;gt; &#039;sidebar-blog&#039;,
            &#039;before_widget&#039; =&amp;amp;gt; &#039;&amp;amp;lt;li id=&quot;%1$s&quot;&amp;amp;gt;&#039;,
            &#039;after_widget&#039;  =&amp;amp;gt; &#039;&amp;amp;lt;/li&amp;amp;gt;&#039;,
            &#039;before_title&#039;  =&amp;amp;gt; &#039;&amp;amp;lt;h4&amp;amp;gt;&#039;,
            &#039;after_title&#039;   =&amp;amp;gt; &#039;&amp;amp;lt;/h4&amp;amp;gt;&#039;
        ) );
    } // end if/else
} // end if

?&amp;amp;gt;</pre></pre><h2>Sidebar laden</h2> Nou heb je natuurlijk niet zo heel veel aan vertaalde sidebars als je niet ook de juiste sidebar kan laden op de site. Open je sidebar.php en vervang de huidige code om de dynamische sidebar op te halen met de volgende code:<pre><pre class="brush: php; gutter: true;">&amp;amp;lt;?php

if ( function_exists(&#039;dynamic_sidebar&#039;) )
{
    // WPML is active
    if ( function_exists(&#039;icl_get_languages&#039;) )
    {
        // only load sidebar if it is active
        if ( is_active_sidebar(&#039;sidebar-&#039;.ICL_LANGUAGE_CODE) ) dynamic_sidebar(&#039;sidebar-&#039;.ICL_LANGUAGE_CODE);
    }
    // WPML is not active
    else
    {
        dynamic_sidebar(&#039;sidebar-default&#039;);
    }
}

?&amp;amp;gt;</pre></pre><div
class="printfriendly alignleft"><a
href="http://hiranthi.nl/tutorials/elke-taal-een-eigen-sidebar/?pfstyle=wp" rel="nofollow" ><img
src="//cdn.printfriendly.com/pf-print-icon.gif" alt="Print Friendly"/><span
class="printandpdf printfriendly-text"> Print <img
src="//cdn.printfriendly.com/pf-pdf-icon.gif" alt="Get a PDF version of this webpage" /> PDF </span></a></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Felke-taal-een-eigen-sidebar%2F&amp;t=Elke+taal+een+eigen+sidebar" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=Elke+taal+een+eigen+sidebar%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D2238%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1581px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Felke-taal-een-eigen-sidebar%2F&amp;title=Elke+taal+een+eigen+sidebar&amp;notes=Als+je+WPML+gebruikt+in+een+WordPress+website+met+sidebars%2C+dan+wil+je+die+sidebars+ook+graag+mee+veranderen+als+de+bezoeker+een+andere+taal+selecteert.+Om+dit+te+realiseren+zul+je+voor+elke+taal+een+eigen+sidebar+aan+moeten+maken.%0D%0ANou+kun+je+natuur" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Felke-taal-een-eigen-sidebar%2F&amp;title=Elke+taal+een+eigen+sidebar&amp;bodytext=Als+je+WPML+gebruikt+in+een+WordPress+website+met+sidebars%2C+dan+wil+je+die+sidebars+ook+graag+mee+veranderen+als+de+bezoeker+een+andere+taal+selecteert.+Om+dit+te+realiseren+zul+je+voor+elke+taal+een+eigen+sidebar+aan+moeten+maken.%0D%0ANou+kun+je+natuur" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Felke-taal-een-eigen-sidebar%2F&amp;title=Elke+taal+een+eigen+sidebar" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1496px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/tutorials/elke-taal-een-eigen-sidebar/" onclick="addBookmark(event);" title="Elke taal een eigen sidebar" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:info@illutic.nl?subject=Elke taal een eigen sidebar&amp;body=Als je WPML gebruikt in een WordPress website met sidebars, dan wil je die sidebars ook graag mee veranderen als de bezoeker een andere taal selecteert. Om dit te realiseren zul je voor elke taal een eigen sidebar aan moeten maken.
Nou kun je natuur - http://hiranthi.nl/tutorials/elke-taal-een-eigen-sidebar/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1343px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/tutorials/elke-taal-een-eigen-sidebar/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic (User agent is rejected)
Content Delivery Network via Amazon Web Services: S3: cdn.hiranthi.nl.s3.amazonaws.com (user agent is rejected)

Served from: hiranthi.nl @ 2012-02-05 22:48:46 -->
