<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: WordPress plugin template</title>
	<atom:link href="http://soderlind.no/archives/2010/03/04/wordpress-plugin-template/feed/" rel="self" type="application/rss+xml" />
	<link>http://soderlind.no/archives/2010/03/04/wordpress-plugin-template/</link>
	<description>I code for fun</description>
	<lastBuildDate>Thu, 10 May 2012 09:26:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Alexandre P</title>
		<link>http://soderlind.no/archives/2010/03/04/wordpress-plugin-template/#comment-209039</link>
		<dc:creator>Alexandre P</dc:creator>
		<pubDate>Thu, 10 May 2012 09:26:20 +0000</pubDate>
		<guid isPermaLink="false">http://soderlind.no/?p=873#comment-209039</guid>
		<description>Great, thanks a lot!

Another idea: alongside the widget and the shortcode, maybe add the basic function that enables template tags ?

Super useful work you&#039;ve done.</description>
		<content:encoded><![CDATA[<p>Great, thanks a lot!</p>
<p>Another idea: alongside the widget and the shortcode, maybe add the basic function that enables template tags ?</p>
<p>Super useful work you&#8217;ve done.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PerS</title>
		<link>http://soderlind.no/archives/2010/03/04/wordpress-plugin-template/#comment-209038</link>
		<dc:creator>PerS</dc:creator>
		<pubDate>Thu, 10 May 2012 09:01:08 +0000</pubDate>
		<guid isPermaLink="false">http://soderlind.no/?p=873#comment-209038</guid>
		<description>Thank you Alexandre for pointing out this bug. I&#039;ve updated the code generator and the article above with your suggestion:
[php]

$mo = plugin_dir_path(__FILE__) . &#039;languages/&#039; . $this-&gt;localizationDomain . &#039;-&#039; . $locale . &#039;.mo&#039;;

[/php]</description>
		<content:encoded><![CDATA[<p>Thank you Alexandre for pointing out this bug. I&#8217;ve updated the code generator and the article above with your suggestion:</p>
<pre class="brush: php; title: ; notranslate">

$mo = plugin_dir_path(__FILE__) . 'languages/' . $this-&gt;localizationDomain . '-' . $locale . '.mo';
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexandre P</title>
		<link>http://soderlind.no/archives/2010/03/04/wordpress-plugin-template/#comment-209037</link>
		<dc:creator>Alexandre P</dc:creator>
		<pubDate>Thu, 10 May 2012 06:07:33 +0000</pubDate>
		<guid isPermaLink="false">http://soderlind.no/?p=873#comment-209037</guid>
		<description>Is your plugin in /wp-content/plugins/NN or do you use a custom path?
&gt; Yes.

Do you have the error log ? That is, where is my routine pointing compared to where the plugin really is ?
&gt; Unfortunately not. It does not produce an error apart from the fact that the .mo file was not loaded.</description>
		<content:encoded><![CDATA[<p>Is your plugin in /wp-content/plugins/NN or do you use a custom path?<br />
&gt; Yes.</p>
<p>Do you have the error log ? That is, where is my routine pointing compared to where the plugin really is ?<br />
&gt; Unfortunately not. It does not produce an error apart from the fact that the .mo file was not loaded.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PerS</title>
		<link>http://soderlind.no/archives/2010/03/04/wordpress-plugin-template/#comment-209035</link>
		<dc:creator>PerS</dc:creator>
		<pubDate>Wed, 09 May 2012 21:36:18 +0000</pubDate>
		<guid isPermaLink="false">http://soderlind.no/?p=873#comment-209035</guid>
		<description>Interesting. Is your plugin in /wp-content/plugins/NN or do you use a custom path?

Do you have the error log ? That is, where is my routine pointing compared to where the plugin really is ?

I really like to know so I can understand why this bug happens :)</description>
		<content:encoded><![CDATA[<p>Interesting. Is your plugin in /wp-content/plugins/NN or do you use a custom path?</p>
<p>Do you have the error log ? That is, where is my routine pointing compared to where the plugin really is ?</p>
<p>I really like to know so I can understand why this bug happens <img src='http://soderlind.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexandre P</title>
		<link>http://soderlind.no/archives/2010/03/04/wordpress-plugin-template/#comment-209034</link>
		<dc:creator>Alexandre P</dc:creator>
		<pubDate>Wed, 09 May 2012 21:09:19 +0000</pubDate>
		<guid isPermaLink="false">http://soderlind.no/?p=873#comment-209034</guid>
		<description>Well, that bit of code generated by your script did not work for me and that is how i fixed it. 

Another issue comes up with the translation. I put my languages files in a &quot;languages&quot; folder inside the plugin&#039;s folder.
This is how i managed to have it work:


$locale = get_locale();
$mo=  plugin_dir_path(__FILE__).&#039;languages/&#039;.$this-&gt;localizationDomain . &quot;-&quot;.$locale.&quot;.mo&quot;;
load_textdomain($this-&gt;localizationDomain, $mo);



so: not the plugin_url, but the plugin_dir_path.

Thank you!
a.</description>
		<content:encoded><![CDATA[<p>Well, that bit of code generated by your script did not work for me and that is how i fixed it. </p>
<p>Another issue comes up with the translation. I put my languages files in a &#8220;languages&#8221; folder inside the plugin&#8217;s folder.<br />
This is how i managed to have it work:</p>
<p>$locale = get_locale();<br />
$mo=  plugin_dir_path(__FILE__).&#8217;languages/&#8217;.$this-&gt;localizationDomain . &#8220;-&#8221;.$locale.&#8221;.mo&#8221;;<br />
load_textdomain($this-&gt;localizationDomain, $mo);</p>
<p>so: not the plugin_url, but the plugin_dir_path.</p>
<p>Thank you!<br />
a.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PerS</title>
		<link>http://soderlind.no/archives/2010/03/04/wordpress-plugin-template/#comment-209033</link>
		<dc:creator>PerS</dc:creator>
		<pubDate>Wed, 09 May 2012 20:27:41 +0000</pubDate>
		<guid isPermaLink="false">http://soderlind.no/?p=873#comment-209033</guid>
		<description>Nah .. this is what plugins_url() &lt;a href=&quot;http://core.trac.wordpress.org/browser/tags/3.3.2/wp-includes/link-template.php#L2016&quot; rel=&quot;nofollow&quot;&gt;does&lt;/a&gt;, and it also finds the url path when a plugin is in WPMU_PLUGIN_URL. 

I&#039;m a big fan of using core WordPress functions when possible :)</description>
		<content:encoded><![CDATA[<p>Nah .. this is what plugins_url() <a href="http://core.trac.wordpress.org/browser/tags/3.3.2/wp-includes/link-template.php#L2016" rel="nofollow">does</a>, and it also finds the url path when a plugin is in WPMU_PLUGIN_URL. </p>
<p>I&#8217;m a big fan of using core WordPress functions when possible <img src='http://soderlind.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexandre P</title>
		<link>http://soderlind.no/archives/2010/03/04/wordpress-plugin-template/#comment-209030</link>
		<dc:creator>Alexandre P</dc:creator>
		<pubDate>Wed, 09 May 2012 18:17:07 +0000</pubDate>
		<guid isPermaLink="false">http://soderlind.no/?p=873#comment-209030</guid>
		<description>hi, and thanks!

Slight improvement:
[php]
$this-&gt;pluginPath   =  dirname(__FILE__);
$this-&gt;pluginUrl   =  WP_PLUGIN_URL . &#039;/&#039;.basename($this-&gt;pluginPath);
[/php]`</description>
		<content:encoded><![CDATA[<p>hi, and thanks!</p>
<p>Slight improvement:</p>
<pre class="brush: php; title: ; notranslate">
$this-&gt;pluginPath   =  dirname(__FILE__);
$this-&gt;pluginUrl   =  WP_PLUGIN_URL . '/'.basename($this-&gt;pluginPath);
</pre>
<p>`</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrea</title>
		<link>http://soderlind.no/archives/2010/03/04/wordpress-plugin-template/#comment-208917</link>
		<dc:creator>Andrea</dc:creator>
		<pubDate>Tue, 10 Apr 2012 12:48:55 +0000</pubDate>
		<guid isPermaLink="false">http://soderlind.no/?p=873#comment-208917</guid>
		<description>Oops... sorry PerS :)

Yes, Pressography is gone and I wonder why: it was quite useful.

About where to call external actions, I&#039;ve found myself just a couple of minutes ago: thank you!

Anyway I&#039;ve ended up using the online tool and customized/commented for my needs.

Thanks again for this tool!</description>
		<content:encoded><![CDATA[<p>Oops&#8230; sorry PerS <img src='http://soderlind.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Yes, Pressography is gone and I wonder why: it was quite useful.</p>
<p>About where to call external actions, I&#8217;ve found myself just a couple of minutes ago: thank you!</p>
<p>Anyway I&#8217;ve ended up using the online tool and customized/commented for my needs.</p>
<p>Thanks again for this tool!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PerS</title>
		<link>http://soderlind.no/archives/2010/03/04/wordpress-plugin-template/#comment-208916</link>
		<dc:creator>PerS</dc:creator>
		<pubDate>Tue, 10 Apr 2012 12:44:38 +0000</pubDate>
		<guid isPermaLink="false">http://soderlind.no/?p=873#comment-208916</guid>
		<description>I guess you mean PerS and not &lt;del datetime=&quot;2012-04-10T12:33:53+00:00&quot;&gt;Eric&lt;/del&gt; ;)

The code generated is &lt;a href=&quot;http://soderlind.no/archives/2010/03/04/wordpress-plugin-template/&quot; rel=&quot;nofollow&quot;&gt;more or less&lt;/a&gt; the same as the empty template you could get from Pressography (didn&#039;t know the page is gone). You&#039;ll find reference to where to call external actions etc (in __construct).</description>
		<content:encoded><![CDATA[<p>I guess you mean PerS and not <del datetime="2012-04-10T12:33:53+00:00">Eric</del> <img src='http://soderlind.no/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>The code generated is <a href="http://soderlind.no/archives/2010/03/04/wordpress-plugin-template/" rel="nofollow">more or less</a> the same as the empty template you could get from Pressography (didn&#8217;t know the page is gone). You&#8217;ll find reference to where to call external actions etc (in __construct).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrea</title>
		<link>http://soderlind.no/archives/2010/03/04/wordpress-plugin-template/#comment-208915</link>
		<dc:creator>Andrea</dc:creator>
		<pubDate>Tue, 10 Apr 2012 10:19:36 +0000</pubDate>
		<guid isPermaLink="false">http://soderlind.no/?p=873#comment-208915</guid>
		<description>Eric,

thank you for your tool!

I was getting mad trying to retrieve the Pressography template and eventually I&#039;ve realized that the side is gone :(

I was wondering if you could also provide an empty template (Like Pressography used to do) that we can customize without the online tool

Or instead, add the right places where to call, from the plugin, external action and filters (e.g.: WP, other theme&#039;s or plugins hooks).

Thanks.</description>
		<content:encoded><![CDATA[<p>Eric,</p>
<p>thank you for your tool!</p>
<p>I was getting mad trying to retrieve the Pressography template and eventually I&#8217;ve realized that the side is gone <img src='http://soderlind.no/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>I was wondering if you could also provide an empty template (Like Pressography used to do) that we can customize without the online tool</p>
<p>Or instead, add the right places where to call, from the plugin, external action and filters (e.g.: WP, other theme&#8217;s or plugins hooks).</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

