UserPets Leaderboards - Sylphian-Network/Sylphian-UserPets GitHub Wiki
Sylphian/UserPets now includes Leaderboard support through integration with the Sylphian/Leaderboard add-on. This allows you to showcase the top-performing pets across your forum.
Overview
The leaderboard integration makes use of the provider classes that extend the AbstractProvider from Sylphian/Leaderboard.
Each provider defines:
- What data to rank (e.g. pet levels, duel wins)
- How to query and format results
- How to display the leaderboard on the front end
Currently available leaderboards
| Provider | Description | Source |
|---|---|---|
| ExperienceProvider | Ranks users by total pet experience and level. | ExperienceProvider.php |
| DuelWinsProvider | Ranks users by number of pet duel victories. | DuelWinsProvider.php |