I can see Drupal comments have a link to user's profile (the commenter) when I am logged in. But as anonymous visitor I can not see that link.
I want to make the link working for all visitor. So that the visitor can go to the user's page by clicking it. How can I do that?
If you may access the database. Why don't you try to make yourself an administrator role?
The data save in users_roles table. Find your uid and change the rid to administrator[maybe it's 3].
Hope this may help you.
You can modify the database directly however its really not recommended under any conditions. You can however use drush to change the role of a user. Review this page.
Related
I don't want users to have access to create new users, I just wanted to leave it to him to manage his own profile.
The ideal was to leave only Profile.
you suppose to change user role to subscriber only and also you can user remove_cap wordpress function to remove capabilities from user.
below link my help you to resolve issue
https://developer.wordpress.org/reference/classes/wp_role/remove_cap/
In my Wordpress control panel, under the menu Articles and Categories, there are a lot of strange items created automatically.
Anyone could explain me why? It's an hacker attack to my wordpress site? Or maybe could be a plugin?
Thanks
It looks, like you have unwanted guest. First check your password and change it to a secure one, also think about 2F authentication.
Check if there are any new users with privileges other than intended (the ones you have created).
All new user roles should be set to subscriber, unless you need to change it.
Please go to settings>general and check if the new user role is anything other than subscriber. If this happens to be the case, you should go to the users tab as well and delete or change privileges to the accounts.
I have a subdomain,I want to only users can see my site.
when someone logged in to my site,Let the user see the login screen.
How I can do?
Simplest solution will be to use the following plugin (Registered Users Only): https://wordpress.org/plugins/registered-users-only/
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 am new to Drupal.
I am working on a website where many different type of users are there. The requirement is to allow only bloggers to delete comments related to their blogs.
Yes i know that it can be done from admin. But the client is telling, they don't want to do it from admin rather that need to be achieved through code itself.
Please guide me from where (module, features etc) i need to write the code so that it will affect the permissions. And how that code should be written.
Any type of help will be highly appreciated.
Thanks
In Drupal you can create Roles for the users.
You can specify what users will have the "blogger" role. And then, you can add permissions only for this role. In your case, you want to set the permission of delete comment.
I think you may find this link useful: https://drupal.org/node/120614
Regards.
Maybe this link could help to create and set permissions programmatically. http://www.dibe.gr/blog/drupal-7-create-users-and-roles-programmatically
Otherwise, there is always Drupal official documentation: https://drupal.org/documentation/modules/user