Skip to Content Skip to Menu

User list with pending, unapproved users only

5 months 1 week ago #338293 by wintercorn
Client doesn't want to use the normal approve/decline function until users are ready to be approved/declined but would like to see a list of users pending approval as a user list. This list will show other registration information etc.

I can't seem to find the correct filter to show them so is there a specific function or am I looking at a db query?

Thanks

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48536
  • Thanks: 8290
  • Karma: 1445
5 months 1 week ago #338296 by krileon
Replied by krileon on topic User list with pending, unapproved users only
Edit your userlist this under Parameters > Display ensure you've set the following.

Show Blocked: Yes
Show Unapproved: Yes
Show Unconfirmed: Yes

Next use the following Advanced Filter.
Code:
ue.`approved` = 0

That should give you a list of unapproved users.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: wintercorn

Please Log in or Create an account to join the conversation.

5 months 1 week ago #338298 by wintercorn
Replied by wintercorn on topic User list with pending, unapproved users only
That works greatly. Thanks.

Please Log in or Create an account to join the conversation.

5 months 1 week ago #338299 by wintercorn
Replied by wintercorn on topic User list with pending, unapproved users only
Sorry, how about including users with unconfirmed email addresses also?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48536
  • Thanks: 8290
  • Karma: 1445
5 months 1 week ago #338300 by krileon
Replied by krileon on topic User list with pending, unapproved users only
Advanced Filters let you directly add to the userlist query. So you can use that to basically filter down to whatever you like. The _comprofiler table alias is "ue" and the _users table alias is "u". For unconfirmed you'd have the below.
Code:
ue.`confirmed` = 0

Then combining the two so it shows for unapproved or unconfirmed you'd have the below.
Code:
ue.`approved` = 0 OR ue.`confirmed` = 0


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: wintercorn

Please Log in or Create an account to join the conversation.

5 months 1 week ago #338307 by wintercorn
Replied by wintercorn on topic User list with pending, unapproved users only
Excellent. Works brilliantly.
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum