Skip to content

A user leaderboard for telescope communities to promote and recognise user engagement

Notifications You must be signed in to change notification settings

thesaucecode/telescope-user-leaderboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

telescope-user-leaderboard

Overview

This is a package written for the telescope project. It provides a community with a user leaderboard, a new user activity metric recorded on the user record and a nav link to this leaderboard.

Implemented originally for ProductHoist

Implementation

Clone this repo to your packages/ directory On the command line, run meteor add telescope-user-leaderboard to activate the package for use on your telescope installation.

Exposed methods

We already provide callbacks to recalculate a user's 'awesomeness' scoring after upvotes, comments, post submission and approval. You can call this method

calculateAwesomenessScore(user)

This method takes a user document and returns their new awesomeness score.

user_rating_weightings

This is an object that defines the weighting given to each action by a user. Amend this in a Meteor.startup function to use a different weighting.

user_rating_weightings = {	
  	post: 5,
	comment: 2,
	upvote: 1,
	karma: 1
};

Data migration

We have added a data migration inline with the current telescope migration mechanism to add an awesomeness score for each of your existing users.

About

A user leaderboard for telescope communities to promote and recognise user engagement

Resources

Stars

Watchers

Forks

Packages

No packages published