Tournaments v1.1.3
Brackets your members compete in by doing the one thing your exchange exists for — surfing. Two members are drawn against each other, a timer starts, and whoever is credited more pages in the window advances. No clicking game, no board, no dice.
How it runs itself
A cron tick every five minutes is the only moving part. It opens a bracket when your schedule allows one, starts it the moment the seats fill — or after a quiet period, with byes, so a small site is never stuck waiting — runs each round for the window you set, settles every match, builds the next round, pays the prizes and stops.
A tie goes to the lower seed, so no match can ever hang.
Scored on credited pages, not clicks
The scoring hook only counts a page your own surf bar has already credited. At the hook, a session start, a mis-clicked icon and a frame-break attempt all look identical to a real view — so the plugin checks your script's own verdict before it counts anything. Every hook call is wrapped, so a scoring error can never break a surf click.
Three draws
Solo is one member against one member. Pairs makes an entry a two-member team whose pages add together, and falls back to solo automatically when too few members are eligible to fill a bracket. Random flips between the two per tournament, so the format itself is part of the draw.
Yours, not ours
Every member-facing word is a setting with a neutral default — tournament, bracket, round, match, team, champion. Rename any of them to fit your site and nothing anywhere says where the plugin came from.
What it adds to your database
Five tables, all prefixed trn_. One surf hook, two cron entries — the bracket tick every five minutes and a licence check once a week — one member page and one admin screen, each registered through your script's own tables. If your exchange's cron is already running, you add nothing. The uninstaller removes all of it, and asks separately before it drops your data.
- Platform
- LFMTE
- PHP
- 7.4 or newer
- Also
- PHP 7.4+ · uses your exchange's existing cron
- Database
- MySQL or MariaDB
- Installs by
- Opening install.php in your browser
- Core files changed
- None
The installer creates its own tables and registers itself through your script's own hook tables. Nothing in your existing installation is edited, and the uninstaller removes every trace it added.
- Licence client now points at teplugins.com.
- Release archive rebuilt with standard forward-slash paths so it extracts cleanly everywhere.