User Role
-
Hey,
I want that every User from my Site who is an “Autor”, must be in my Forum as an Spectrator. Is it possible with an function?
best regards
-
My Problem is already there đ
When this is not possible it were also ok when I had a function which says…
Every “Autor” is show in my WordPress Forum as an “Premium User”.
Hope anybody can help me…
I thing anything like this…
function my_custom_roles3( $role, $user_id ) {
if( $role == ‘Author’ )
return ‘***Premium User***’;return $role;
}
add_filter( ‘bbp_get_user_display_role’, ‘my_custom_roles3’, 10, 2 );
Use the
bbp_get_user_role_map
filter, to map WordPress roles to bbPress roles.thank you for the tip.
Can you please give me the function…
It doesn´t work so.
best regards
Can you please help me with that???
PLEASE
No,
can you help me?
try this – it should work but is untested
Please come back and let us know if it does or doesn’t
add_filter ('kal_get_user_role_map()' , 'bbp_get_user_role_map()' ) ; function kal_get_user_role_map() { // Get the default role once here $default_role = bbp_get_default_role(); return (array) apply_filters( 'kal_get_user_role_map', array ( 'administrator' => bbp_get_keymaster_role(), 'editor' => $default_role, 'author' => bbp_get_spectator_role(), 'contributor' => $default_role, 'subscriber' => $default_role ) ); }
This goes in your function file
Thank you but it doen´t change anything…
Other idea?
it would only apply to new users.
you can use the bulk action in dashboard>users to change current ones
I have try it but bulk action doesn´t work.
Maybe you can take a look on my Site?
Maybe you can take a look on my Site?
sorry that is beyond free support.
I have try it but bulk action doesn´t work.
can you say what didn’t work – some detail would be useful
After I make Bulk aktion nothing change.
On the Picture you can see the Situation better.
With Bulk Action were it perfect. But it doesn´t work.
Hope you can help me?!?!
Hello again,
can anybody give me a function that a spectator have the same capability as a participant.
Please
OK, I have tried it with this…
add_filter( ‘bbp_get_dynamic_roles’, ‘ntwb_bbpress_custom_role_names’ );
function ntwb_bbpress_custom_role_names() {
return array(// Participant
bbp_get_participant_role() => array(
‘name’ => ‘Standard User’,
‘capabilities’ => bbp_get_caps_for_role( bbp_get_participant_role() )
),// Spectator
bbp_get_spectator_role() => array(
‘name’ => ‘–>Premium User<–‘,
‘capabilities’ => bbp_get_caps_for_role( bbp_get_participant_role() )
)
);
}I can now change every User to a “Standard User” or “Premium User”. That is what I want, BUT with the Premium User I can not write any replies or others. With the Standard User is everything ok.
Where is the mistake???
Here I have found why the bulk action don´t work
Now I have change all Users with bulk action.
Thank you
- You must be logged in to reply to this topic.