Skip to content

Instantly share code, notes, and snippets.

@kawaii
Last active February 14, 2020 16:06
Show Gist options
  • Save kawaii/7605d73db01bf16119ca83e05e077dca to your computer and use it in GitHub Desktop.
Save kawaii/7605d73db01bf16119ca83e05e077dca to your computer and use it in GitHub Desktop.

general

  • allows users to earn awards, which are then displayed on their postbit and user profile pages
  • exposes a new page at /misc.php?action=awards, listing award categories and an icon, description and recipients counter
  • exposes pages at /misc.php?action=awards&id=X per award listing each recipient, the reason they were granted the award and the date recieved
  • provide users with an award cp panel, allowing them to see a list of their current awards, and provided they have permission to do so - hide/change the postbit display order of their awards
  • certain awards can be made immune to user-interference, i.e. cannot be hidden
  • hiding an award only removes it from the postbit, it is still listed on their profile pages and the award recipient list
  • reordering of awards only applies to the postbit, they are displayed by date acending on profile pages
  • each award icon on postbit and profiles is a hyperlink to the award recipients list of that particular award - with an html anchor which highlights their particular row, the tooltip is the description

automated awards

  • allow awards to be granted to users automatically for meeting certain requirements
  • i.e. automatically granted at 1000, 5000 and 10,000 posts, or 100, 500 and 1000 threads
  • i.e. reputation milestones, possible integration with mint and eminence
  • scripted awards for meeting complicated scenarios?

user owned awards

  • users can be granted 'ownership' of an award, allowing them to grant it to a limited number of other users, or themselves
  • awards that are owned are denoted as such on the awards list (append Owned by <user link> to the end of the description, and modify the recipients counter to 0/<slots>)
  • award owners can grant and revoke their award from any user, at any time
  • ownership of an award can be transferred to other users, the list of recipients is maintained when this happens
  • the new owner can of course still revoke any award slots granted by the old owner
  • award owners cannot have control over if their award can be hidden or not
  • owned awards should provide an audit log, stating grants/revokes, granter ID and date/time

mint integration

  • to be completed later

really weird custom scenario awards

  • to be completed later
  • probably needs a module system like mint has
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment