Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

CB Action to remove multiple users

9 years 10 months ago #257869 by matt@harrington.co.nz
CB Action to remove multiple users was created by matt@harrington.co.nz
Hello all,

Is it possible to get CB Auto Actions to remove multiple members based on a CB field?

Thanks, Matt.

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
9 years 10 months ago #257881 by nant
Replied by nant on topic CB Action to remove multiple users

matt@harrington.co.nz wrote: Hello all,

Is it possible to get CB Auto Actions to remove multiple members based on a CB field?

Thanks, Matt.


I do not think that there is such an action currently supported.

You can manually delete users from the CB User Management page.
You can even search for the ones you want and then multi-select them in the checkbox field and then delete them all at once.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
9 years 10 months ago #257908 by krileon
Replied by krileon on topic CB Action to remove multiple users
You can use a Code action, then with PHP to load the UserTable object of the user, then run the delete function. I've no plans of adding a delete action. The reason is it's incredibly dangerous to automate user deletes and highly recommend you don't do it. It's better to just block the user and then you can delete them later manually as needed.


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.

9 years 10 months ago #257928 by matt@harrington.co.nz
Replied by matt@harrington.co.nz on topic CB Action to remove multiple users
Great. Thanks. As a bit of background this is for a very specific project which involves a sync with an outside database for voting. The easiest way is to wipe all members and then load members once every couple of months for voting only. The end users will not be using the website for anything other than voting.

Thanks. Matt.

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
9 years 10 months ago #257956 by nant
Replied by nant on topic CB Action to remove multiple users

matt@harrington.co.nz wrote: Great. Thanks. As a bit of background this is for a very specific project which involves a sync with an outside database for voting. The easiest way is to wipe all members and then load members once every couple of months for voting only. The end users will not be using the website for anything other than voting.

Thanks. Matt.


You might want to look at something better suited for polling/voting/surveying ... maybe this:
www.limesurvey.org/en/

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

Moderators: beatnantkrileon
Powered by Kunena Forum