Skip to Content Skip to Menu

Private Messaging Auto Delete

  • sirweb
  • sirweb
  • OFFLINE
  • Posts: 226
  • Thanks: 25
  • Karma: 2
1 year 11 months ago #331902 by sirweb
Private Messaging Auto Delete was created by sirweb
Hello,
Auto delete seems to work only on deleted users?
We do never delete old users, because we need to keep them for historical reasons.
All expired users are placed in an own user group without access rights.
And for that reason, we do never get rid of old message for these userss.

Would it be conciderable to add a feature to delete messages for selected groups?

I have concidered to move expired user accounts to a separate database, but I haven´t found a solution for that.
Any other suggestions are highly appreaciated .

TThanks

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
1 year 11 months ago #331917 by krileon
Replied by krileon on topic Private Messaging Auto Delete

Auto delete seems to work only on deleted users?

Correct.

Would it be conciderable to add a feature to delete messages for selected groups?

We've no plans to implement such a feature in core, but you could implement it yourself using CB Auto Actions.

I have concidered to move expired user accounts to a separate database, but I haven´t found a solution for that.

That is ideally the best approach if you just need the data for historical reasons, but you don't actually need the data to exist in Joomla. This would prevent bloat in your database. Probably easiest way to do this is probably just directly in your database. You could schedule queries to move such users and their data to separate tables using MySQL events.

dev.mysql.com/doc/refman/8.0/en/create-event.html

Alternatively you could use CB Auto Actions to run queries and schedule a CRON task to run the auto action at whatever interval you need.


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: sirweb

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

Moderators: beatnantkrileon
Powered by Kunena Forum