<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>bbPress support forums Tag: role</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Tag: role</description>
<language>en</language>
<pubDate>Tue, 02 Dec 2008 22:10:40 +0000</pubDate>

<item>
<title>blankpoint on "Styling author posts?"</title>
<link>http://bbpress.org/forums/topic/styling-author-posts#post-20048</link>
<pubDate>Sun, 19 Oct 2008 20:37:12 +0000</pubDate>
<dc:creator>blankpoint</dc:creator>
<guid isPermaLink="false">20048@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I'm realizing how much I rely on the fact that WP has documentation of its hooks and template tags... without this info on BB, it is difficult to find how to do stuff.&#60;/p&#62;
&#60;p&#62;I have an integrated installation of WP 2.6.2 + BB alpha 2.&#60;br /&#62;
I want to apply a different style to a posting/comment in my forums if it is written by a user who is an Author or higher in my WP user table. How do I check for this within BB? Inside BB, all of these WP users (my WP authors as well as standard WP users) are BB members... I do not want to give my WP authors BB moderator functionality. So can I check the WP role directly from the user table within BB?
&#60;/p&#62;</description>
</item>
<item>
<title>teo7 on "bbpress 1.0 alpha. Login problem when including Wordpress functions"</title>
<link>http://bbpress.org/forums/topic/bbpress-10-alpha-login-problem-when-including-wordpress-functions#post-19950</link>
<pubDate>Wed, 15 Oct 2008 10:20:02 +0000</pubDate>
<dc:creator>teo7</dc:creator>
<guid isPermaLink="false">19950@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I forgot update the bbpress user's role. When I did that, the problem disapeared. Now my forum is working perfectly.
&#60;/p&#62;</description>
</item>
<item>
<title>teo7 on "bbpress 1.0 alpha. Login problem when including Wordpress functions"</title>
<link>http://bbpress.org/forums/topic/bbpress-10-alpha-login-problem-when-including-wordpress-functions#post-19830</link>
<pubDate>Sat, 11 Oct 2008 15:29:50 +0000</pubDate>
<dc:creator>teo7</dc:creator>
<guid isPermaLink="false">19830@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I have wordpress 2.6 and bbpress 1.0 alpha. The bbpres is installed in a subfolder of wordpress instalation. All works very fine. But when I try get access to wordpress funcions I add the following code in the first line of  bb-confing: require_once(dirname(__FILE__) . '/../wp-blog-header.php');&#60;/p&#62;
&#60;p&#62;After this, when I try to login in the forum, I see a &#34;Page not found&#34; page.  If  I refresh the page, it appears as if I'm not logged in, but when I am in the blog, I'm logged in.
&#60;/p&#62;</description>
</item>
<item>
<title>JediSthlm on "Integration with WP and roles"</title>
<link>http://bbpress.org/forums/topic/integration-with-wp-and-roles#post-19175</link>
<pubDate>Fri, 12 Sep 2008 07:57:04 +0000</pubDate>
<dc:creator>JediSthlm</dc:creator>
<guid isPermaLink="false">19175@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hi&#60;br /&#62;
I have WP 2.6 installed and the latest svn version (updated yesterday) of bbPress. The two are integrated with each other. I had a look at the users and roles in WP and noted that bbPress had changed all the roles to the bbPress role types. The WP roles are now all gone. The problem is that no one of my users can login, only the first admin user which I created when installed WP and bbPress. If I change another user from member to admin he cannot login. &#60;/p&#62;
&#60;p&#62;Can I change back the roles to the default WP roles or do you have any clue what have happened?
&#60;/p&#62;</description>
</item>
<item>
<title>Sevankambel on "Cannot change users to Moderators"</title>
<link>http://bbpress.org/forums/topic/cannot-change-users-to-moderators#post-19068</link>
<pubDate>Mon, 08 Sep 2008 04:45:26 +0000</pubDate>
<dc:creator>Sevankambel</dc:creator>
<guid isPermaLink="false">19068@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I am having this same issue with 0.9.0.2  - I cant change the Key Masters Profile or Change a Member to a different role-- I get    invalid Role every time  &#60;a href=&#34;http://insidethedjbooth.com/djforum&#34; rel=&#34;nofollow&#34;&#62;http://insidethedjbooth.com/djforum&#60;/a&#62; if you need that
&#60;/p&#62;</description>
</item>
<item>
<title>Sonika on "(yet another) integration bug, no Role set on registration"</title>
<link>http://bbpress.org/forums/topic/yet-another-integration-bug-no-role-set-on-registration#post-18914</link>
<pubDate>Thu, 04 Sep 2008 10:51:40 +0000</pubDate>
<dc:creator>Sonika</dc:creator>
<guid isPermaLink="false">18914@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Detective, thanks a lot!!!&#60;br /&#62;
It solved my problem ( wp 2.5.1, bbpress 0.9.0.2)&#60;/p&#62;
&#60;p&#62;Bo Fiddlesticks, you should save code in &#60;code&#62;set-default-role.php&#60;/code&#62; file, put it in bb-plugins and activate&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
/*
Plugin Name: bbpress wpmu default role
Plugin URI: &#60;a href=&#34;http://bbpress.org/forums/topic/yet-another-integration-bug-no-role-set-on-registration?replies=5&#34; rel=&#34;nofollow&#34;&#62;http://bbpress.org/forums/topic/yet-another-integration-bug-no-role-set-on-registration?replies=5&#60;/a&#62;
Description: Sets a default WPMU role for all new bbpress users.
Author: Detective
Author URI: &#60;a href=&#34;http://www.ryuuko.cl/&#34; rel=&#34;nofollow&#34;&#62;http://www.ryuuko.cl/&#60;/a&#62;
*/

function wpbb_add_user_role_rk($user_id) {
$user = new WP_User($user_id);
$user-&#38;gt;set_role(get_option(&#38;#39;default_role&#38;#39;));
}
add_action( &#38;#39;bb_new_user&#38;#39;, &#38;#39;wpbb_add_user_role_rk&#38;#39;);
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>sambauers on "Cannot change users to Moderators"</title>
<link>http://bbpress.org/forums/topic/cannot-change-users-to-moderators#post-17088</link>
<pubDate>Sun, 06 Jul 2008 11:02:56 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">17088@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Which version?
&#60;/p&#62;</description>
</item>
<item>
<title>jonken on "Cannot change users to Moderators"</title>
<link>http://bbpress.org/forums/topic/cannot-change-users-to-moderators#post-17072</link>
<pubDate>Sat, 05 Jul 2008 16:47:24 +0000</pubDate>
<dc:creator>jonken</dc:creator>
<guid isPermaLink="false">17072@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hey, I'm using bbPress and i'm happy with it, have a lot of work left though :]&#60;/p&#62;
&#60;p&#62;But… Something that is weird, i'm logged in as the admin and i tried to change a user to a Moderator, but i can only do it sometimes. Now i just get &#34;Invalid Role&#34; for some reason.&#60;/p&#62;
&#60;p&#62;(sorry for bad grammar)
&#60;/p&#62;</description>
</item>
<item>
<title>Christiaan on "WP Integration: suggested user role mappings"</title>
<link>http://bbpress.org/forums/topic/wp-integration-suggested-role-mappings#post-16924</link>
<pubDate>Wed, 25 Jun 2008 17:59:25 +0000</pubDate>
<dc:creator>Christiaan</dc:creator>
<guid isPermaLink="false">16924@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Thank you Sam.
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "WP Integration: suggested user role mappings"</title>
<link>http://bbpress.org/forums/topic/wp-integration-suggested-role-mappings#post-16869</link>
<pubDate>Mon, 23 Jun 2008 10:31:07 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">16869@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;It depends how much you trust editors with user records. I would tend to go with this.&#60;/p&#62;
&#60;p&#62;Administrator - Key Master&#60;br /&#62;
Editor - Moderator&#60;br /&#62;
Author - Member&#60;br /&#62;
Contributor - Member&#60;br /&#62;
Subscriber - Member&#60;/p&#62;
&#60;p&#62;As you can see, you don't need to have one-to-one relationships.
&#60;/p&#62;</description>
</item>
<item>
<title>Christiaan on "WP Integration: suggested user role mappings"</title>
<link>http://bbpress.org/forums/topic/wp-integration-suggested-role-mappings#post-16850</link>
<pubDate>Sat, 21 Jun 2008 14:31:40 +0000</pubDate>
<dc:creator>Christiaan</dc:creator>
<guid isPermaLink="false">16850@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hi, I've just installed a fresh install of WP and bbP and I've got to the point where I need to choose the user role mappings.&#60;/p&#62;
&#60;p&#62;However, although I've used WP extensively I've never used bbP before so I'm not sure what mappings  I should use. I was thinking maybe something like the following:&#60;/p&#62;
&#60;p&#62;Administrator - Key Master&#60;br /&#62;
Editor - Administrator&#60;br /&#62;
Author - Moderator&#60;br /&#62;
Contributor - Member&#60;br /&#62;
Subscriber - Inactive&#60;/p&#62;
&#60;p&#62;Can anyone with experience give me any better suggestions? Also, can I easily change these roles later?
&#60;/p&#62;</description>
</item>
<item>
<title>Bo Fiddlesticks on "(yet another) integration bug, no Role set on registration"</title>
<link>http://bbpress.org/forums/topic/yet-another-integration-bug-no-role-set-on-registration#post-16718</link>
<pubDate>Thu, 12 Jun 2008 10:17:49 +0000</pubDate>
<dc:creator>Bo Fiddlesticks</dc:creator>
<guid isPermaLink="false">16718@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Unfortunately, Detective's solution doesn't work with the latest versions. I'm experiencing the same issues (integrated scenario):&#60;br /&#62;
User registers on bbpress and logs in there&#60;br /&#62;
User can acces the WP Site Admin section, but it says: Welcome, . (a space instead of the user name)&#60;br /&#62;
User comments are registered as 'Anonymous'&#60;/p&#62;
&#60;p&#62;I noticed the only way to fix this is to go to WP user management panel, editing and saving the user.&#60;br /&#62;
So the user has to be actively (and manually :\ ) updated to have his name listed under his comments.&#60;/p&#62;
&#60;p&#62;I haven't found any way to avoid this, but if anyone can I'd be much abliged!
&#60;/p&#62;</description>
</item>
<item>
<title>affacat on "A question about 'inactive' members."</title>
<link>http://bbpress.org/forums/topic/a-question-about-inactive-members#post-14830</link>
<pubDate>Sun, 30 Mar 2008 22:07:49 +0000</pubDate>
<dc:creator>affacat</dc:creator>
<guid isPermaLink="false">14830@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I changed one user (already marked in DB as a member) to 'moderator', saved, then back to 'member', saved... and everyone that was showing as inactive started showing as 'member'.  I have no idea what was going on and i'm going to pretend it didn't happen.
&#60;/p&#62;</description>
</item>
<item>
<title>affacat on "A question about 'inactive' members."</title>
<link>http://bbpress.org/forums/topic/a-question-about-inactive-members#post-14829</link>
<pubDate>Sun, 30 Mar 2008 22:01:56 +0000</pubDate>
<dc:creator>affacat</dc:creator>
<guid isPermaLink="false">14829@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Odd.  About 3/4 of my members are marked inactive.  All of them have a record in wp_user_meta with the data:&#60;br /&#62;
bb_capabilities  	a:1:{s:6:&#34;member&#34;;b:1;}&#60;/p&#62;
&#60;p&#62;So... Yea. I don't understand quite what's going on here.
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "A question about 'inactive' members."</title>
<link>http://bbpress.org/forums/topic/a-question-about-inactive-members#post-14828</link>
<pubDate>Sun, 30 Mar 2008 20:49:51 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">14828@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I *believe* someone becomes inactive only if you mark them inactive.  You can change the user status by going to their profile page, then clicking the edit tab, as keymaster.&#60;/p&#62;
&#60;p&#62;I've never seen it happen automatically. And, on the edit tab of the profile page, there is a description on the bottom of what blocked and inactive mean.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;Inactive users can login and look around but not do anything.
Blocked users just see a simple error message when they visit
the site.

Note: Blocking a user does not block any IP addresses.&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>affacat on "A question about 'inactive' members."</title>
<link>http://bbpress.org/forums/topic/a-question-about-inactive-members#post-14820</link>
<pubDate>Sun, 30 Mar 2008 16:11:55 +0000</pubDate>
<dc:creator>affacat</dc:creator>
<guid isPermaLink="false">14820@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;What determines if a user is 'inactive'? And what does it mean?&#60;/p&#62;
&#60;p&#62;And, more importantly, how can i change the settings?
&#60;/p&#62;</description>
</item>
<item>
<title>joetwostep on "bbpress + wpmu user registration default role"</title>
<link>http://bbpress.org/forums/topic/bbpress-wpmu-user-registration-default-role#post-14436</link>
<pubDate>Wed, 12 Mar 2008 21:55:44 +0000</pubDate>
<dc:creator>joetwostep</dc:creator>
<guid isPermaLink="false">14436@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;causes a fatal error and then lots of errors when i go to log out
&#60;/p&#62;</description>
</item>
<item>
<title>luca.iz on "setting default role to inactive for new registered users"</title>
<link>http://bbpress.org/forums/topic/setting-default-role-to-inactive-for-new-registered-users#post-13795</link>
<pubDate>Wed, 13 Feb 2008 20:33:49 +0000</pubDate>
<dc:creator>luca.iz</dc:creator>
<guid isPermaLink="false">13795@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;many thanks Chris!  I have tested your second example (pluggable.php, row 361 etc.) was exactly what I needed!  &#60;/p&#62;
&#60;p&#62;I agree with you that a plugin would be nice, and also it would be even nicer to be able to set new users default role somewhere in the admin interface, but for the moment your suggestion just work.&#60;/p&#62;
&#60;p&#62;thanks again!
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "setting default role to inactive for new registered users"</title>
<link>http://bbpress.org/forums/topic/setting-default-role-to-inactive-for-new-registered-users#post-13779</link>
<pubDate>Wed, 13 Feb 2008 16:49:17 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">13779@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;The default role is set in bb-includes/capabilities.php around line 485 &#60;/p&#62;
&#60;p&#62;&#60;code&#62;$user-&#38;gt;set_role(&#38;#39;member&#38;#39;);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;This is a job for a plugin, but I haven't tried to write one yet, so if you were to change that word &#60;code&#62;member&#60;/code&#62; to &#60;code&#62;inactive&#60;/code&#62;, my guess would be that that would make any new member inactive and then the keymaster would need to edit their role to make them members.&#60;/p&#62;
&#60;p&#62;ACTUALLY - that didn't work :D&#60;/p&#62;
&#60;p&#62;In bb-includes/pluggable.php, line 361 says this:&#60;br /&#62;
&#60;code&#62;bb_update_usermeta( $user_id, $bb_table_prefix . &#38;#39;capabilities&#38;#39;, array(&#38;#39;member&#38;#39; =&#38;gt; true) );&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I changed &#60;strong&#62;member&#60;/strong&#62; to &#60;strong&#62;inactive&#60;/strong&#62; there, and now new users are inactive when they first register.&#60;/p&#62;
&#60;p&#62;Like I said, this is really a job for a plugin, but you could probably use this last change temporarily until a proper plugin is written.&#60;/p&#62;
&#60;p&#62;HTH, and be warned this is not a good way of doing it.  It should really be a plugin I think.
&#60;/p&#62;</description>
</item>
<item>
<title>luca.iz on "setting default role to inactive for new registered users"</title>
<link>http://bbpress.org/forums/topic/setting-default-role-to-inactive-for-new-registered-users#post-13767</link>
<pubDate>Wed, 13 Feb 2008 12:49:50 +0000</pubDate>
<dc:creator>luca.iz</dc:creator>
<guid isPermaLink="false">13767@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;hello all.&#60;/p&#62;
&#60;p&#62;I have tried some search about this but did not find anything.&#60;/p&#62;
&#60;p&#62;I'd need the new users on a bbPress forum to be set to Inactive by default.&#60;/p&#62;
&#60;p&#62;the reason is I need to set up a forum for an experiment in secondary schools.  we have to take in account the possibility of rude behavior from people not participating to the experiment.&#60;/p&#62;
&#60;p&#62;the administrator is not likely to be very present on line, so it would be a problem if anybody could just register and start posting indesiderable contents, that could sit there for a while.&#60;/p&#62;
&#60;p&#62;a temporary fix would be setting the default role for users to Inactive (the administrator then has the possibility to verify that the user is really who he say to be).  I've tried to look into the code, but was not able to figure it out how to do it.  hints would be welcomed.&#60;/p&#62;
&#60;p&#62;another option (the one I'm currently adopting) is removing the register function and putting something like &#34;write to this email address if you want to be registered&#34;, then using this plugin to allow administrator to add users:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://bbpress.org/plugins/topic/admin-add-user/&#34; rel=&#34;nofollow&#34;&#62;http://bbpress.org/plugins/topic/admin-add-user/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;but this is not how really we want it to be.  an example of it is the &#34;candidate&#34; system used in vanilla forum: you candidate yourself to be a member of the forum, and if admin agree then you're in.  (why then not using vanilla?  because there's a graphic customization people have worked into, and we are running very short on deadline, say the url is in this morning newspaper... :-) ).&#60;/p&#62;
&#60;p&#62;I'd also be grateful for any other suggestions.
&#60;/p&#62;</description>
</item>
<item>
<title>bedbugger on "(yet another) integration bug, no Role set on registration"</title>
<link>http://bbpress.org/forums/topic/yet-another-integration-bug-no-role-set-on-registration#post-12847</link>
<pubDate>Sat, 22 Dec 2007 18:07:45 +0000</pubDate>
<dc:creator>bedbugger</dc:creator>
<guid isPermaLink="false">12847@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;kboan23,&#60;br /&#62;
Even if you manually fix the role of users registered in bbpress to &#34;subscriber&#34; the display name field is still blank.  So unless I am missing something, you do need to fix this problem.  Otherwise, bbpress registrants become subscribers login at wordpress and their username shows as Anonymous.
&#60;/p&#62;</description>
</item>
<item>
<title>Null on "How to: ddlb of user roles"</title>
<link>http://bbpress.org/forums/topic/how-to-ddlb-of-user-roles#post-12171</link>
<pubDate>Fri, 23 Nov 2007 11:00:50 +0000</pubDate>
<dc:creator>Null</dc:creator>
<guid isPermaLink="false">12171@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;... sorry for asking for help.... thought forums where here for that...&#60;/p&#62;
&#60;p&#62;I can't program, never said I did, I build things with trial and error, learning that way. Reading and trying to understand how and why things works. So if I get just a piece of code I'll try that and try other suggestions too. I am more a reverse engineer. The site and things I've builded can be done in 2 hours if you are a phpprogrammer, I do it in two weeks or more, but I get it done (don't give up) and am proud if I acomplisch what I wanted.&#60;/p&#62;
&#60;p&#62;Assuming someone can program cause his plugin is awesome wont work everytime :). Most things I can figure out myself, but if some small stupid thing like a ddlb takes too much time I am gonna ask the forums (duh). Kinda get the feeling now that, if you can't program, you shouldn't do it or ask for help...&#60;/p&#62;
&#60;p&#62;Like the post above from Chris, you've managed to make it work and you are assuming I can figure this out too cause it was apparently easy for you to figure out. But I don't think like a programmer, it's hard for an person like me to figure it all out. I don't know where all code is pulled from or is placed. I use bbpulp a lot to find the needed code, but that isn't always enough.&#60;/p&#62;
&#60;p&#62;I'm glad Chris found an answer, but then I ask: how did you do it? Can you show me the code and explain some of it so I can learn from it...&#60;/p&#62;
&#60;p&#62;Better look like it like this, I can build a car, but I don't know how to construct it. I know I need an engine, but I don't know how the engine works. I know what it does, I know I need it... and so I puzzel the car together. A mechanic will do it in 1 week, I'll do it in 1 year...&#60;/p&#62;
&#60;p&#62;I am weird, I know :)&#60;/p&#62;
&#60;p&#62;Well I just wanted to get this of my chest and also mention I aint attacking anyone (especially Chris, just jused your post as an excample)&#60;/p&#62;
&#60;p&#62;So no hard feelings (from me anyway) and thanks for your time&#60;/p&#62;
&#60;p&#62;_Null
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "How to: ddlb of user roles"</title>
<link>http://bbpress.org/forums/topic/how-to-ddlb-of-user-roles#post-12170</link>
<pubDate>Fri, 23 Nov 2007 05:59:18 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">12170@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I'm not a programmer.  I don't know that much about bbPress.  I've never written a bbPress plugin.  But from reading the source and looking at other admin plugins, I was able to make this work.  I'm sure you can too.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.chrishajer.com/bike/XLF/bbpress-ddlb.png&#34; rel=&#34;nofollow&#34;&#62;http://www.chrishajer.com/bike/XLF/bbpress-ddlb.png&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>livibetter on "How to: ddlb of user roles"</title>
<link>http://bbpress.org/forums/topic/how-to-ddlb-of-user-roles#post-12169</link>
<pubDate>Fri, 23 Nov 2007 03:54:25 +0000</pubDate>
<dc:creator>livibetter</dc:creator>
<guid isPermaLink="false">12169@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Haven't you noticed this line from bbPress source (L1296 in template-functions.php)?&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$roles = $bb_roles-&#38;gt;role_names;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I think chrishajer and me thought you knew how to program with PHP (by checking your website). Yes, chrishajer gave you a piece of code that is a hint not a just-can-work code at everywhere. I thought you can code with PHP, and you should be able to put the rest on your own code. However, I was wrong or you think someone else has taken care of the rest for you?&#60;/p&#62;
&#60;p&#62;you also need to do &#60;code&#62;global $bb_roles;&#60;/code&#62;, in case you really can not code with PHP.&#60;/p&#62;
&#60;p&#62;(edit: Sorry for this emotional post to everyone else)
&#60;/p&#62;</description>
</item>
<item>
<title>Null on "How to: ddlb of user roles"</title>
<link>http://bbpress.org/forums/topic/how-to-ddlb-of-user-roles#post-12159</link>
<pubDate>Thu, 22 Nov 2007 21:20:06 +0000</pubDate>
<dc:creator>Null</dc:creator>
<guid isPermaLink="false">12159@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Okay chris, now try this:&#60;/p&#62;
&#60;p&#62;Make a clean php file.&#60;br /&#62;
Now add that code you mentioned&#60;br /&#62;
Make the php page a plugin and activate it.&#60;br /&#62;
Now go to your admin -&#38;gt; pluginpage and you'll see an empty ddlb too :)&#60;/p&#62;
&#60;p&#62;It works in your PNG image example, cause you just copied the code in the same page. It will always work that way, but not in a clean file...&#60;/p&#62;
&#60;p&#62;_Null
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "How to: ddlb of user roles"</title>
<link>http://bbpress.org/forums/topic/how-to-ddlb-of-user-roles#post-12157</link>
<pubDate>Thu, 22 Nov 2007 18:02:15 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">12157@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Check this:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.chrishajer.com/bike/XLF/bbpress-roles.png&#34; rel=&#34;nofollow&#34;&#62;http://www.chrishajer.com/bike/XLF/bbpress-roles.png&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I did that using the stuff I mentioned in &#60;a href=&#34;http://bbpress.org/forums/topic/how-to-ddlb-of-user-roles?replies=8#post-12145&#34;&#62;this post&#60;/a&#62;.  So, it works as an administrator since they can edit other users.  There is a drop down with all 6 roles listed.
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "How to: ddlb of user roles"</title>
<link>http://bbpress.org/forums/topic/how-to-ddlb-of-user-roles#post-12154</link>
<pubDate>Thu, 22 Nov 2007 16:42:08 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">12154@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;&#38;gt; yes i did try that one already, but it gave me a&#60;br /&#62;
&#38;gt; empty ddlb (proberbly because the user's role&#60;br /&#62;
&#38;gt; couldn't be defined) .&#60;/p&#62;
&#60;p&#62;It has nothing to do with the current user's role not being defined.  That is a list box that appears in the admin section with all roles listed.  That will provide you with all roles.  I would suspect you need to be logged in as admin to see it though.  Where are you trying to use it, and for what?  Maybe someone can help you with a little more information.
&#60;/p&#62;</description>
</item>
<item>
<title>livibetter on "How to: ddlb of user roles"</title>
<link>http://bbpress.org/forums/topic/how-to-ddlb-of-user-roles#post-12149</link>
<pubDate>Thu, 22 Nov 2007 08:58:06 +0000</pubDate>
<dc:creator>livibetter</dc:creator>
<guid isPermaLink="false">12149@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;@Null: of course, you get all roles' data. I meant you can get each role's name from the returning result of &#60;code&#62;$bb_roles-&#38;gt;get_roles()&#60;/code&#62; (I thought you was going to do something special). However chrishajer has told you the useful information for all your need, you just need to read from &#60;a href=&#34;http://trac.bbpress.org/browser/trunk/bb-includes/template-functions.php#L1296&#34; rel=&#34;nofollow&#34;&#62;http://trac.bbpress.org/browser/trunk/bb-includes/template-functions.php#L1296&#60;/a&#62; to 1311. If you really want to do something with bbPress, you have to read the source of bbPress.
&#60;/p&#62;</description>
</item>
<item>
<title>Null on "How to: ddlb of user roles"</title>
<link>http://bbpress.org/forums/topic/how-to-ddlb-of-user-roles#post-12148</link>
<pubDate>Thu, 22 Nov 2007 08:42:44 +0000</pubDate>
<dc:creator>Null</dc:creator>
<guid isPermaLink="false">12148@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hi guys,&#60;/p&#62;
&#60;p&#62;Sorry ddlb = drop down listbox&#60;/p&#62;
&#60;p&#62;@ chris: yes i did try that one already, but it gave me a empty ddlb (proberbly because the user's role couldn't be defined) . &#60;/p&#62;
&#60;p&#62;@livibetter: din't try it but that will give (I think) all roles, but not in a ddlb. &#60;/p&#62;
&#60;p&#62;For forums there is a function: bb_forum_dropdown, but I couldn't adapt it to get user roles, so I think a whole new function must be written to put it in the plugin I am working on. I have the feeling all the pieces are there, but I have no idea how to put them together :)&#60;/p&#62;
&#60;p&#62;Thx,&#60;/p&#62;
&#60;p&#62;Null
&#60;/p&#62;</description>
</item>
<item>
<title>livibetter on "How to: ddlb of user roles"</title>
<link>http://bbpress.org/forums/topic/how-to-ddlb-of-user-roles#post-12146</link>
<pubDate>Thu, 22 Nov 2007 03:52:36 +0000</pubDate>
<dc:creator>livibetter</dc:creator>
<guid isPermaLink="false">12146@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Try to use &#60;code&#62;$bb_roles-&#38;gt;get_roles()&#60;/code&#62; ( &#60;a href=&#34;http://trac.bbpress.org/browser/trunk/bb-includes/capabilities.php#L25&#34; rel=&#34;nofollow&#34;&#62;http://trac.bbpress.org/browser/trunk/bb-includes/capabilities.php#L25&#60;/a&#62; )
&#60;/p&#62;</description>
</item>

</channel>
</rss>
