Skip to content
Ingo edited this page Nov 24, 2026 · 1 revision

Admin Guide

This guide is for the administrators of a YAF.NET v4 forum. This page explains who can open the admin area, where to find each page and what to do after the installation. Each part of the admin area has its own page, linked below.

For the members of your forum there is the forum help (Help in the header). It explains posting, private messages, the profile and the other end-user features.

Admins and host admins

YAF.NET has two kinds of administrators:

Admin Host admin
Who Every member of a role with Is Admin turned on (Admin > Users and Roles > Roles). After the installation this is the role Administrators. A user with the Host Admin switch turned on (Edit User > User Details). The account you create in the installation wizard is a host admin.
Menu Admin Admin and Host
Admin pages Only the pages the host admin allows them (see Admin page access) All pages

Only the host admin can:

  • use the Host menu: Host Settings, Boards, Admin Page Access, Languages, Database (DB Maintenance, Run SQL Query, Database Backup) and Restart App. These pages can't be given to other admins.
  • turn the Host Admin switch of a user on or off. A board admin doesn't see this switch.
  • edit the account of a host admin. Other admins get an "access denied" message.

Note

The Host Admin switch gives a user every right in the forum, including Run SQL Query and the database backup, which holds all users and password hashes. Turn it on only for people who also run the server. For everyone else, use an admin role and give them only the pages they need.

YAF.NET won't let you remove Is Admin from the last role that has it, because then the board would have no admins left. Members of an admin role can't be suspended or deleted from the admin pages either.

Opening the admin area

Log in with an admin account. The header has two extra menus:

  • Admin: the admin pages of the board. Only admins and host admins see it.
  • Host: the host admin pages. Only host admins see it.

Admin > Admin Index opens the dashboard. Every admin page also has a breadcrumb that leads back to it.

The admin menu

Admin menu

Section Pages Guide page
Admin Index The dashboard (see below) this page
Settings Board Announcement, Board Settings Board Settings
Categories & Forums Forums and Categories
Replace Words, BBCode Extensions Content
Spam Protection Spam Event Log, Spam Check Words, Banned Emails, Banned IPs, Banned Names, Banned User Agents, Banned Countries Spam protection
Users and Roles Custom Profile Definitions, Access Masks, Roles, Users, Ranks, Medals Users, Roles and Permissions
Mail, Digest Mail and Notifications
Maintenance Attachments, Tags Content
Prune Topics, Restore & Delete Topics, Private Messages, Event Log Maintenance

Host menu (host admin only)

Entry Pages Guide page
Host Settings The tabs Server Info, Host Setup, Features, Display, Adverts, Permission, Avatars, Cache, Search, Logs Host Settings
Boards Create, edit and delete boards Boards, Languages and Page Access
Admin Page Access Choose which admin pages each board admin can open Boards, Languages and Page Access
Languages The language files and the language editor Boards, Languages and Page Access
Database DB Maintenance, Run SQL Query, Database Backup Maintenance, Database backup
Restart App Restarts the application (all boards) Maintenance

Database Backup only shows up when your server can make a backup. See Database backup.

The Admin Index (dashboard)

Admin > Admin Index gives you an overview of the board you are logged in to:

Part What it shows
Version check The installed version (YAF.NET 4.x.x). It also shows either Up to date or A New Version is available!. If a new version is out, a box at the top of the page has a Download Upgrade Package link. The forum checks the latest release on GitHub once a day. For updating, see Update v4 to a newer v4.
Key figures Number of posts (with Posts per day), Number of topics (with Topics per day), Number of users (with Users per day), Number of forums (with Number of categories), Size of database and Board started. Deleted topics and posts are not counted.
New user registrations by month A chart of the registrations in the last two years
Task Manager The background tasks of the forum (for example the digest or the nightly backup), whether each one is Running or Finished, and how long it has been running
User browser(s), User platform(s), User country(s) Charts of the browsers, operating systems and countries of the visitors who are online right now. The country chart only appears when the GeoIP country database (GeoIP.dat in wwwroot) is installed.
Who is Online Each visitor (members, guests and search engine bots) with the page they are on, the IP address and its number of requests, the user agent and the referrer. The IP address links to an IP lookup service (set in Host Settings). Add Banned IP Address bans the IP right away.
Unverified Users The users who have registered but are not approved yet. For each one you can Edit User, Resend Email Verification, Approve user or Delete user. Approve All approves all of them. Delete All More Than Days Old deletes the unapproved users that registered more than the given number of days ago.

Tip

Check the Unverified Users list regularly. If many of them look like bots, see Spam protection. If you want to approve every new member yourself, see Private forum.

Admin page access

A board admin can only open the admin pages that the host admin allows. The Admin menu only lists those pages. Other pages show Host Admin permissions required!

Important

A new admin starts with no allowed pages, not even the Admin Index. After you add a user to an admin role, open Host > Admin Page Access, pick the user, choose the pages they need and click Save.

How to do this is explained in Boards, Languages and Page Access.

First steps after the installation

When the installation wizard is done, you are logged in as the host admin. Go through this list:

  1. Check the mail settings. Registration mails, password resets and notifications are sent through the SMTP server set in MailConfiguration in the appsettings.json (see Installation). To check that sending works, use Mail Testing on Admin > Users and Roles > Mail. See Mail and Notifications.
  2. Set up the board. In Admin > Settings > Board Settings, set the Board Name, the Forum Email (the sender address of the forum mails), the Culture (it also sets the language of the board) and the Theme. To use your own logo, see Change the board logo. To change the look of the forum, see Themes. Details: Board Settings.
  3. Choose how people register. The registration and login options are under Host > Host Settings > Host Setup. See Host Settings. For a forum where you approve every new member, see Private forum.
  4. Create your categories and forums. A new board comes with a Test Category, a Test Forum and a welcome topic. Rename or delete them, then add your own in Admin > Settings > Categories & Forums. See Forums and Categories.
  5. Set up the roles and permissions. A new board has the roles Administrators, Registered Users and Guests, and the access masks from Admin Access to No Access. Decide what guests can see, add roles (for example moderators) and set the access of each role in each forum. See Users, Roles and Permissions.
  6. Turn on the spam protection. Do this before you open the registration to the public. See Spam protection.
  7. Set up backups. Turn on the nightly backup (Host > Database > Database Backup) or use the backup of your hosting provider. See Database backup.
  8. Behind a proxy? If the forum runs behind a reverse proxy or CDN (for example Cloudflare), set TrustedProxies. Otherwise all visitors get the IP address of the proxy, and IP bans and the spam checks don't work. See Reverse proxy and Cloudflare.
  9. Add more admins. Put the people who help you into an admin role, or a moderator role for single forums. Then give each board admin their pages in Host > Admin Page Access (see above).
  10. Optional: set up push notifications, and look through the other BoardConfiguration settings.

If something doesn't work, see Troubleshooting. Errors are listed in Admin > Maintenance > Event Log.

See also

Clone this wiki locally