<?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>Widgetifyr.com &#187; Widgets</title>
	<atom:link href="http://blog.widgetifyr.com/category/widgets/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.widgetifyr.com</link>
	<description>Widgetifying the web; one widget at a time.</description>
	<lastBuildDate>Sun, 15 May 2011 21:24:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Blellow Wordpess Group Message Display Widget</title>
		<link>http://blog.widgetifyr.com/2009/05/blellow-wordpess-group-message-display-widget/</link>
		<comments>http://blog.widgetifyr.com/2009/05/blellow-wordpess-group-message-display-widget/#comments</comments>
		<pubDate>Sat, 23 May 2009 15:42:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Our Widgets]]></category>
		<category><![CDATA[Widgets]]></category>

		<guid isPermaLink="false">http://blog.widgetifyr.com/?p=69</guid>
		<description><![CDATA[I created a widget to display the messages from the WordPress Dev group on new site called Blellow. If you want to show messages from another group you can change the $group variable. You can display any number of messages you&#8217;d like by changing the $maxposts variable. [php] &#60;?php /* Plugin Name: Blellow Plugin URI: [...]]]></description>
			<content:encoded><![CDATA[<p>I created a widget to display the messages from the WordPress Dev group on new site called <a href="http://www.blellow.com" target="_blank">Blellow</a>. If you want to show messages from another group you can change the $group variable. You can display any number of messages you&#8217;d like by changing the $maxposts variable.</p>
<p><img class="aligncenter size-medium wp-image-121" title="images" src="http://blog.widgetifyr.com/wp-content/uploads/2009/05/images-300x89.jpg" alt="" width="300" height="89" /></p>
<p>[php]<br />
&lt;?php<br />
/*<br />
Plugin Name: Blellow<br />
Plugin URI: http://www.widgetifyr.com<br />
Description: Blellow Group Tracker<br />
Author: Glenn Bennett<br />
Version: 1.0<br />
Author URI: http://www.widgetifyr.com</p>
<p>*/</p>
<p>// We&#8217;re putting the plugin&#8217;s functions inside the init function to ensure the<br />
// required Sidebar Widget functions are available.</p>
<p>function widget_blellowgroup_init()<br />
{<br />
/* Your custom code starts here */<br />
/* &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- */</p>
<p>/* Your Function */<br />
function blellowgroup()<br />
{</p>
<p>/* Your Code &#8212;&#8212;&#8212;&#8212;&#8212;&#8211; */</p>
<p>$group = &#8220;wordpress&#8221;;<br />
$maxposts = 5;<br />
$url = &#8220;http://blellow.com/groups/$group/dashboard&#8221;;<br />
$xmlurl = &#8220;$url.xml&#8221;;<br />
$messages =  simplexml_load_file($xmlurl);</p>
<p>// Here we&#8217;ll put a loop to include each item&#8217;s title and description<br />
$i=0;<br />
echo &#8220;&lt;ul&gt;&#8221;;<br />
foreach ($messages as $item)<br />
{<br />
echo &#8220;&lt;li&gt;&#8221; . $item-&gt;body . &#8220;&lt;/li&gt;&#8221;;<br />
$i++;<br />
if($i == 5)<br />
{<br />
break;<br />
}<br />
}<br />
echo &#8220;&lt;li&gt;&lt;a href=\&#8221;$url\&#8221;&gt;More updates&#8230;&lt;/a&gt;&lt;/li&gt;&#8221;;</p>
<p>echo &#8220;&lt;/ul&gt;&#8221;;</p>
<p>/* End of Your Code &#8212;&#8212;&#8212;- */</p>
<p>}</p>
<p>/* &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; */<br />
/* Your custom code ends here */</p>
<p>function widget_blellowgroup($args)<br />
{</p>
<p>// Collect our widget&#8217;s options, or define their defaults.<br />
$options = get_option(&#8216;widget_blellowgroup&#8217;);<br />
$title = empty($options['title']) ? __(&#8216;Blellow Group Tracker&#8217;) : $options['title'];</p>
<p>extract($args);<br />
echo $before_widget;<br />
echo $before_title;<br />
echo $title;<br />
echo $after_title;<br />
blellowgroup();<br />
echo $after_widget;<br />
}</p>
<p>// This is the function that outputs the form to let users edit<br />
// the widget&#8217;s title. It&#8217;s an optional feature, but were&#8217;re doing<br />
// it all for you so why not!</p>
<p>function widget_blellowgroup_control()<br />
{</p>
<p>// Collect our widget options.<br />
$options = $newoptions = get_option(&#8216;widget_blellowgroup&#8217;);</p>
<p>// This is for handing the control form submission.<br />
if ( $_POST['widget_blellowgroup-submit'] )<br />
{<br />
// Clean up control form submission options<br />
$newoptions['title'] = strip_tags(stripslashes($_POST['widget_blellowgroup-title']));<br />
}</p>
<p>// If original widget options do not match control form<br />
// submission options, update them.<br />
if ( $options != $newoptions )<br />
{<br />
$options = $newoptions;<br />
update_option(&#8216;widget_blellowgroup&#8217;, $options);<br />
}</p>
<p>$title = attribute_escape($options['title']);</p>
<p>echo &#8216;&lt;p&gt;&lt;label for=&#8221;blellowgroup-title&#8221;&gt;&#8217;;<br />
echo &#8216;Title: &lt;input style=&#8221;width: 250px;&#8221; id=&#8221;widget_blellowgroup-title&#8221; name=&#8221;widget_blellowgroup-title&#8221; type=&#8221;text&#8221; value=&#8221;&#8216;;<br />
echo $title;<br />
echo &#8216;&#8221; /&gt;&#8217;;<br />
echo &#8216;&lt;/label&gt;&lt;/p&gt;&#8217;;<br />
echo &#8216;&lt;input type=&#8221;hidden&#8221; id=&#8221;widget_blellowgroup-submit&#8221; name=&#8221;widget_blellowgroup-submit&#8221; value=&#8221;1&#8243; /&gt;&#8217;;<br />
}</p>
<p>// This registers the widget.<br />
register_sidebar_widget(&#8216;Blellow&#8217;, &#8216;widget_blellowgroup&#8217;);</p>
<p>// This registers the (optional!) widget control form.<br />
register_widget_control(&#8216;Blellow&#8217;, &#8216;widget_blellowgroup_control&#8217;);</p>
<p>}</p>
<p>add_action(&#8216;plugins_loaded&#8217;, &#8216;widget_blellowgroup_init&#8217;);</p>
<p>?&gt;</p>
<p>[/php]</p>
<p>I still need to figure out how to display the user name. The Bellow API lookes very much like a work in progress, but as they add new features I&#8217;ll be updating the widget.<br />
Obviously I used our tool to create this widget and as our system gets impoved so will this widget.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.widgetifyr.com/2009/05/blellow-wordpess-group-message-display-widget/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

