Works with
Optional integrations and compatible files.
About Simple Site
Simple Site 2.0
A dark, responsive website for your Rust community. One config file controls the name, homepage, FAQ, rules, and server list. Live player counts, maps, and wipe times come from BattleMetrics. Your Discord member count updates on the site.
What you get
- Homepage with a hero, stat cards, about section, FAQ, and a join band
- Servers page with player counts, online or offline status, map, next wipe, and a Steam connect button
- Rules page built from sections you edit in the config
- Optional leaderboard for player and team stats
- Live Discord member count, plus social icons for the links you fill in
-
Clean addresses such as
/serversand/rules - Colors changed from CSS variables
- An addon system for other developers to build their own pages and systems without editing the core site
Empty social links stay hidden.
Pages
| Page | What it shows |
|---|---|
| Home | Hero, live player total, your own stats, about cards, FAQ |
| Servers | Every BattleMetrics server you add |
| Rules | Your rule sections and punishments |
| Leaderboard | Players and teams, when the database is connected |
Live server data
BattleMetrics now requires an API token on every request. Add the token once, then list each server ID.
- Real-time player counts
- Online and offline status
- Current map
- Next wipe time
- Connect button that opens Steam
Tip
Create a token at BattleMetrics Developers. The server ID is the number at the end of the server URL, for example battlemetrics.com/servers/rust/12345678.
Warning
Keep your BattleMetrics token in min.config.php on the server. Do not post it in Discord, reviews, or a public config paste.
Leaderboard
Note
The leaderboard reads leaderboard_players and leaderboard_teams. It is built for Premium Leaderboard. Point the site and the plugin at the same MySQL database. Leaderboard help for that plugin goes through Tryhard.
The rest of the site does not need a database. Leave the database values as placeholders and the other pages still run.
Addons
Other developers can add their own pages and systems on top of Simple Site. A new folder in addons/ is picked up automatically. The site wraps it with the header, menu, and footer. Core pages stay untouched.
-
Copy
addons/_exampleand rename the folder with lowercase letters, numbers, and hyphens. -
The folder name is the address. A folder named
storeis served at/store. -
addon.phpsets the name, description, and menu label.page.phpis only the page body. -
Set
navto show a menu link. Leavenavempty to keep the page off the menu.
Folders that start with _ or . stay hidden, so the example is not published.
Setup
-
Upload the files to any host with PHP and Apache
mod_rewrite. -
Open
min.config.php. - Set the site name, description, Discord invite, and social links.
- Paste your BattleMetrics token and server IDs.
-
Edit the hero, stats, about cards, FAQ, and rules in
$ContentSections. -
For the leaderboard only, set
$Databaseto the same database as Premium Leaderboard. -
Change colors in the
:rootblock at the top ofassets/css/style.css.
$BattlemetricsToken = 'your-token-here';
Requirements
| Need | Detail |
|---|---|
| PHP | 8.3.36 or newer. PHP 8.2.35, 8.4.27, and 8.5.12 or newer are also fine |
| Web server |
Apache with mod_rewrite for clean URLs
|
| Database | MySQL only if you use the leaderboard |
| BattleMetrics | A personal API token and your server IDs |
Shared hosting is enough. No extra framework to install.