Drupal 6 - Content profile and user management - drupal

I have developed a system using Drupal 6. I have implemented user registration with content profile. Which means there is a functionality called company registration. It is creating a content profile with companies and a user account also after click register.
Once the profile and user account created both will be in pending status and I have implemented a functionality where the site admin can approve (using rules.) Once approved the content profile is accessible via front end.
But though the users status change rule is written (rule to change the pending user role to active member) the user is unable to login. Currently after approving the content profile the admin again need to go to the user account and activate it.
Can anybody help me to get this resolved please?

My advice would be to use Triggers with this, so that when a content profile is approved, the linked user profile will also be approved. You should be able to write an "Advanced" trigger for this.
https://drupal.org/documentation/modules/trigger

Related

How to create a woo-commerce store were the user can't purchase an item without being accepted by the admin

Summarized problem:
I'm setting up a woo commerce store where the customer has to ask for permission before creating an account on the store. How do I do that?
Provide background:
My client is selling products that require detailed instructions that only qualified people can use, at the moment anyone can create an account and buy a product. Is there a way the website can notify the client of registering customers before giving the customer access to the products? like an accept or reject email for new customer registrations?
Block the common ways to create an account;
Create a condition that shows the "buy" button just for logged-in users;
Add a form for the user to demonstrate their interest in having the access to buy the products, with the data that is needed to the approval;
The admin check the submited form, and then creates the account with some "welcome" message.
This can be handled with some plugins, using the hooks from woocommerce and wordpress.
You could even create a new panel on Wp dashboard that sees the submited forms, with 2 buttons with "approve", "disapprove", and a field for feedback.
When approve is clicked, the plugin creates a new account and send to the user the feedback and instructions.
When disapprove is clicked, the plugin sends to the user the feedback message with "sorry" message.
This way would be less frustrating to the user, they wouldn't need the approval for every buy.
Some links to help you in this quest:
Woocommerce hooks API Documentation
Add dashboard page : Wordpress Documentation

How to display all the registered profiles in a wordpress site?

I am told to make a wordpress site where i will be having a registration form.. Once the registration is done. The person will be logging in. And on one page say 'collogues', the logged in person will be able to see all the other registered people's photo and their names. And if he opens that photo, the profile will appear. (Profile details taken while registration).
Just like a social media but no friend request, no comments nothing else. Not even algos to match the gender.
Simple login and you will be able to see other people's profile pages and probably edit your profile every now and then....
Your task seems simple. You may use Members plugin to build login system and then upon logging users in you can fetch all users from wp_users table and link their profile to single.php, where its displays all user data.

Drupal maintain rejected user list and authenticate from among

Im developing a drupal website with multistep approval of users ,after
registration the admin rejects a user an email is sent to the user and the user
is deleted from drupal user table .
I want to perform a action where in after a user is rejected he will be kept in
a new table with the username and email .
If the same user contacts admin,the admin will remove the user from the rejected
users list ,because during registration for second time it should also check for
the user in the rejected user list.
Is i t something that is possible in Drupal?
Any pointers?
Everything is possible except the wooden stove! Show some effort, try something on your own and when you get stuck ask.
There's no out of box solution for this (that I know about it), but what I would do is make custom content type for storing users and use hook functions to insert/check existence of rejected users.
hook that is called when user is deleted:
https://api.drupal.org/api/drupal/modules%21user%21user.api.php/function/hook_user_delete/7.x
hook that is called when node (rejected user) is deleted
https://api.drupal.org/api/drupal/modules!node!node.api.php/function/hook_node_delete/7.x
But maybe your admin can just disable user instead of deleting it as first step - that way wouldn't need that extra table at all.

Wordpress Disable User Account?

I want to disable a user's account. When the user's account is disabled then the user should not able to login.
How can I disable user's accounts?
Well you could just delete it. Alternatively, go to the Users dashboard panel and change the user's role to "-- No role for this site --"
A quick Google search gave me the following plugin:
Disable Users
Once installed and activated, a checkbox appears on the user profile settings (only for admins). When checked, the users account will be disabled and they will be unable to login with the account. If they try to login, they are instantly logged out and redirected to the login page with a message that notifies them their account is disabled.
I think it's what you are looking for!
You can create a temporary user or disable user using the following plugin:
Temporary access for users
Temporary Access for users plugins creates the temporary user. If the admin wants to create a temporary user for some limited period of time like give temporary login to a user then this plugin is helpful to you.

New Registrations on a Wordpress website that has no place to register as a subscriber

I have implemented a simple 5 page basic website in wordpress and clearly though it has a contact form it has no place from where a user can register as a subscriber.
However, over the past month I have been receiving mails regularly that a new user has registered on your website. I suspect this to be some sort of BOT activity as the number keeps on rising every day.
How a user can register even if there is no place/form on website wherein he can do so?
What advantage does it have for him?
How can I keep a check on this?
How an user can register even if there is no place/form on website wherein he can do so?
Answer: Even if you have no form for registration, user can register by your wp-login.php page.For example, your admin login have registration link. You can turn on/off user registration from by admin panel. Go Settings->general and uncheck Membership option any one can register.
What advantage does it have for him?
Answer: Most probably the role for new register user as subscriber for your website
How can I keep a check on this?
Answer: Go Settings->general and uncheck Membership option any one can register.

Resources