<?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>WhyPad &#187; WordPress Plugins</title>
	<atom:link href="http://www.whypad.com/tag/wordpress-plugins/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.whypad.com</link>
	<description>Tips, tricks, and hacks for life and tech...</description>
	<lastBuildDate>Tue, 06 Jul 2010 15:21:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>WordPress: Add Your Plugin&#8217;s Settings Link to Admin Plugins Page</title>
		<link>http://www.whypad.com/posts/wordpress-add-settings-link-to-plugins-page/785/</link>
		<comments>http://www.whypad.com/posts/wordpress-add-settings-link-to-plugins-page/785/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 04:20:28 +0000</pubDate>
		<dc:creator>Byron Bennett</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[web dev]]></category>

		<guid isPermaLink="false">http://www.whypad.com/?p=785</guid>
		<description><![CDATA[Hello, WordPress plugin authors!  I&#8217;ve been envious of that little &#8220;Settings&#8221; link on the Plugins page in the Admin on several of the plugins I use on my blogs.  I wanted one for my own PhotoSmash plugin! My first stop, Google, yielded no fruit, but persistence paid off.  So, thanks to GD-Star Ratings and Shadowbox-JS, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.whypad.com/posts/wordpress-add-settings-link-to-plugins-page/785/"><img class="alignleft size-thumbnail wp-image-715" title="wp" src="http://www.whypad.com/wp-content/uploads/wp-150x150.png" alt="" width="150" height="150" /></a>Hello, WordPress plugin authors!  I&#8217;ve been envious of that little &#8220;Settings&#8221; link on the Plugins page in the Admin on several of the plugins I use on my blogs.  I wanted one for my own PhotoSmash plugin!</p>
<p><span id="more-785"></span></p>
<p>My first stop, Google, yielded no fruit, but persistence paid off.  So, thanks to GD-Star Ratings and Shadowbox-JS, I finally figured it out!</p>
<p>And now, for your coding pleasure, here&#8217;s the step-by-step:</p>
<h2>Steps for Showing Settings Link</h2>
<p>1. Add a function that injects your link into the links array.  The array_unshift adds your link to the front of the array.  The $this_plugin wizardry is determining whether this instance of the filter is being called for your plugin or another one.  You only want to add the link to your plugin <img src='http://www.whypad.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> .  Here&#8217;s the code:</p>
<pre class="brush: php;">

/**
 * Add Settings link to plugins - code from GD Star Ratings
 */
 function add_settings_link($links, $file) {
static $this_plugin;
if (!$this_plugin) $this_plugin = plugin_basename(__FILE__);

if ($file == $this_plugin){
$settings_link = '&lt;a href=&quot;admin.php?page=bwb-photosmash.php&quot;&gt;'.__(&quot;Settings&quot;, &quot;photosmash-galleries&quot;).'&lt;/a&gt;';
 array_unshift($links, $settings_link);
}
return $links;
 }
</pre>
<p>Of course, you&#8217;ll need to change the page link as appropriate.  The easiest way to get that is to go to your plugin&#8217;s settings page and copy it from the URL.  You want everything after the last forward slash &#8220;/&#8221;. Screenshot!</p>
<p><a href="http://www.whypad.com/wp-content/uploads/plugin-url.png"><img class="aligncenter size-full wp-image-786" title="plugin-url" src="http://www.whypad.com/wp-content/uploads/plugin-url.png" alt="" width="480" height="51" /></a></p>
<p>2. Add a filter for the plugin_action_links filter. When the Plugins page is displayed in Admin, this filter will pass your function the links array.  Here&#8217;s the code:</p>
<pre class="brush: php;">

add_filter('plugin_action_links', array(&amp;$bwbPS, 'add_settings_link'), 10, 2 );
</pre>
<p>Note this part:  array(&amp;$bwbPS, &#8216;add_settings_link&#8217;)</p>
<p>If you&#8217;re putting your function inside a class, you need to use an array as a parameter, with your plugin&#8217;s instance variable&#8230;mine is $bwbPS.  The &#8220;&amp;&#8221; in front of the instance variable tells it to use the instance by reference (which I believe is automatic for objects anyway, but just do it <img src='http://www.whypad.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  ).  The part after the &#8216;,&#8217; is the function name we&#8217;re calling.  You can name it whatever you like.</p>
<p>If you&#8217;re not placing your function inside a class, then you&#8217;re code will look like:</p>
<pre class="brush: php;">

add_filter('plugin_action_links', 'add_settings_link', 10, 2 );
</pre>
<p>But you&#8217;re going to want to make sure your function name is totally unique in the whole WordPress world.  Otherwise, POW!  Namespace collision.</p>
<p>Hope that helps!  It&#8217;s easy, and it&#8217;s so very helpful to have that link there.  I just love a plugin that has it because I don&#8217;t have to search for it in the sidebar, and secondly, I figure that the coder must know what he/she&#8217;s doing <img src='http://www.whypad.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Cheers,</p>
<p>Byron</p>
<img src="http://www.whypad.com/?ak_action=api_record_view&id=785&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.whypad.com/posts/wordpress-add-settings-link-to-plugins-page/785/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PhotoSmash Galleries Plugin turns 1,000</title>
		<link>http://www.whypad.com/posts/photosmash-galleries-plugin-turns-1000/598/</link>
		<comments>http://www.whypad.com/posts/photosmash-galleries-plugin-turns-1000/598/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 04:15:23 +0000</pubDate>
		<dc:creator>Byron Bennett</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://www.whypad.com/?p=598</guid>
		<description><![CDATA[Even as I sit here trying to fix a thorny problem with PhotoSmash, I popped by the plugin&#8217;s page and noticed that it had turned 1,000 downloads on the nose. Let&#8217;s hope the next 1,000 downloads have it a bit easier. PhotoSmash is a WordPress photo gallery plugin lets you let your visitors upload images [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.whypad.com/wp-content/uploads/picture-5.png"><img class="alignleft size-medium wp-image-599" title="picture-5" src="http://www.whypad.com/wp-content/uploads/picture-5-300x223.png" alt="picture-5" width="300" height="223" /></a>Even as I sit here trying to fix a thorny problem with PhotoSmash, I popped by the plugin&#8217;s page and noticed that it had turned 1,000 downloads on the nose.  Let&#8217;s hope the next 1,000 downloads have it a bit easier.  PhotoSmash is a WordPress photo gallery plugin lets you let your visitors upload images into galleries right inside your posts.  It&#8217;s sort of a unique feature amongst galleries today, but I&#8217;m sure there will be some other excellent implementations on the same theme down the road.  Anyway, thanks to all you who&#8217;ve tried PhotoSmash.  You&#8217;re helping me make it better.  </p>
<p><span id="more-598"></span></p>
<p>Cheers to you!</p>
<p>Byron</p>
<img src="http://www.whypad.com/?ak_action=api_record_view&id=598&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.whypad.com/posts/photosmash-galleries-plugin-turns-1000/598/feed/</wfw:commentRss>
		<slash:comments>42</slash:comments>
		</item>
		<item>
		<title>How to Host a Plugin on WordPress &#8211; Video pt. 1</title>
		<link>http://www.whypad.com/posts/host-plugin-on-wordpress-video-tuts/536/</link>
		<comments>http://www.whypad.com/posts/host-plugin-on-wordpress-video-tuts/536/#comments</comments>
		<pubDate>Sat, 24 Jan 2009 06:49:18 +0000</pubDate>
		<dc:creator>Byron Bennett</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Aptana]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://www.whypad.com/?p=536</guid>
		<description><![CDATA[The first time I wrote a WordPress plugin, I thought, &#8220;Cool, I&#8217;m going to host this puppy on the WordPress website and I&#8217;ll get tons of traffic.&#8221;  Then I got to the front door and they started talking about SVN.  Then I took a look at what SVN (aka Subversion) was all about, and that [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-537" title="wp-plugin" src="http://www.whypad.com/wp-content/uploads/wp-plugin.gif" alt="wp-plugin" width="150" height="150" />The first time I wrote a WordPress plugin, I thought, &#8220;Cool, I&#8217;m going to host this puppy on the WordPress website and I&#8217;ll get tons of traffic.&#8221;  Then I got to the front door and they started talking about <a href="http://subversion.tigris.org/">SVN</a>.  Then I took a look at what SVN (aka Subversion) was all about, and that was the end of that.  But then, I wrote a more serious plugin, <a href="http://www.whypad.com/posts/photosmash-galleries-wordpress-plugin-released/507/">PhotoSmash Galleries</a>, which lets your users upload photos to galleries on your blog, that you can moderate later.  And I knew I had to climb the learning curve and get PhotoSmash hosted.</p>
<p><span id="more-536"></span></p>
<p>I like to think of myself as a geek/nerd, but dipping into SVN, I quickly realized that there are several standard deviations of geekdom between me (what I now understand to be Geek Light) and the people who speak SVN (Geek Core).  So for those of you who are geeky enough to write plugins for WordPress, but do not fall into Geek Core, I offer you this video series, holding your hand, like I wish someone had done for me, through the whole process&#8230;well, after you&#8217;ve got your plugin written anyway.</p>
<h2>3 Easy Steps to Hosting a Plugin on WordPress</h2>
<p>There are 3 easy steps for hosting your plugin on WordPress.  At least they should be easy after you watch these videos.</p>
<h3>1) Request a Subversion (SVN) Repository for Your Plugin at WordPress</h3>
<p>This step basically asks WordPress for a place to host your plugin.  Here&#8217;s the video:</p>
<p><object width='425' height='344' type='application/x-shockwave-flash' data='http://www.screentoaster.com/swf/STPlayer.swf'><param name='movie' value='http://www.screentoaster.com/swf/STPlayer.swf'/><param name='allowFullScreen' value='true'/><param name='flashvars' value='video=stUE5QQEZIR1pdR1pVWVlaUl9U'/></object>
<div style='width: 425px; text-align: right;'><a href='http://www.screentoaster.com/'>Free online screencasting tool</a></div>
<p>After you&#8217;re done with that, it may take several hours (or even longer) to get your email back from WordPress.  Somebody has to review your request and then set up your repository, so get on with life and come back and check your email in the morning.</p>
<p>After you get your Repository notification email, your now ready for <strong>step 2</strong>.  Check out <a href="http://www.whypad.com/posts/hosting-your-wp-plugin-with-aptana-and-subclipse-video-pt-2/545/">video #2!</a><br />
Cheers!<br />
Byron</p>
<img src="http://www.whypad.com/?ak_action=api_record_view&id=536&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.whypad.com/posts/host-plugin-on-wordpress-video-tuts/536/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
