<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Advanced widgets. Widgets with controls.</title>
	<atom:link href="http://wpbits.wordpress.com/2007/06/17/advanced-widgets-widgets-with-controls/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpbits.wordpress.com/2007/06/17/advanced-widgets-widgets-with-controls/</link>
	<description>Hacking WordPress. Keeping the bits together.</description>
	<lastBuildDate>Wed, 23 Dec 2009 20:12:27 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Truong Trong Hai</title>
		<link>http://wpbits.wordpress.com/2007/06/17/advanced-widgets-widgets-with-controls/#comment-2999</link>
		<dc:creator>Truong Trong Hai</dc:creator>
		<pubDate>Mon, 02 Feb 2009 10:59:52 +0000</pubDate>
		<guid isPermaLink="false">http://wpbits.wordpress.com/2007/06/17/advanced-widgets-widgets-with-controls/#comment-2999</guid>
		<description>I love this example.</description>
		<content:encoded><![CDATA[<p>I love this example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cleaning up after the WordPress widget party &#171; WordPress Bits</title>
		<link>http://wpbits.wordpress.com/2007/06/17/advanced-widgets-widgets-with-controls/#comment-369</link>
		<dc:creator>Cleaning up after the WordPress widget party &#171; WordPress Bits</dc:creator>
		<pubDate>Sat, 11 Aug 2007 19:27:09 +0000</pubDate>
		<guid isPermaLink="false">http://wpbits.wordpress.com/2007/06/17/advanced-widgets-widgets-with-controls/#comment-369</guid>
		<description>[...] WordPress customiza...Leonid Mamchenkov on Automating WordPress customiza...Matthew Smith on Advanced widgets. Widgets with...Stephen Rider on Automating WordPress customiza...Aaron on Automating WordPress customiza...Jonathan [...]</description>
		<content:encoded><![CDATA[<p>[...] WordPress customiza&#8230;Leonid Mamchenkov on Automating WordPress customiza&#8230;Matthew Smith on Advanced widgets. Widgets with&#8230;Stephen Rider on Automating WordPress customiza&#8230;Aaron on Automating WordPress customiza&#8230;Jonathan [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leonid Mamchenkov</title>
		<link>http://wpbits.wordpress.com/2007/06/17/advanced-widgets-widgets-with-controls/#comment-352</link>
		<dc:creator>Leonid Mamchenkov</dc:creator>
		<pubDate>Fri, 10 Aug 2007 20:18:01 +0000</pubDate>
		<guid isPermaLink="false">http://wpbits.wordpress.com/2007/06/17/advanced-widgets-widgets-with-controls/#comment-352</guid>
		<description>Matthew,

nicely going theme you&#039;ve got there.  I really like the idea with colored boxes and the bottom part with links and stuff.  :)

Regarding your question... as logical as it is, I never actually thought of it, so I&#039;m not sure at the moment.  Thanks for asking!  I&#039;ll check it out and either reply here (if it&#039;s something small), or write up a new post (if it makes sense).</description>
		<content:encoded><![CDATA[<p>Matthew,</p>
<p>nicely going theme you&#8217;ve got there.  I really like the idea with colored boxes and the bottom part with links and stuff.  :)</p>
<p>Regarding your question&#8230; as logical as it is, I never actually thought of it, so I&#8217;m not sure at the moment.  Thanks for asking!  I&#8217;ll check it out and either reply here (if it&#8217;s something small), or write up a new post (if it makes sense).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Smith</title>
		<link>http://wpbits.wordpress.com/2007/06/17/advanced-widgets-widgets-with-controls/#comment-348</link>
		<dc:creator>Matthew Smith</dc:creator>
		<pubDate>Fri, 10 Aug 2007 19:53:02 +0000</pubDate>
		<guid isPermaLink="false">http://wpbits.wordpress.com/2007/06/17/advanced-widgets-widgets-with-controls/#comment-348</guid>
		<description>Your guides on writing / using widgets are excellent! I have used them to somewhat &quot;widgetize&quot; a theme that I&#039;m working on (based on cutline, &lt;a href=&quot;http://jeep.digivation.net/&quot; rel=&quot;nofollow&quot;&gt;see here (development area)&lt;/a&gt; and I was wondering if the widget controls need to perform any &quot;cleanup.&quot;

In other words, do the widgets leave settings in the database upon removal? Should these be cleaned up using a hook like &lt;code&gt;unregister_widget()&lt;/code&gt; (if it exists, I haven&#039;t looked yet)? Or does Wordpress do this automatically?

Just want to make things nice and neat...</description>
		<content:encoded><![CDATA[<p>Your guides on writing / using widgets are excellent! I have used them to somewhat &#8220;widgetize&#8221; a theme that I&#8217;m working on (based on cutline, <a href="http://jeep.digivation.net/" rel="nofollow">see here (development area)</a> and I was wondering if the widget controls need to perform any &#8220;cleanup.&#8221;</p>
<p>In other words, do the widgets leave settings in the database upon removal? Should these be cleaned up using a hook like <code>unregister_widget()</code> (if it exists, I haven&#8217;t looked yet)? Or does WordPress do this automatically?</p>
<p>Just want to make things nice and neat&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leonid Mamchenkov</title>
		<link>http://wpbits.wordpress.com/2007/06/17/advanced-widgets-widgets-with-controls/#comment-287</link>
		<dc:creator>Leonid Mamchenkov</dc:creator>
		<pubDate>Thu, 09 Aug 2007 06:54:29 +0000</pubDate>
		<guid isPermaLink="false">http://wpbits.wordpress.com/2007/06/17/advanced-widgets-widgets-with-controls/#comment-287</guid>
		<description>Ryan,

making widget into a plugin is not any more complicated.  All you have to do is put a file with some comments at the top to the plugin folder.  The minimum comment, I think, should be the &quot;Plugin Name&quot;, but you can easily add more.

Once you have the comment with meta information about your plugin at the top, and WordPress recognizes it as a plugin, you can put your widget stuff - register_sidebar_widget(), etc.</description>
		<content:encoded><![CDATA[<p>Ryan,</p>
<p>making widget into a plugin is not any more complicated.  All you have to do is put a file with some comments at the top to the plugin folder.  The minimum comment, I think, should be the &#8220;Plugin Name&#8221;, but you can easily add more.</p>
<p>Once you have the comment with meta information about your plugin at the top, and WordPress recognizes it as a plugin, you can put your widget stuff &#8211; register_sidebar_widget(), etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Fox</title>
		<link>http://wpbits.wordpress.com/2007/06/17/advanced-widgets-widgets-with-controls/#comment-283</link>
		<dc:creator>Ryan Fox</dc:creator>
		<pubDate>Thu, 09 Aug 2007 04:24:10 +0000</pubDate>
		<guid isPermaLink="false">http://wpbits.wordpress.com/2007/06/17/advanced-widgets-widgets-with-controls/#comment-283</guid>
		<description>What about registering a widget as a plugin? I&#039;ve downloaded a few widgets that I had to add as plugins, rather than registering them with the theme. To me, this seems preferable since they would also be very easy to move between themes and you could easily enable/disable them.

Now that you&#039;ve shown that widgets are crazy-simple to make, I might just have a go at it myself.

Thanks!</description>
		<content:encoded><![CDATA[<p>What about registering a widget as a plugin? I&#8217;ve downloaded a few widgets that I had to add as plugins, rather than registering them with the theme. To me, this seems preferable since they would also be very easy to move between themes and you could easily enable/disable them.</p>
<p>Now that you&#8217;ve shown that widgets are crazy-simple to make, I might just have a go at it myself.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leonid Mamchenkov</title>
		<link>http://wpbits.wordpress.com/2007/06/17/advanced-widgets-widgets-with-controls/#comment-270</link>
		<dc:creator>Leonid Mamchenkov</dc:creator>
		<pubDate>Wed, 08 Aug 2007 19:56:10 +0000</pubDate>
		<guid isPermaLink="false">http://wpbits.wordpress.com/2007/06/17/advanced-widgets-widgets-with-controls/#comment-270</guid>
		<description>Shawn,

guilty as charged. :)

Yes, indeed, there is more.  I&#039;m working on a new post for widget series.  Multiple instances with their own options each.  It should come out sometime before WordPress 2.3. :)</description>
		<content:encoded><![CDATA[<p>Shawn,</p>
<p>guilty as charged. :)</p>
<p>Yes, indeed, there is more.  I&#8217;m working on a new post for widget series.  Multiple instances with their own options each.  It should come out sometime before WordPress 2.3. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shawn</title>
		<link>http://wpbits.wordpress.com/2007/06/17/advanced-widgets-widgets-with-controls/#comment-269</link>
		<dc:creator>Shawn</dc:creator>
		<pubDate>Wed, 08 Aug 2007 18:50:31 +0000</pubDate>
		<guid isPermaLink="false">http://wpbits.wordpress.com/2007/06/17/advanced-widgets-widgets-with-controls/#comment-269</guid>
		<description>Not &lt;em&gt;all&lt;/em&gt; I need to know!

Can I have multiple instances of a widget? can each use a separate &quot;argument&quot;?

This would probably be great for configuring different banner ad blocks for openAds (phpAdsNew) within the different sidebars-- but each uses a different banner ad zone id.

You wanna continue showing us how to get progressively complex with this stuff? You&#039;ve done great so far.</description>
		<content:encoded><![CDATA[<p>Not <em>all</em> I need to know!</p>
<p>Can I have multiple instances of a widget? can each use a separate &#8220;argument&#8221;?</p>
<p>This would probably be great for configuring different banner ad blocks for openAds (phpAdsNew) within the different sidebars&#8211; but each uses a different banner ad zone id.</p>
<p>You wanna continue showing us how to get progressively complex with this stuff? You&#8217;ve done great so far.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leonid Mamchenkov</title>
		<link>http://wpbits.wordpress.com/2007/06/17/advanced-widgets-widgets-with-controls/#comment-37</link>
		<dc:creator>Leonid Mamchenkov</dc:creator>
		<pubDate>Thu, 21 Jun 2007 15:01:56 +0000</pubDate>
		<guid isPermaLink="false">http://wpbits.wordpress.com/2007/06/17/advanced-widgets-widgets-with-controls/#comment-37</guid>
		<description>Michel,

just put all your code in the widget&#039;s PHP file.  Including the register_sidebar_widget() and register_widget_control() function calls.  If you use the Widget Loader plugin, than your widget&#039;s PHP file will get included and whatever is in there will be executed.


Regarding the text version - yes, I want to do it.  But currently WordPress.com doesn&#039;t even support text attachments.  Boomers.  I should probably let them know or something... :)</description>
		<content:encoded><![CDATA[<p>Michel,</p>
<p>just put all your code in the widget&#8217;s PHP file.  Including the register_sidebar_widget() and register_widget_control() function calls.  If you use the Widget Loader plugin, than your widget&#8217;s PHP file will get included and whatever is in there will be executed.</p>
<p>Regarding the text version &#8211; yes, I want to do it.  But currently WordPress.com doesn&#8217;t even support text attachments.  Boomers.  I should probably let them know or something&#8230; :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michel</title>
		<link>http://wpbits.wordpress.com/2007/06/17/advanced-widgets-widgets-with-controls/#comment-36</link>
		<dc:creator>Michel</dc:creator>
		<pubDate>Thu, 21 Jun 2007 14:56:50 +0000</pubDate>
		<guid isPermaLink="false">http://wpbits.wordpress.com/2007/06/17/advanced-widgets-widgets-with-controls/#comment-36</guid>
		<description>&lt;em&gt;Tip: If code is in image format, then, please (if possible) provide also code samples for download as .txt files... Not that I can&#039;t retype them, but it&#039;ll be just easier:)&lt;/em&gt;</description>
		<content:encoded><![CDATA[<p><em>Tip: If code is in image format, then, please (if possible) provide also code samples for download as .txt files&#8230; Not that I can&#8217;t retype them, but it&#8217;ll be just easier:)</em></p>
]]></content:encoded>
	</item>
</channel>
</rss>
