Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Trophy

No security coverage Under active development

This module provides an extensible system for awarding trophies based on various user activities and conditions. It allows for flexible trophy criteria, such as rewarding consistent engagement, based on time granularity, or for specific recurring events, with background processing to ensure smooth performance.

Achievements module alternative rewarding system with *extensible trophy condition plugin manager.

Features

  • Advanced conditions like node-based rewarding, rewarding if the user is consistent, a calculation based on granularity (hours, days, weeks, even months), and recurring rewarding such as giving monthly prizes for daily visited users
  • Extensible via ViewCondition plugin manager
  • ContentEntity for trophy and view condition entities and ConfigEntity for trophy types
  • TrophyViewQueue to bulk background processing to not slow down the user
  • Easy to check when the trophy would be given thanks to TrophyTypeSummary Render Element

Example Use Cases

  • A new user will receive a welcoming/warming trophy after visiting any page.
  • Between two dates, a user will receive a trophy reward weekly if they visit any page for 5 days.
  • Between two dates, a user will receive a trophy reward if they visit node 41 without a break for 5 days.
  • Between two dates, a user will receive a trophy reward if they visit any page per month for a year
  • Between two dates, a user will receive a trophy reward monthly if they visit any pages for 10 days.

Existing Condition Plugins

  • ViewCondition: provides condition based on user visits
  • ActionCondition: provides condition based on user action [PLANNED]

Images are generated by AI: https://lexica.art/prompt/97db857b-e86b-4936-bf55-2ca8f68510dd

Ask your assistant about Trophy

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
May 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
1.0.0-beta1 Pre-release 9–10 May 11, 2023