Abuja Digital Studio · Est. 2018
Start a Project
DocsOForumTrust levels and moderation
Reference

Trust levels and moderation

OForumorravo.com/docs/oforum/trust-moderation

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.

LevelNameDefault thresholds
0New MemberJust registered
1Basic1+ post, 1+ day old
2Member10+ posts, 7+ days old
3Regular50+ 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_reports until 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_Spam runs content through a simple spam check (configurable keywords + Akismet hand-off if installed).
  • OF_Rate_Limit throttles repeat posting from the same user/IP.
Trust levels and moderation · OForum Docs | Orravo