Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

User list - member status

  • smFruen
  • smFruen
  • OFFLINE
  • Posts: 116
  • Thanks: 5
  • Karma: 3
8 years 1 month ago - 8 years 1 month ago #285721 by smFruen
User list - member status was created by smFruen
Hey, may I ask. can i make these 3 userlist.

So I can see some member status on the front end.

3 userlist:

1show only banned


2 show only Confirmed-but-not-Enabled


3 show only not-confirmed
Attachments:
Last edit: 8 years 1 month ago by smFruen.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
8 years 1 month ago #285734 by krileon
Replied by krileon on topic User list - member status
Yes, the userlist can be configured to show unconfirmed, unapproved, banned, and blocked users (adjust under Parameters > Display). Regarding the checkmarks you'd need a Custom HTML field that conditions such a display based off those database values. Example as follows.

[cb:if block="1"]<span class="fa fa-times text-danger"></span>[/cb:if]
[cb:if block="0"]<span class="fa fa-check text-success"></span>[/cb:if]

The above should display an X if they're blocked otherwise displays a checkmark. This is the "Enabled" column.


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.

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

  • smFruen
  • smFruen
  • OFFLINE
  • Posts: 116
  • Thanks: 5
  • Karma: 3
8 years 1 month ago - 8 years 1 month ago #285746 by smFruen
Replied by smFruen on topic User list - member status
yes this works

but can i do it by filter, i will on the list, only see the banned.

And another list only see: the Confirmed-but-not-Enabled

And another list only see: the not-confirmed
Last edit: 8 years 1 month ago by smFruen.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
8 years 1 month ago #285757 by krileon
Replied by krileon on topic User list - member status
Yes, you can filter by those values as well. The block column is in Joomla so an Advanced Filter for blocked users should be as follows.

Show Only Blocked:
u.`block` = 1

Show Only Unconfirmed:
ue.`confirmed` = 0

I recommend enabling debug mode, viewing a userlist, then reviewing the query log for its query. The query log can be of great help finding information like this or you can review the _users and _comprofiler tables directly. The alias for _users is "u." and the alias for _comprofiler is "ue.".


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.

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

  • smFruen
  • smFruen
  • OFFLINE
  • Posts: 116
  • Thanks: 5
  • Karma: 3
8 years 1 month ago #285764 by smFruen
Replied by smFruen on topic User list - member status
thank you it works

I will try this debug mode when i work on user list

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

Moderators: beatnantkrileon
Powered by Kunena Forum