<?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; Our Widgets</title>
	<atom:link href="http://blog.widgetifyr.com/category/our-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>Thu, 08 Oct 2009 19:59:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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.

&#60;?php
/*
Plugin Name: Blellow
Plugin URI: http://www.widgetifyr.com
Description: Blellow Group Tracker
Author: Glenn [...]]]></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>
<div class="wp-caption alignnone" style="width: 212px"><a href="http://www.blellow.com" target="_new"><img title="Blellow" src="http://www.blellow.com/images/logo.png" alt="Blellow" width="202" height="72" /></a><p class="wp-caption-text">Blellow</p></div>
<pre class="brush: php;">
&lt;?php
/*
Plugin Name: Blellow
Plugin URI: http://www.widgetifyr.com
Description: Blellow Group Tracker
Author: Glenn Bennett
Version: 1.0
Author URI: http://www.widgetifyr.com

*/

// We're putting the plugin's functions inside the init function to ensure the
// required Sidebar Widget functions are available.

function widget_blellowgroup_init()
{
/* Your custom code starts here */
/* ---------------------------- */

/* Your Function */
function blellowgroup()
{

/* Your Code ----------------- */

$group = &quot;wordpress&quot;;
$maxposts = 5;
$url = &quot;http://blellow.com/groups/$group/dashboard&quot;;
$xmlurl = &quot;$url.xml&quot;;
$messages =  simplexml_load_file($xmlurl);

// Here we'll put a loop to include each item's title and description
$i=0;
echo &quot;&lt;ul&gt;&quot;;
foreach ($messages as $item)
{
echo &quot;&lt;li&gt;&quot; . $item-&gt;body . &quot;&lt;/li&gt;&quot;;
$i++;
if($i == 5)
{
break;
}
}
echo &quot;&lt;li&gt;&lt;a href=\&quot;$url\&quot;&gt;More updates...&lt;/a&gt;&lt;/li&gt;&quot;;

echo &quot;&lt;/ul&gt;&quot;;

/* End of Your Code ---------- */

}

/* -------------------------- */
/* Your custom code ends here */

function widget_blellowgroup($args)
{

// Collect our widget's options, or define their defaults.
$options = get_option('widget_blellowgroup');
$title = empty($options['title']) ? __('Blellow Group Tracker') : $options['title'];

extract($args);
echo $before_widget;
echo $before_title;
echo $title;
echo $after_title;
blellowgroup();
echo $after_widget;
}

// This is the function that outputs the form to let users edit
// the widget's title. It's an optional feature, but were're doing
// it all for you so why not!

function widget_blellowgroup_control()
{

// Collect our widget options.
$options = $newoptions = get_option('widget_blellowgroup');

// This is for handing the control form submission.
if ( $_POST['widget_blellowgroup-submit'] )
{
// Clean up control form submission options
$newoptions['title'] = strip_tags(stripslashes($_POST['widget_blellowgroup-title']));
}

// If original widget options do not match control form
// submission options, update them.
if ( $options != $newoptions )
{
$options = $newoptions;
update_option('widget_blellowgroup', $options);
}

$title = attribute_escape($options['title']);

echo '&lt;p&gt;&lt;label for=&quot;blellowgroup-title&quot;&gt;';
echo 'Title: &lt;input style=&quot;width: 250px;&quot; id=&quot;widget_blellowgroup-title&quot; name=&quot;widget_blellowgroup-title&quot; type=&quot;text&quot; value=&quot;';
echo $title;
echo '&quot; /&gt;';
echo '&lt;/label&gt;&lt;/p&gt;';
echo '&lt;input type=&quot;hidden&quot; id=&quot;widget_blellowgroup-submit&quot; name=&quot;widget_blellowgroup-submit&quot; value=&quot;1&quot; /&gt;';
}

// This registers the widget.
register_sidebar_widget('Blellow', 'widget_blellowgroup');

// This registers the (optional!) widget control form.
register_widget_control('Blellow', 'widget_blellowgroup_control');

}

add_action('plugins_loaded', 'widget_blellowgroup_init');

?&gt;
</pre>
<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>
