About User Permissions
Quote from pal on January 11, 2019, 2:25 pmCan I prohibit writing to forums for members of WordPress subscription authority?
I want to divide it into a member who reads only and a member who can write.
Can I prohibit writing to forums for members of WordPress subscription authority?
I want to divide it into a member who reads only and a member who can write.
Quote from Asgaros on January 11, 2019, 3:27 pmHello @pal
Currently every member who has access to a specific category can also create topics or posts inside it. However there are a few restrictions:
- If a topic is closed, only moderators/administrators can create posts inside it.
- If a forum is closed, only moderators/administrators can create topics inside it. Normal users can still create posts in those topics as long as the topics are not closed as well.
If you need the normal user-role and another user-role which has read-only access only, there is currently only one workaround: You need to ban the users who should not be able to create topics and/or posts. Banned users can still access topics normally like a guest (based on your access-permission settings for categories) but are not able to create topics or posts.
Hello @pal
Currently every member who has access to a specific category can also create topics or posts inside it. However there are a few restrictions:
- If a topic is closed, only moderators/administrators can create posts inside it.
- If a forum is closed, only moderators/administrators can create topics inside it. Normal users can still create posts in those topics as long as the topics are not closed as well.
If you need the normal user-role and another user-role which has read-only access only, there is currently only one workaround: You need to ban the users who should not be able to create topics and/or posts. Banned users can still access topics normally like a guest (based on your access-permission settings for categories) but are not able to create topics or posts.
Quote from pal on January 11, 2019, 4:41 pmThank you for your answer. So, can you automatically add a moderator at the time of user registration?
Thank you for your answer. So, can you automatically add a moderator at the time of user registration?
Quote from Asgaros on January 11, 2019, 4:48 pm@pal It will be possible if you add the following custom-code to your themesĀ functions.php file:
add_action('user_register', array($this, 'add_moderator'), 10, 1); public function add_moderator($user_id) { global $asgarosforum; $asgarosforum->permissions->set_forum_role($user_id, 'moderator'); }But I dont suggest you to use this code because every new user (including spam-bots) will automatically have moderator-permissions inside of your forum and can edit/delete all posts.
@pal It will be possible if you add the following custom-code to your themesĀ functions.php file:
add_action('user_register', array($this, 'add_moderator'), 10, 1); public function add_moderator($user_id) { global $asgarosforum; $asgarosforum->permissions->set_forum_role($user_id, 'moderator'); }
But I dont suggest you to use this code because every new user (including spam-bots) will automatically have moderator-permissions inside of your forum and can edit/delete all posts.
Quote from pal on January 11, 2019, 5:00 pmUsing Ultimate Member, I would like to create two types of user registration forms and give moderator privileges to one side.
Hide the registration button,
I would like to tell the registration URL only to the moderator registrant.
Using Ultimate Member, I would like to create two types of user registration forms and give moderator privileges to one side.
Hide the registration button,
I would like to tell the registration URL only to the moderator registrant.
Quote from Asgaros on January 12, 2019, 9:21 pmWhat speaks against applying the moderator forum-role manually to the user? If its only necessary for a few users anyway then this should be the way to go. Its basically just two clicks and does not come with any risks.
What speaks against applying the moderator forum-role manually to the user? If its only necessary for a few users anyway then this should be the way to go. Its basically just two clicks and does not come with any risks.
Quote from pal on January 13, 2019, 3:32 amThere are about 50 people who want to be a moderator, about 150 people want to view only, so I think that it is slightly difficult manually by one administrator.
There are about 50 people who want to be a moderator, about 150 people want to view only, so I think that it is slightly difficult manually by one administrator.
Quote from Asgaros on January 13, 2019, 1:18 pmOkay, I see. So you can provide a special registration-form for moderators which you can announce via mail or something. And for security-purposes this page can be password-protected. That should reduce the risk.
Okay, I see. So you can provide a special registration-form for moderators which you can announce via mail or something. And for security-purposes this page can be password-protected. That should reduce the risk.