<?xml version="1.0" ?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>Support Forum | Agapetry</title>
	<link>http://agapetry.net/forum/new-forum/using-rs-to-modify-wp-dashboard</link>
	<description><![CDATA[Carefully calculated acts of unselfish love.  Wordpress-powered website development with grit and flair.]]></description>
	<generator>Simple:Press Forum Version 3.1.4</generator>
	<atom:link href="http://agapetry.net/forum?new-forum&#038;using-rs-to-modify-wp-dashboard&#038;xfeed=topic" rel="self" type="application/rss+xml" />
<item>
	<title>Kevin on Using RS to modify WP Dashboard</title>
	<link>http://agapetry.net/forum/new-forum/using-rs-to-modify-wp-dashboard/page-1/post-984/#p984</link>
	<category>Role Scoper Developer API</category>
	<guid isPermaLink="true">http://agapetry.net/forum/new-forum/using-rs-to-modify-wp-dashboard/page-1/post-984/#p984</guid>
	<description><![CDATA[<blockquote><p>Kevin said:</p><blockquote><p>uscmenslax said:</p><p>- (long-shot request) Allow the user, during registration, to request membership in a given RS-defined group.</p></blockquote><hr /><p>Good idea. Next week I'll poke around and see what kind of work that would involve.</p></blockquote><hr />
<p>
After further consideration, I'm not going to pursue that feature.  Role Scoper groups are normally a way for administrators to grant permissions to users, not for users to pick and choose from available content.  What you're asking is for Role Scoper groups to work more like Organic Groups in Drupal.  That would lead to a whole new class of functionality that may be better handled in a separate plugin.  Even if I decided to go in that direction, I would need to do some very careful UI design to make sure admins understand what they're enabling users to do at registration.
</p>
]]></description>
	<pubDate>Mon, 23 Feb 2009 11:21:06 -0700</pubDate>
</item>
<item>
	<title>uscmenslax on Using RS to modify WP Dashboard</title>
	<link>http://agapetry.net/forum/new-forum/using-rs-to-modify-wp-dashboard/page-1/post-872/#p872</link>
	<category>Role Scoper Developer API</category>
	<guid isPermaLink="true">http://agapetry.net/forum/new-forum/using-rs-to-modify-wp-dashboard/page-1/post-872/#p872</guid>
	<description><![CDATA[<blockquote>
<p>Kevin said:</p>
<p>Since the developer doc is currently nonexistant, let me also mention the properties of $current_user which may be helpful to you:</p>
<pre>var $groups = array(); 		// $groups[group id] = 1
var $blog_roles = array(); 	// $blog_roles[role_handle] = 1
var $term_roles = array();	// $term_roles[taxonomy][role_handle] = array of term ids 
var $assigned_blog_roles = array(); // $assigned_blog_roles[role_handle] = 1
var $assigned_term_roles = array(); // $assigned_term_roles[taxonomy][role_handle] = array of term ids 
</pre>
<p>So you could do something like:</p>
<pre>global $current_user;
$required_group_id = 4;
if ( ! empty( $current_user-&#62;groups[$required_group_id] ) )
  // display special group stuff
</pre>
</blockquote>
<hr />
<br />
<p>Wow, that&#39;s a lot to soak in... but incredibly useful.&#160; I&#39;m still trying to wrap my mind around how all this fits together... but this is a great start for me... thanks!</p>
]]></description>
	<pubDate>Wed, 11 Feb 2009 12:58:44 -0700</pubDate>
</item>
<item>
	<title>Kevin on Using RS to modify WP Dashboard</title>
	<link>http://agapetry.net/forum/new-forum/using-rs-to-modify-wp-dashboard/page-1/post-794/#p794</link>
	<category>Role Scoper Developer API</category>
	<guid isPermaLink="true">http://agapetry.net/forum/new-forum/using-rs-to-modify-wp-dashboard/page-1/post-794/#p794</guid>
	<description><![CDATA[<p>
Since the developer doc is currently nonexistant, let me also mention the properties of $current_user which may be helpful to you:
</p>
<pre>
var $groups = array(); 		// $groups[group id] = 1
var $blog_roles = array(); 	// $blog_roles[role_handle] = 1
var $term_roles = array();	// $term_roles[taxonomy][role_handle] = array of term ids 
var $assigned_blog_roles = array(); // $assigned_blog_roles[role_handle] = 1
var $assigned_term_roles = array(); // $assigned_term_roles[taxonomy][role_handle] = array of term ids 
</pre>
<p>
So you could do something like:
<pre>
global $current_user;
$required_group_id = 4;
if ( ! empty( $current_user-&#62;groups[$required_group_id] ) )
  // display special group stuff
</pre>
]]></description>
	<pubDate>Sat, 07 Feb 2009 01:02:28 -0700</pubDate>
</item>
<item>
	<title>Kevin on Using RS to modify WP Dashboard</title>
	<link>http://agapetry.net/forum/new-forum/using-rs-to-modify-wp-dashboard/page-1/post-793/#p793</link>
	<category>Role Scoper Developer API</category>
	<guid isPermaLink="true">http://agapetry.net/forum/new-forum/using-rs-to-modify-wp-dashboard/page-1/post-793/#p793</guid>
	<description><![CDATA[<blockquote><p>uscmenslax said:</p><p>Kevin,</p><p>Great plugin!&#160; Thanks for the hard work!&#160; I'm a former Michigander, so I'm glad to see "the mitten" pumping out some good stuff and not just more junk on 4 wheels.</p></blockquote><hr />
<p>
I try to keep some positive momentum even though I'm not sure where it's taking me.
</p>
<blockquote>
<p>-&#160; Display different information on the dashboard based on the user's WP or RS defined role.&#160; I'm fairly certain the hooks exist in RS to do this, I just can't figure out how.</p>
</blockquote>
<p>
The easiest solution may be to just let the internal hooks run their course by calling current_user_can('wprolename') or current_user_can('rs_post_contributor'), etc.
</p>
<blockquote>
<p>- (long-shot request) Allow the user, during registration, to request membership in a given RS-defined group.</p></blockquote><hr />
<p>
Good idea. Next week I'll poke around and see what kind of work that would involve.</p>
]]></description>
	<pubDate>Sat, 07 Feb 2009 00:55:53 -0700</pubDate>
</item>
<item>
	<title>uscmenslax on Using RS to modify WP Dashboard</title>
	<link>http://agapetry.net/forum/new-forum/using-rs-to-modify-wp-dashboard/page-1/post-765/#p765</link>
	<category>Role Scoper Developer API</category>
	<guid isPermaLink="true">http://agapetry.net/forum/new-forum/using-rs-to-modify-wp-dashboard/page-1/post-765/#p765</guid>
	<description><![CDATA[<p>Kevin,</p>
<p>Great plugin!&#160; Thanks for the hard work!&#160; I&#39;m a former Michigander, so I&#39;m glad to see "the mitten" pumping out some good stuff and not just more junk on 4 wheels.</p>
<p>I have created a plugin for my site that clears the Dashboard for all users and will (with your help) display different things based on the user&#39;s RS-defined role.</p>
<p>It&#39;s a lacrosse team&#39;s website, so RS-defined roles are Player, Captain, and Coach.&#160; The public will fall into the default WP-defined Subscriber category.</p>
<p>2 things I&#39;d like to accomplish:</p>
<p>-&#160; Display different information on the dashboard based on the user&#39;s WP or RS defined role.&#160; I&#39;m fairly certain the hooks exist in RS to do this, I just can&#39;t figure out how.</p>
<p>- (long-shot request) Allow the user, during registration, to request membership in a given RS-defined group.</p>
<p>Thanks again.&#160; I look forward to your response.</p>
<p>- Dave</p>
]]></description>
	<pubDate>Mon, 02 Feb 2009 12:54:40 -0700</pubDate>
</item>
</channel>
</rss>