D
Deleted member 10469
Guest
Hello, I would like know how remove all Warning Points for all my user please, from xenforo or a sql line. Thanks.
You should be able bulk update xf_warning.expired_date for all non-expired jobs and then run the cron task to allow all XenForo to expire the warnings.I can empty xf_warning table for delete all warning without problem please ?
@AndyB 's Remove Warn addon is about the closest you can come to it.Hello, there are some way to disable the warning system in the board?
You should be able bulk update xf_warning.expired_date for all non-expired jobs and then run the cron task to allow all XenForo to expire the warnings.
This should clean up all warnings in bulk.
UPDATE `xf_warning` SET `expiry_date` = '1557878400'
This would be better (only change the expiry date of non-expired warnings)
SQL:UPDATE `xf_warning` SET `expiry_date` = '1557878400' where is_expired = 0
It depends. Warning thresholds expire based on time or points, meaning you may still have a bunch of them hanging around.
UPDATE `xf_warning` SET `points` = '0'
This would be better (only change the expiry date of non-expired warnings)
SQL:UPDATE `xf_warning` SET `expiry_date` = '1557878400' where is_expired = 0
SQL:UPDATE `xf_warning` SET `expiry_date` = '1557878400'
You'll want to skip already expired warnings, with this sort of query:If I wanted to expire all warning points on a specific date, would this be the correct way?
UPDATE `xf_warning` SET `expiry_date` = 1557878400 where `expiry_date` < unix_timestamp() or is_expired = 1
You'll want to skip already expired warnings, with this sort of query:
SQL:UPDATE `xf_warning` SET `expiry_date` = 1557878400 where `expiry_date` < unix_timestamp() or is_expired = 1
UPDATE `xf_warning` SET `expiry_date` = 1679507455 where `expiry_date` > unix_timestamp() or is_expired = 0
We use essential cookies to make this site work, and optional cookies to enhance your experience.