Creating a Forum
Build a community forum with October CMS using the RainLab Forum and User plugins.
In this tutorial, you will build a community forum using October CMS plugins. By the end, you will have user registration and login, discussion channels, topics with replies, and member profiles, all powered by plugins with no custom PHP.
# What You Will Build
You will create a forum powered by two plugins: RainLab.User for authentication and RainLab.Forum for discussions. The finished forum includes:
- User registration and login with password reset
- Discussion channels for organizing topics by category
- Topics and posts where members can start discussions and reply
- Member profiles showing activity and post history
- Moderation tools for managing content and members
# Plugins vs Tailor
In the blog tutorial, you defined content with YAML blueprints and wrote all the Twig markup yourself. Tailor gives you complete control over the data structure, but you build everything from scratch.
Plugins take a different approach. They are installable packages that bring their own database tables, backend management pages, and frontend components. You install them, configure their settings, and write your own templates to display the data they provide.
# Prerequisites
Before starting, you should have:
- October CMS installed and running
- A theme with a default layout that includes Tailwind CSS
If you haven't done this yet, work through the Quick Start guide first. This tutorial assumes you have a working layout similar to the one created there.
# Overview
This tutorial is split into two parts:
Part 1: User Authentication
- Installing the User Plugin: install RainLab.User and configure your layout
- Login and Registration: create login and registration pages
- Password Reset: add a password reset flow
Part 2: The Forum
- Installing the Forum Plugin: install RainLab.Forum and create channels
- Forum Pages: build the forum index and channel pages
- Topic Page: create topics, post replies, and moderate discussions
- Member Profile: add member profiles with activity and moderation tools
Part 1 covers user authentication as a self-contained guide. Future tutorials that need user accounts will reference these pages. Part 2 builds on Part 1 to create the forum itself.
# Next Steps
Continue to Installing the User Plugin to get started with user authentication.