Trophy Type Management Page
Trophy Condition Management Page

This project is not covered by Drupal’s security advisory policy.

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

Project information

Releases