Admin Panel Guide
The OpenForum admin panel provides comprehensive tools for managing your forum, users, content, and community. This guide covers all administrative features and best practices.
๐ฏ Accessing the Admin Panelโ
Requirementsโ
- User account with admin role
- Active login session
- Admin privileges enabled in database
Access URLโ
Navigate to /forum/admin from your forum's base URL:
- Development:
http://localhost:3000/forum/admin - Production:
https://yourdomain.com/forum/admin
The first registered user must be manually promoted to admin via database update:
UPDATE "user" SET role = 'admin' WHERE email = 'your-email@example.com';
๐ Dashboard Overviewโ
The admin dashboard provides a comprehensive overview of your forum's activity and health.
Key Metricsโ
Forum Statistics
- Total threads and posts
- Active users (daily/weekly/monthly)
- New registrations
- Content growth trends
User Engagement
- Most active users
- Recent user registrations
- User retention metrics
- Popular discussion topics
Content Overview
- Recent threads and posts
- Reported content requiring attention
- Trending discussions
- Category activity levels
Quick Actionsโ
Content Management
- Review reported content
- Moderate recent posts
- Pin important announcements
- Lock inappropriate threads
User Management
- Review new user accounts
- Handle user reports
- Assign moderator roles
- Manage banned users
๐ฅ User Managementโ
User Overviewโ
User Listing
- View all registered users
- Search and filter users
- Sort by registration date, activity, role
- Export user data (GDPR compliance)
User Details
- Complete user profiles
- Registration information
- Activity history
- Reputation scores
- Moderation history
Role Managementโ
Available Roles
- Admin: Full forum management access
- Moderator: Content moderation and user management
- User: Standard forum participation
- Banned: Restricted access
Assigning Roles
// Update user role
UPDATE "user" SET role = 'moderator' WHERE id = 'user-id';
Role Permissions
| Permission | User | Moderator | Admin |
|---|---|---|---|
| View content | โ | โ | โ |
| Create posts | โ | โ | โ |
| Edit own posts | โ | โ | โ |
| Delete own posts | โ | โ | โ |
| Edit any post | โ | โ | โ |
| Delete any post | โ | โ | โ |
| Pin/lock threads | โ | โ | โ |
| Manage categories | โ | โ | โ |
| Manage users | โ | โ ๏ธ Limited | โ |
| Access admin panel | โ | โ ๏ธ Limited | โ |
User Moderationโ
Banning Users
- Navigate to user profile
- Click "Ban User"
- Set ban reason and duration
- Confirm ban action
Ban Options
- Temporary ban: Set expiration date
- Permanent ban: No expiration
- IP ban: Block IP address
- Silent ban: User unaware of ban status
Unban Process
- Go to banned users list
- Select user to unban
- Remove ban reason
- Restore user permissions
๐ Category Managementโ
Creating Categoriesโ
Basic Category Setup
- Navigate to Categories in admin panel
- Click "New Category"
- Fill out category details:
- Name: Descriptive category name
- Description: Purpose and guidelines
- Slug: URL-friendly identifier
- Icon: Choose from Lucide icon library
- Color: Brand color or theme color
Advanced Settings
- Display Order: Numerical sort order
- Visibility: Public or hidden categories
- Permissions: Role-based access control
- Moderation: Auto-moderation settings
Category Organizationโ
Best Practices
- Logical grouping: Related topics together
- Clear naming: Descriptive, unambiguous names
- Appropriate icons: Visual recognition aids
- Consistent colors: Brand-aligned color scheme
- Proper ordering: Most important categories first
Example Category Structure
๐ข Announcements (pinned, admin-only posting)
๐ฌ General Discussion (open to all users)
โ Help & Support (help-focused discussions)
๐ก Feature Requests (improvement suggestions)
๐ Bug Reports (issue tracking)
๐ Introductions (new user welcomes)
Category Moderationโ
Thread Management
- Pin important threads to top
- Lock threads to prevent replies
- Hide threads from public view
- Move threads between categories
- Merge duplicate threads
Category Settings
- Read permissions: Who can view
- Write permissions: Who can post
- Moderation level: Auto-approve vs review
- Notification settings: Admin alerts
๐งต Thread Moderationโ
Thread Overviewโ
Thread Listing
- View all forum threads
- Filter by category, author, status
- Sort by date, popularity, reports
- Bulk actions for multiple threads
Thread Status
- Active: Normal discussion state
- Pinned: Highlighted at top of category
- Locked: No new replies allowed
- Hidden: Invisible to regular users
- Deleted: Marked for removal
Moderation Actionsโ
Individual Thread Actions
-
Pin Thread: Highlight important discussions
UPDATE thread SET isPinned = true WHERE id = 'thread-id'; -
Lock Thread: Prevent new replies
UPDATE thread SET isLocked = true WHERE id = 'thread-id'; -
Hide Thread: Remove from public view
UPDATE thread SET isHidden = true WHERE id = 'thread-id'; -
Move Thread: Change category
UPDATE thread SET categoryId = 'new-category-id' WHERE id = 'thread-id';
Bulk Actions
- Select multiple threads
- Apply actions to all selected
- Export thread data
- Archive old discussions
Content Guidelinesโ
Moderation Criteria
- Spam: Promotional or irrelevant content
- Harassment: Personal attacks or bullying
- Off-topic: Content not relevant to category
- Duplicate: Redundant discussions
- Inappropriate: Offensive or harmful content
Moderation Response
- Review reported content
- Assess violation severity
- Apply appropriate action
- Document moderation decision
- Notify user if necessary
๐ Reports Managementโ
Report Typesโ
Content Reports
- Spam or promotional content
- Harassment or abuse
- Inappropriate content
- Copyright violations
- Misinformation
User Reports
- Harassment or stalking
- Fake accounts
- Ban evasion
- Terms of service violations
Report Workflowโ
Report Processing
-
Review report details
- Reported content or user
- Reporter information
- Report reason and details
- Timestamp and context
-
Investigate thoroughly
- Review reported content/user history
- Check community guidelines
- Consider context and severity
- Gather additional evidence if needed
-
Take appropriate action
- No action needed (false report)
- Edit or remove content
- Warn or suspend user
- Ban user (temporary or permanent)
-
Document decision
- Record action taken
- Note reasoning
- Update user/content status
- Notify parties if appropriate
Report Status Tracking
- Open: Awaiting review
- In Progress: Under investigation
- Resolved: Action completed
- Dismissed: No action needed
๐ Analytics and Insightsโ
Forum Statisticsโ
Growth Metrics
- New user registrations over time
- Thread and post creation trends
- Category activity levels
- User engagement patterns
Popular Content
- Most viewed threads
- Highest voted posts
- Most active categories
- Trending discussions
User Behavior
- Login frequency
- Posting patterns
- Category preferences
- Search queries
Performance Monitoringโ
System Health
- Database query performance
- Page load times
- Error rates
- Uptime statistics
Content Quality
- Report-to-content ratio
- Moderation action frequency
- User satisfaction metrics
- Community growth health
โ๏ธ System Settingsโ
General Settingsโ
Forum Configuration
# Basic settings
APP_NAME="Your Forum Name"
FORUM_DESCRIPTION="Community discussion platform"
FORUM_URL="https://yourdomain.com"
# Registration settings
ALLOW_REGISTRATION="true"
REQUIRE_EMAIL_VERIFICATION="true"
DEFAULT_USER_ROLE="user"
Email Settings
- SMTP configuration
- Email templates
- Notification preferences
- Delivery monitoring
Security Settingsโ
Authentication
- Password requirements
- Two-factor authentication
- Session timeout
- Login attempt limits
Content Security
- File upload restrictions
- Content filtering
- Spam detection
- Rate limiting
๐ ๏ธ Maintenance Tasksโ
Regular Maintenanceโ
Daily Tasks
- Review reported content
- Check new user registrations
- Monitor system health
- Respond to community issues
Weekly Tasks
- Analyze forum statistics
- Update pinned announcements
- Review category organization
- Plan community events
Monthly Tasks
- Database maintenance
- Security updates
- Backup verification
- Performance optimization
Database Maintenanceโ
Cleanup Operations
-- Remove old deleted posts
DELETE FROM post WHERE isDeleted = true AND updatedAt < NOW() - INTERVAL '30 days';
-- Clean up expired sessions
DELETE FROM session WHERE expiresAt < NOW();
-- Archive old notifications
DELETE FROM notification WHERE createdAt < NOW() - INTERVAL '90 days' AND read = true;
Performance Optimization
- Rebuild database indexes
- Update query statistics
- Monitor slow queries
- Optimize database configuration
๐จ Emergency Proceduresโ
Security Incidentsโ
Suspected Account Compromise
- Immediately ban affected account
- Review recent activity
- Check for data breaches
- Reset affected passwords
- Notify users if necessary
Content Spam Attack
- Identify spam pattern
- Ban offending accounts
- Remove spam content
- Update spam filters
- Monitor for continued attacks
System Outages
- Identify root cause
- Implement temporary fixes
- Communicate with users
- Apply permanent solution
- Post-incident review
Data Recoveryโ
Database Backup Restoration
# Restore from backup
pg_restore --clean --no-acl --no-owner -h host -U user -d database backup_file.dump
# Verify data integrity
psql -h host -U user -d database -c "SELECT COUNT(*) FROM user;"
Content Recovery
- Restore deleted content from backups
- Recover user data from exports
- Rebuild search indexes
- Verify system functionality
This comprehensive admin panel guide enables effective forum management and community growth. Regular use of these tools ensures a healthy, engaged community environment.