In my Wordpress website I am using one directory plugin (Sabai Directory) and WooCommerce.
Now when user register for directory, users are able to use same login detail for WooCommerce (shopping) or if a user buy and product and register at the time of shopping , he is able to user same login on directory.
I want different login for directory and shopping . Means different database user table for both .
If a user register for directory he will not able to use same login for WooCommerce .
Please help me ! If there is any plugin that create separate table for WooCommerce registration , that will be great .
In WordPress the list of all users is maintained in table wp_users. User role/capability can differ ( like by default woocommerce registers a user as "customer" ). So it doesn't matter whether you register through woocommerce or anything else, all users will end up at same place unless the third-party plugin you are using is maintaining separate table or other mechanism for users.
Conclusion:
You can have different login for directory and shopping, iff "Sabai Directory" plugin maintains separate user record (Woocommerce does not). Or develop a plugin that does the thing you need :)
It looks like a capabilities issue. you'll need to add a capability for doctors and then on all your doctors pages add
if (!current_user_can('doctors') {
echo 'You shouldn't be here;
} else {
//doctor page stuff
}
to your pages that you want doctors to view but not shoppers.
Depending on how complex you need it you may need to even add a role
Related
I have to create an admin user for a marketing company in my Wordpress website but I do not want them to have access to WooCommerce data. In other words, they should not be gain information regarding sales data, customer names, email, address and so on. However, they need to have access to themes and plugins.
Is there a way to hide WooCommerce data from admin view or create a user account with all the admin privileges except WooCommerce access?
Please help,
Thank you
You could create a new role in code and add specific capabilities to it. But it's much easier to use a role editor plugin like User Role Editor
Just create a new role and assign the capabilities you want while leaving out those of Woocommerce.
Hi I wanted my wordpress site putting user role for product I want the user1 can only see and count the product he uploaded and he cannot see the other product uploaded by the other user is there a free plugin for that in wordpress ?
try to use this
https://wordpress.org/plugins/user-role-editor/
this allow to add various capability to the user, may it will help?
I have written a plugin, where pre-created users can log in to the system and configure the application. Problem is when I give them higher roles they can view other content on the back-end of the site.Such as creating posts, pages and etc. If I give law level role such as subscriber, user can not view the pluging page. They can't do any configuration.
What I need is only give permission to view my admin panel.
This is the code I create admin panel in wordpress.
function oscimp_admin_actions() {
add_management_page("Pages", "My Pages", "activate_plugins", "Skill-Pages", "skills_list_admin");
}
I would like to create a user from subscriber and allow only to this plugin's admin panel. Can we do it?
You can resolve this with add_cap() method of Wordpress. http://codex.wordpress.org/Function_Reference/add_cap
Also you would like to read those articles about roles and caps: http://www.garyc40.com/2010/04/ultimate-guide-to-roles-and-capabilities/ and http://wp.tutsplus.com/articles/quick-tip-user-permissions-and-your-plugin/, no doubt they will help you
I am trying to make a wordpress site which will allow users to register by themselves and log into the site and have a profile. IS there such a plugin that will allow me to incorporate this into my site? I have looked around and being that I have very little experience with making sites/wordpress I have decided to ask some experts.
I know with wordpress you get a "blog" sort of site, but i'm hoping that if the plug-in i'm looking for exists then I can make my site to look different. The reason I am asking for each individual member to have their own "profile page/ private page" is because I want to be able to upload data to their specific pages and they should be able to see the data without seeing others'.
Thanks for any and all help you can provide me.
If I can't find a suitable solution, I will try to build a site with joomla, I had gone with wordpress because I had heard that it was easier to use.
Yeah, There is one plugin to do all these in wordpress. Plugin name: Profile Builder - front-end user registration, login and edit profile
plugin Link: http://wordpress.org/plugins/profile-builder/
Yeah, There is one plugin to do with all the things which you want. Plugin Name : "Theme My Login"
Plugin Features :
Your registration, log in, and password recovery pages will all match
the rest of your website
Includes a customizable widget to login anywhere from your blog
Redirect users upon log in and log out based upon their role
Show gravatar to users who are logged in.
Assign custom links to users who are logged in based on their role
Customize user emails for registration and/or password recovery
Send user emails in HTML format
Allow users to set their own password upon registration
Require users to be approved or confirm e-mail address upon
registration
Theme user profiles
Please refer the following Location :
Theme My Login
My website doesn't need the user login functionality. Only some users need to post new nodes.
How do I remove the user registration and the login forms in Drupal?
While it's technically possible to remove the login functionality, you shouldn't, because then your administrator could never log onto the site.
In order to remove the register functionality, you simply need to browse to admin/user/settings (for Drupal 6) or admin/config/people/accounts (for Drupal 7) and select the the "Only site administrators can create new user accounts" option.
While jhedstrom answer does work, I particuarly find that it doesn't fully address the issue.
Here's a simple way to remove the login form from the site on Drupal 7.
First, let's create a new simple page called Admin. Simply go to Content - Add Content - Basic Page. Enter whatever details you'd like such as title, body, etc. just make sure that under URL path settings you specify a common alias for adminstration, I used admin.
Second step, let's make sure that the login form only shows on the admin page we just created. Navigate to Structure - Blocks - User login (note tat the block name may vary from installation to installation), and hit Configure. Under Visibility settings select the option Only the listed pages so that the block only shows for the pages you specify on the input, and enter the alias you set on the step above (admin).
Finally, let's ensure that only administrators can create accounts, by following jhedstrom's suggestion. Go to Configuration - People - Account settings, then under Registration and cancellation, ensure that the box for Administrators Only is selected for the Who can register accounts? option.
I think this is a much nicer and detailed approach to ensure that the login form isn't displayed, considering you don't need people creating accounts on your site.
You can override it using hook_menu(), move login page in any other suitable for administrative needs place
You can disable the forms all together. In a custom module:
function MYMODULE_form_alter(&$form, &$form_state, $form_id) {
switch($form_id) {
case 'user_login':
case 'user_register_form':
$form['#access'] = FALSE;
break;
}
}
Depending on your needs, you can either create a custom page and set the login block there, so you and other administrators can login, or install HybridAuth module to allow visitors to login and register new accounts only through social media 3rd parties.
You can use the Disable Login Page module to disable the login page completely for the general public. Only the webmaster or site admins who have access to a secret key/value pair will be able to access the login page. Everybody else will get access denied at user/login page. This will work in Drupal 8 and Drupal 9.