Info
- 23 posts
- 12 voices
- Started 2 years ago by wpJunkie
- Latest reply from eddihughes
- This topic is not resolved
User Roles, WP & BBpress
-
- Posted 2 years ago #
Hey there, So i'm 99.99 ready to launch but having an issue with WordPress, BBpress, aMember
New users that signs up can't add a new topic to the forum, wordpress and bbpress are sharing the same database, I figured out what the issue is, When a new user gets added it doesn't assign it a role in BBpress i.e. Member, I have to manually set it each time so that the user can post.
I have set the user roles in the BBpress/Wordpress integration area, See > http://helpdock.net/screenshots/c905c801ef699307e0874064f7d379fb.png
But as you can see here the any new users do not get roles and I have to manually change the role, See BBpress user > http://helpdock.net/screenshots/0fd8d331e62c872981a29d2f256e25aa.png
But in wordpress the new member does get a role See > http://helpdock.net/screenshots/e436685a6d598b9178f93b7dfefa322f.png
Any ideas why its BBpress isn't assigning the user roles so that a user can post a new topic?
-
- Posted 2 years ago #
would this work? http://wordpress.org/extend/plugins/add-bbpress-default-role/
-
- Posted 2 years ago #
Hey gerikg thanks for the help
I uploaded that file and activated it then made a new user but no dice, The user in bbpress didn't get a role of member.
Any other ideas ?
-
- Posted 2 years ago #
Are you running any WordPress plugins that affect your registration process?
-
- Posted 2 years ago #
I am using aMember http://www.amember.com/ that is the membership script users get created in this program when signing up, aMember is set to use subscriber as the default role see > http://helpdock.net/screenshots/456d96758a11f190be049b744a1a1d2d.png
So when the user gets an account in BBpress its is to inactive > http://helpdock.net/screenshots/25466e9bed803fb529b152ff074986e2.png
-
- Posted 2 years ago #
I'm guessing that's probably interfering with bbPress creating new roles properly then in the user's meta data. Try deactivating it and seeing registering works or not.
-
- Posted 2 years ago #
So I disabled aMember and activated the plugin http://wordpress.org/extend/plugins/add-bbpress-default-role/
Signed up for an account on http://example.com/wp-login.php?action=register
And the user got added to the BBpress user list but no role is set, its set to Inactive.
So its not aMember as far as I can tell. its something between WordPress and BBpress
-
- Posted 2 years ago #
That plugin shouldn't even be necessary. I'm not sure to be honest then, integration isn't my strong point.
-
- Posted 2 years ago #
I was thinking of editing a Core file, So I need to locate the file that makes the user a member instead of inactive.
Any one know what file that might be?
-
- Posted 2 years ago #
Would it be in this file maybe? bb-admin/options-wordpress.php
http://trac.bbpress.org/browser/trunk/bb-admin/options-wordpress.php
Basically I want to make the inactive user to be a member by default.
-
- Posted 2 years ago #
I'm afraid
options-wordpress.phpis just the bbPress/WordPress options page and a bit of code. bbPress functions are under the includes directories. -
- Posted 2 years ago #
That last plugin hasn't been updated since January and is only compatible up to wordpress 2.7. It only adds a default role to bbpress, but if you've matched your wordpress and bbpress roles, this isn't necessary, if it ever was.
A plugin should not be necessary in order for someone to register on a wordpress blog or on bbpress. Under the Settings/General you have a place to set the default role for new members; Subscriber, Administrator, Editor, Author, or Contributor for wordpress and those roles can be matched up to bbpress roles under Settings/WordPress Integration.
aMember.com mentions wordpress integration but not bbpress on their site, so I think that might be the issue.
-
- Posted 2 years ago #
It's happening to me. WPMU 2.8.4a+BB 1.0.2+BP 1.0.3 I'm going to try to use
http://bbpress.org/plugins/topic/user-roles-table-for-bbpress/
I'll let you know, I have a lot of users so it might take a while...
-
- Posted 2 years ago #
I click on Rebuild and it worked.
-
- Posted 2 years ago #
I just found this: http://bbpress.org/plugins/topic/wpmu-enable-bbpress-capabilities/
-
- Posted 2 years ago #
Having the same issues here, saw the plugin on wpmu-enable-bbpree-capabilities but I would wait a little until some one more experienced here would say something.
Basically the issue is that after installation and synch between bbpress and wordpress I see that the new users (except admin) have their roles assigned to Inactive.
Any help please ? -
- Posted 2 years ago #
I was trying to figure out where I downloaded this plugin, but the author's site isn't really up at the moment.
http://justintadlock.com/blog/wp-content/uploads/2009/09/inactivetomember.zipWhat this does is check if the current user (once logged in) has a role. If he doesn't, it gives them the default bbPress role.
If anyone can find the original download link, mods, feel free to remove the link to my zip file.
-
- Posted 2 years ago #
Greenshady - here's the author of that plugin:
http://bbpress.org/forums/profile/draglyHere's where it came from I think:
http://trac.bbpress.org/ticket/1016I don't see that it was ever added as a plugin. It's worthwhile to leave it here I think.
-
- Posted 2 years ago #
This plugin works great, thanks!!
-
- Posted 2 years ago #
This doesn't seem to be working for me, all users seem to be assigned a default profile from my wordpress sync plugin. They are assessed as anonymous for some reason and given a specific profile from that plugin.
-
- Posted 2 years ago #
@wpJunkie, did you find any kind of resolution? I'm launching a site with a very similar setup, also using aMember. It's been a challenge. I don't remember if I've tested the ability to post to forums yet. I was wondering if you're using the latest version of WPMU + BuddyPress (with bbPress built in) or if you were using one of the earlier versions of BuddyPress where bbPress was not built in with it.
-
- Posted 1 year ago #
For the info of anyone chancing up on this.
wrt The plugin that justin mentions above. After integrating bbpress and wp 3.0.1, i had my existing members showing up in bbpress as inactive. Not: inactive (no role)
I changed the plugin as follows: - added the else line
function inactive_to_member() { $userID = bb_get_current_user_info( 'id' ); $user_obj = new BP_User( $userID ); $user = bb_get_user( bb_get_user_id( $userID ) ); if(empty($user->capabilities)) { $user_obj->set_role('member'); } else if (is_array($user->capabilities) and ($user->capabilities['inactive'])) $user_obj->set_role('member'); } add_action ('bb_head', 'inactive_to_member', 5, 0); -
- Posted 1 year ago #
anmari thank you for contributing that line of code, I'm very thankful I happen to find this. Thank you thank you!
-
You must log in to post.