MyBB Community Forums

Full Version: Suspensions and the mybb_users table
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,
Are the fields suspensiontime and suspendposting in the mybb_users table still used in 1.8? I read somewhere they had something to do with the warning system but I do not understand what's going on with them. Is suspensiontime a UNIX timestamp of when the suspension ends or just the length of time? If it is the length of time, how does the system know when the time period has elapsed.

Thanks!
suspensiontime field stores ending time of the suspension. its value is in unix timestamp value.

a task is run every half an hour to check the suspensions (file => ~/inc/tasks/usercleanup.php)
Quote:Half-hourly User Cleanup
Automatically expires bans, warnings and posting suspension and moderation times for users.
(2017-06-10, 04:48 AM).m. Wrote: [ -> ]suspensiontime field stores ending time of the suspension. its value is in unix timestamp value.

a task is run every half an hour to check the suspensions (file => ~/inc/tasks/usercleanup.php)
Quote:Half-hourly User Cleanup
Automatically expires bans, warnings and posting suspension and moderation times for users.

If suspensiontime is 0 does that mean indefinite non-expiring suspension?
if suspendposting field set to 1 and suspensiontime set to 0 then that means non-expiring suspension
(2017-06-10, 02:37 PM).m. Wrote: [ -> ]if suspendposting field set to 1 and suspensiontime set to 0 then that means non-expiring suspension

Greatly appreciated! Thanks!