FavRate

From Wiki4Intranet
(Redirected from FavRate/en)
Jump to: navigation, search

FavRate is a MediaWiki extension.

Status for Mediawiki4Intranet distribution:

  • Inclusion date: 2012-01-24
  • Included version: newest available
  • Improvement status: Created by MediaWiki4Intranet project

Usage

Add «* favratebar» line to MediaWiki:Sidebar.

You’ll see a new sidebar block with three logarithmic rating bars:

  • green is for page views
  • magenta is for how many times the page was added to favorites
  • blue is for links to the page

Installation

As usual, add the following to your LocalSettings.php:

require_once "$IP/extensions/FavRate/FavRate.php";
 
// You can override some configuration variables:
 
// Enable collecting of unique visitor logs for each page (false by default)
$egFavRateLogVisitors = true;
 
// Make all visitor logs public (false by default)
$egFavRatePublicLogs = true;
 
// Maximum value for logarithmic scale of hit count
$egFavRateMaxHits = 100000;
 
// Maximum value for logarithmic scale of favorite count
$egFavRateMaxFav = 100;
 
// Maximum value for logarithmic scale of link count
$egFavRateMaxLinks = 100;
 
// Hit count scale color
$egFavRateHitsColor = "#0c0";
 
// Favorites count scale color
$egFavRateFavColor = "#c00";
 
// Link count scale color
$egFavRateLinksColor = "#00c";