Trust levels and moderation
Trust levels
OF_Trust recomputes a user's trust level from their post count and account age. Levels gate who can create threads, attach media, and access restricted rooms.
| Level | Name | Default thresholds |
|---|---|---|
| 0 | New Member | Just registered |
| 1 | Basic | 1+ post, 1+ day old |
| 2 | Member | 10+ posts, 7+ days old |
| 3 | Regular | 50+ posts, 30+ days old |
Thresholds are configurable in OForum, Settings, Trust Thresholds.
phpOF_Trust::get_level( int $user_id ): int;
OF_Trust::recalculate( int $user_id ): int;Permissions API
phpOF_Permissions::can_post( int $user_id, int $room_id ): bool;
OF_Permissions::can_moderate( int $user_id ): bool;
OF_Permissions::is_ip_banned( string $ip ): bool;Moderation actions
All moderation actions write to wp_of_mod_log with the actor ID, target, action, and timestamp.
- Report queue: flagged posts collect in
wp_of_reportsuntil a moderator triages them. - Shadow ban: a shadow-banned user sees their posts normally, but everyone else sees nothing.
OF_Moderation::shadow_ban( int $user_id ). - IP ban: blocks an IP in
wp_of_ip_bans. - Audit log: bans, unbans, deletions, pins, and closes all log to the moderation table.
Spam and rate limits
OF_Spamruns content through a simple spam check (configurable keywords + Akismet hand-off if installed).OF_Rate_Limitthrottles repeat posting from the same user/IP.

