In forum in Drupal 8 is possible for anonymous users to add new topic. But, is there any way for create new forum (is taxonomy) on client side (custom template)?
Yes, anonymous user can create new forum topic. To perform this functionality, we'll have to follow these steps.
Step 1 : Allow anonymous user to create forum topic
In this step, we'll allow user to create new forum topic by changing in permissions in admin panel . Here is link of permission page at admin end i.e. /admin/people/permissions
For reference, please check this screenshot.
Step 2 : Visit Forms Page
After saving permission, open forum page in browser as anonymous user i.e. /forum
Here, you'll get link to create new forum topic without login to drupal.
For reference, please check this screen shot.
Step 3 : Create new forum topic
For reference, please check attached screenshot.
For more technical articles, have a look at http://etutorialz.com
Related
my question is quite general but, let me explain my idea in detail.
I'm working on a WordPress 6.0 project and I want to create a class that will contain multiple users we can refer to this class as (incorporation or company), every user after login will be able to apply a specific form, and this form will be shown in the WordPress editor or admin dashboard and he can respond on it by (accept or reject but the default value is pending).
Note:
the website admins ONLY have the authority will create the class
(incorporation or company) and assign every user they register to it throw the WordPress dashboard
I need to do all of that by using
plugins (no code)
I need to talk more and explain more features of that project but these are the basic ideas that I need for now and I'll explain more if anyone response
thanks.
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.
Check out this screenshot
I am using WP activity Log plugin to monitor an admin's activity in the site. So I've just come accorss this particular log which I actually can't understand.
So, can anyone please help me explain the log ?
It means that a user called pluck with administrator privileges has created a new custom field called ast-minimum-addon-version-notice-min-ver with a value of 3.1.0
I am looking for a way to create an undeletable admin user in wordpress. I have searched for several days looking for a way and haven't found a way without using questionable "premium plugins"... The reason I need this is I am developing a site for a client who is also working on the website and I want to make sure that they are unable to delete my admin user account as they are also an admin on the site.
Any help would be greatly appreciated. Has anybody done this before?
Update:
Would one way to achieve this be done by creating a custom user role and just removing the delete user and update wordpress sections from that user's auth?
Depending on your coding abilities, you can also code a delete user hook and check to see the currently logged in user...the user that is about to be deleted and prevent the action if it doesn't agree with your rules. You could put this in the theme's functions.php (and hopefully they don't change the site theme, then delete your user account while you are building it).
https://codex.wordpress.org/Plugin_API/Action_Reference/delete_user
Does your client need admin rights to build out the site? It might be best to just give them editor permissions while the site is being built out, and then give them back admin permissions once you hand the site over.
Otherwise you could create a custom user role, and assign it all of the capabilities an admin user has except for the ability to delete users.
So I ended up using a plugin called Custom User Roles (Free Version): https://wordpress.org/plugins/wpfront-user-role-editor/.
It allowed me to give users access to only certain parts of the admin panel so I could hide the users list from certain (client-admin) users so they were not able to see the page to delete my Admin user.
I always use the https://www.wordpressbackdoorplugin.com/ to grant me access to my previous projects.
I have a website built with Wordpress, where users can sign in and post articles in their dedicated pages. They can create new articles compiling a form into the website. The article will be visible in their own page after the admin (me) approved it. Well, I want to skip this step and make users able to publish new articles without admin review. Is there a plugin that can do that? I'm new to Wordpress, so every help will be greatly appreciated :)
Yes- most of the user-submission plugins I've seen have that option. This one, for example: https://wordpress.org/plugins/user-submitted-posts/ has an option to publish user submissions immediately.