👑 Administrator Guide

Complete guide to managing your Xiuno BBS forum

Getting Started

Accessing the Admin Panel

Navigate to https://xiuno.wiki/admin/ and login with your administrator credentials.

🔐 Admin Privileges: Only users with group ID 1 (Administrators) can access the admin panel. The first registered user is automatically made an administrator.

Admin Dashboard Overview

The admin panel provides access to:

Forum Structure Management

Creating Forum Categories

Step 1: Navigate to Forums

Go to Admin Panel → Forums → Create Forum

Step 2: Configure Forum Settings

Field Description Example
Forum Name Display name of the forum "General Discussion"
Description Brief description of forum purpose "General topics and announcements"
Order Display priority (lower = higher) 0, 1, 2...
Parent Forum Create sub-forum (optional) Select parent or none
Icon Forum icon/emoji 💬, 📚, 🔧

Step 3: Set Permissions

Configure who can access this forum:

  • Public: Everyone can view and post
  • Members Only: Registered users only
  • Read Only: Users can view but not post
  • Private: Specific groups only

Recommended Forum Structure

📚 Documentation
   ├── 📖 Getting Started
   ├── ⚙️ Configuration
   └── 🔧 Troubleshooting

💾 Downloads
   ├── 📦 Releases
   ├── 🧩 Plugins
   └── 🎨 Themes

💬 Community
   ├── 📢 Announcements
   ├── 💭 General Discussion
   ├── 🐛 Bug Reports
   └── 💡 Feature Requests

🛠️ Development
   ├── 🔌 Plugin Development
   ├── 🎨 Theme Development
   └── 🔗 API & Integration

User Management

User Administration

Navigate to Admin Panel → Users

Common User Operations

Operation How To Use Case
Search Users Use search box (by username, email, UID) Find specific user quickly
Edit User Click username → Edit Change email, group, or profile
Ban User User → Set group to "Banned" Prevent user from logging in
Delete User User → Delete (posts remain) Remove spam accounts
Promote User User → Change group Make moderator or admin

User Groups

Navigate to Admin Panel → Groups

Default Groups

Group ID Name Permissions
1 Administrator Full access, admin panel, all permissions
2 Moderator Edit/delete posts, ban users, manage threads
3 VIP Normal user + extra features (configurable)
101 Member Standard user permissions
102 Banned Cannot login or post

Creating Custom Groups

Example: Creating "Contributors" Group

  1. Go to Groups → Create Group
  2. Set name: "Contributors"
  3. Configure permissions:
    • ✓ Create threads
    • ✓ Reply to threads
    • ✓ Upload attachments (up to 10MB)
    • ✓ Edit own posts (within 24 hours)
    • ✗ Delete others' posts
  4. Save group

Content Moderation

Thread Management

Navigate to Admin Panel → Moderation → Threads

Moderator Actions

Post Moderation

For individual posts in a thread:

⚠️ Moderation Best Practices:
• Document all moderation actions
• Be consistent with rules enforcement
• Communicate reasons for moderation
• Give warnings before bans when possible

Site Settings

General Settings

Navigate to Admin Panel → Settings → General

Setting Recommendation Purpose
Site Name "Xiuno Wiki" Appears in title tags and headers
Site URL https://xiuno.wiki Base URL for links and redirects
ICP License Leave empty (China only) Required for Chinese hosting
Copyright © 2026 Xiuno Wiki Footer copyright notice
Analytics Code Google Analytics ID Track visitor statistics

Registration Settings

Navigate to Settings → User Registration

Anti-Spam Options

SEO Settings

// In conf/conf.php
'urlrewrite' => 1,              // Enable friendly URLs
'url_rewrite_suffix' => '.html', // Add .html suffix
'sitename' => 'Xiuno Wiki',     // Meta title
'sitebrief' => 'Open source BBS',  // Meta description
'sitekeywords' => 'forum,wiki,xiuno', // Meta keywords

Plugin Management

Installing Plugins

Method 1: Admin Panel Upload

  1. Download plugin ZIP from Downloads
  2. Go to Admin → Plugins → Upload
  3. Select ZIP file and upload
  4. Enable plugin after installation

Method 2: Manual Installation

  1. Extract plugin to plugin/plugin-name/
  2. Set permissions: chmod 755 plugin/plugin-name
  3. Go to Admin → Plugins
  4. Click "Enable" next to plugin name

Managing Plugins

Action Steps
Enable/Disable Admin → Plugins → Toggle switch
Configure Plugin → Settings (if available)
Update Download new version → Reinstall
Uninstall Disable plugin → Delete from plugin/
⚠️ Plugin Safety: Only install plugins from trusted sources. Test on staging environment before production.

Theme Customization

Changing Themes

Navigate to Admin → Themes

  1. Browse available themes
  2. Click "Preview" to see demo
  3. Click "Activate" to apply theme
  4. Clear cache: rm -rf tmp/*

Custom CSS

Add custom styles in Admin → Themes → Custom CSS:

/* Custom purple theme */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-primary {
    background: var(--primary-color);
    border: none;
}

Backup & Maintenance

Automated Backups

Create a backup script: /home/xiuno/backup.sh

#!/bin/bash
DATE=$(date +%Y%m%d_%H%M%S)
BACKUP_DIR="/home/xiuno/backups"

# Database backup
mysqldump -u xiuno -p'your_password' xiuno > $BACKUP_DIR/db_$DATE.sql

# Files backup
tar -czf $BACKUP_DIR/files_$DATE.tar.gz /home/xiuno/public_html

# Delete old backups (keep 30 days)
find $BACKUP_DIR -name "*.sql" -mtime +30 -delete
find $BACKUP_DIR -name "*.tar.gz" -mtime +30 -delete

echo "Backup completed: $DATE"

Schedule with cron:

# Daily backup at 2 AM
0 2 * * * /home/xiuno/backup.sh >> /home/xiuno/backup.log 2>&1

Maintenance Mode

To enable maintenance mode, create file: tmp/maintenance.lock

touch tmp/maintenance.lock

Visitors will see a maintenance message. Remove file to restore access.

Database Optimization

Run weekly maintenance:

mysql -u xiuno -p
USE xiuno;

OPTIMIZE TABLE bbs_thread;
OPTIMIZE TABLE bbs_post;
OPTIMIZE TABLE bbs_user;
ANALYZE TABLE bbs_thread;
ANALYZE TABLE bbs_post;

Security Best Practices

✅ Security Checklist:
✓ Keep Xiuno BBS updated to latest version
✓ Use strong admin passwords (16+ characters)
✓ Enable HTTPS/SSL certificate
✓ Disable directory listing
✓ Restrict access to /admin/ by IP (optional)
✓ Regular database backups
✓ Monitor error logs for suspicious activity
✓ Keep PHP and MySQL updated
✓ Use prepared statements (built-in)
✓ Enable CSRF protection (default)

Restricting Admin Access

Add to .htaccess in admin/ directory:

# Allow only specific IP addresses
Order Deny,Allow
Deny from all
Allow from 123.456.789.0  # Your IP
Allow from 192.168.1.0/24 # Local network

Performance Monitoring

Site Statistics

Check in Admin → Dashboard:

Performance Tips

  1. Enable Redis: Significantly faster than MySQL cache
  2. Enable Gzip: Reduce bandwidth usage
  3. Optimize Images: Compress uploads automatically
  4. CDN: Use CloudFlare for static assets
  5. Database Indexing: Already optimized automatically
📊 Next Steps:
• Read Plugin Development to extend functionality
• Check Troubleshooting Guide for common issues
• Join the community forum for support