Register User as Both `Subscriber` & `Participant` - wordpress

I am currently working on a wordpress website. It is both a blog and a forum.
bbPress Documentation says it has 5 roles:
Keymaster – Can create, edit and delete other users’ forums, topics
and replies. Can manage Tags, and moderate a forum with the moderation
tools. Has access to global forum settings, tools, and importer.
Moderator – Can create and edit forums. Can create, edit and delete
other users’ topics and replies. Can manage Tags, and moderate a forum
with the moderation tools.
Participant – Can create and edit their own
topics and replies.
Spectator – Can only read topics and replies.
Blocked – All capabilities are explicitly blocked.
Wordpress by default has 6 roles.
Super Admin – somebody with access to the site network administration
features and all other features. See the Create a Network article.
Administrator (slug: ‘administrator’) – somebody who has access to all
the administration features within a single site.
Editor (slug: ‘editor’) – somebody who can publish and manage posts including the
posts of other users.
Author (slug: ‘author’) – somebody who can
publish and manage their own posts.
Contributor (slug: ‘contributor’) – somebody who can write and manage their own posts but cannot publish them.
Subscriber (slug: ‘subscriber’) – somebody who can only manage their profile.
In wp-admin/options-general.php page it says:
New User Default Role Subscriber.
In wp-admin/options-general.php?page=bbpress it says:
Automatically give registered visitors the Participant forum role.
I am assuming that if I signup using wp-login.php?action=register then I am signing up as Subscriber
I am also assuming that if I signup using a page that use [bbp-register] shortcode then I am signing up as Participant.
This seems inconsistent to me.
Is there any way, when a user registers, he will be both a Subscriber and a Participant.

You need to hook action on user_register to add second role automatically:
add_action('user_register', 'user_register_participant', 10, 1);
function user_register_participant($user_id)
{
$u = get_user_by('ID', $user_id);
$u->add_role('participant');
}
Put that code in the end of functions.php file of your theme, and this should do the trick.
UPD: use wp-login.php?action=register for registering users henceforth.

Related

Posting in behalf of Wordpress "Contributor" user

I have a news website belongs to old school, and I am receiving articles/opinions through email, and I manage adding theme my self.
I am planning now to switch to Wordpress and until I can enable all writers to post their articles by giving them "Contributor" role, is there any Wordpress plugin that enable Admin/Author to post an article in behalf of any "Contributor" user?
Thanks
Your editors don't need a plugin for this. On the admin page in which you edit posts (or pages) near the bottom there's a dropdown list from which your editor can select the post's author. The selected author shows up as the post's author on the front end.
Your contributors will be able to write and edit their own posts. But, only an editor or administrator can publish them: make them visible on the front end.
That's handy: it lets you have contributors you don't trust completely. Editors vet their work before it shows up on the site.
But, if your editors aren't diligent, your contributors will never see their work published. On a volunteer site (such as your application) they'll become discouraged and stop writing stuff.
You may want to err on the side of letting people publish stuff, then removing it if you don't like it, or if it's spam, or whatever. To do that you make people "editors" rather than contributors.
Yes , learn here about the editor role , you can create as many as editors from wp-admin panel and editors can create and modify the posts via their provided login or their created login.
Editor capabilities : https://codex.wordpress.org/Roles_and_Capabilities#Editor
You can also manage their capabilities by using : User Role Editor plugin
I don't know of any such plugins but if the number of articles posted by contributors are less than you can simply write that article and publish it. Once publish you can than change the author to any contributor from the list on the posts page.

What CMS should I use site that has a members only section

I am helping out a friend and rebuilding her dance business site.
Requirements:
- site owner friendly CMS for updates
- Prefer a free cms
- main site and a few pages will be for new/potential clients
- members only section where she can post updates instead of having to email a news letter.
- an additional page or 2 exclusive to members where videos can be posted for at home practice
I am thinking wordpress may be a great option for this. Any tutorials out there to help with the initial build of a member only section? I want to make sure I lock down the member section properly.
I am hoping to also generate an email each time a post is made in the members only section. Also use categories in the members only section to generate emails to members with corresponding tags that an update was made.
Is this attainable?
I am open to other CMS platforms but they must be responsive, free, and easy for the site owner to update.
Go for wordpress. As you are a starter use subscription / membership plugin to manage the member setting that you desire, and for email you can use newsletter plugins (both free adn paid) . Hope this helps :)
And for the final question : no wordpress is the easiest one out there

WordPress - How do I approve posts before they are allowed to be posted?

I'm currently working with a WordPress site and the owner wants the posts that are created by other members to be sent to his email with a way of approving the post before it's actually made public and posted.
I'm pretty new in general to web design and even newer to WordPress. Any help would be really appreciated!
I used to run a large blog site which required a workflow for approvals and QA of posts. We customized the Edit Flow plugin, which allows for stages for a post. You can find the plugin here: https://wordpress.org/plugins/edit-flow/.
In our case, I used Draft, Pending Editing, In Editing, For Approval, Approved, Staged, and Ready. Only when it was set to Ready would the publish button appear (this is one of the edits we made to the plugin, and donated back. Not sure if it is in the current version or not.) Only admins would be able to change the stage of the post, so this way no one was able to publish except admins.
So if you just want to approve the posts you can do it in the admin interface. The Request URL should be: /wp-login.php . There is one the left side a menu with a section 'posts'. ( You can approve the posts here )
I hope it is useful.

Wordpress user roles/permissions

I have an admin user, and a contributor user.
Now when the contributor makes a new page it gets sent for approval by the administrator user. This is good , however i want this same ability but for when editing pages.
So if a contributor edits any page, the changes have to be approved by an administrator.
I do not know how to achieve this, I am using the User Role Editor Plugin but can still not get this to work.
Does any one know how i can implement this?
According to the codex, a contributor is somebody who can write and manage their own posts but cannot publish them. I'm assuming your contributor is editing posts that have already been published? All you need to do is set them to draft and publish them again once you're happy with the edits.

Wordpress and buddypress advice

I have a website that I want to setup so that users can register for the site but the administrator of the site will have the final say on whether or not they can be a member of the site or not.
I am running Wordpress 3.0.1 and Buddypress 1.2.5, buddypress is used to register the user, so I assume it will need to be a buddypress plugin that is used to allow or deny the user. I have searched and searched and cannot come up with any plugin that replicates this functionality. Are there any out there, or anything that gives a similar experience?
Many Thanks To Anyone That Helps,
sea_1987
Here is a BP component for Allow / Deny User:
http://webdevstudios.com/support/wordpress-plugins/buddypress-registration-options/
The description:
A WordPress BuddyPress plugin that allows for new member moderation, if moderation is turned on from the admin settings page, any new members will be blocked from interacting with any buddypress elements (except editing their own profile and uploading their avatar) and will not be listed in any directory until an administrator approves or denies their account.
I have just completed a thorough research exercise on this, with the same requirement in mind. The sad truth of the matter is that most of the plugins that supposedly give you this functionality do not work fully and properly. I tried a number of plugins including:
Buddypress Registration Options
Absolute Privacy
Angsuman’s Authenticated WordPress Plugin
BuddyPress Private Community
All of these failed to give me bulletproof security. They largely seemed to block standard WordPress pages, but didn't block public access to the Activity, Members, Groups and other sections. Other issues were simply getting it to work with WP 3.0.1. I found I had to dig into the plugin code and hack it to get a decent result.
Finally, I settled on a plugin called "registered-users-only-2". This totally blocks users who are not registered. However, it doesn't give you moderation functionality.
I hope this helps your quest.

Resources