Skip to Content Skip to Menu

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

Front-end Userlist showing "Account Status" Column (Banned or Active)

  • xengent
  • xengent
  • OFFLINE
  • Posts: 54
  • Thanks: 2
  • Karma: 0
8 years 7 months ago - 8 years 7 months ago #279084 by xengent
Is it possible to have a CB Userlist on the front end with a column that shows the status of the user (specifically whether they are Banned or Active? There doesn't seem to be a field for this in the CB field list.

Or do I need to create a custom HTML field based on their status (in which case, how do I do this, and with which CB substitution statement?)
Last edit: 8 years 7 months ago by xengent.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 7 months ago - 8 years 7 months ago #279112 by krileon

Is it possible to have a CB Userlist on the front end with a column that shows the status of the user (specifically whether they are Banned or Active? There doesn't seem to be a field for this in the CB field list.

Yes, create a userlist and under Parameters > Display and ensure your userlist is configure to display banned, blocked, etc.. users. Next create a Custom HTML field with the following to display users status.

Code:
<div> [cb:if block="1"]Blocked[/cb:if] [cb:if block="0"]Active[/cb:if] </div> <div> [cb:if approved="0"]Unapproved[/cb:if] [cb:if approved="1"]Approved[/cb:if] </div> <div> [cb:if confirmed="0"]Unconfirmed[/cb:if] [cb:if confirmed="1"]Confirmed[/cb:if] </div> <div> [cb:if banned="1"]Banned[/cb:if] </div>


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.
Last edit: 8 years 7 months ago by krileon.

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

  • xengent
  • xengent
  • OFFLINE
  • Posts: 54
  • Thanks: 2
  • Karma: 0
8 years 7 months ago #279130 by xengent
Worked great, except the "block" values you had are reversed.

This is a simple question but I can't find an answer; What are the functional differences between:

a. Banning
b. Disabling
c. Unapproving

a user?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 7 months ago #279157 by krileon
A users profile it self can be banned. This is done while viewing another users profile as a CB Moderator. This strictly only bans their profile though. Confirmation is in regards to registration confirmation (to confirm their email). Approval is in regards to registration approval (by a CB Moderator). A user can be banned, but approved, etc..


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.

Moderators: beatnantkrileon
Powered by Kunena Forum