Category:Top Contributors (MW) - Another Web Company
ArcadeDownloadsNewslettersForum MenuNavigationWhat AWC OffersWiki ToolsLogin or Create Account

Log in

You must have cookies enabled to log in to Main Site - Local.

 

Category:Top Contributors (MW)

From Another Web Company

Contents

What it does

This extension will display a Top 10 Contributors for your Wiki.
Version 1.3
Tested on MediaWiki 1.5.x and 1.14
Top_ten_1.jpg Top_ten_2.jpg




  • Options
    • Display Top 10 List at the bottom of your Navigation Menu
    • Show a Special Contributors page which will list off all members
    • Display Top 10 list on any article page.
    • Control the number of members to list in the Top 10 list
    • Place Top 10 list any where with-in your skin

Installing

If you have the older version of AWC's Top Ten Extension installed, delete all the files and remove the current localsettings.php edit.

Upload the new files
Add the following to your localsettings.php

Find:
require_once( "includes/DefaultSettings.php" );
Just under that add:
require($IP.'/extensions/awc/top_ten/top_ten.php');

Configure

Most of the configuration edits are made in the:

\extensions\awc\top_ten\config.php file

define('num', "10")

define('num', "10");
This will change the number of users displayed in the menu.
Change the 10 to what ever number you want.


define('userlink', true);

define('userlink', true);
If set to true the member links will lead to their profile.
If set to false the member links will lead to their "User contributions" page.


define('nav_menu', true);

define('nav_menu', true);
If set to true the Top 10 list will be shown at the bottom of the Nav Bar.
If set to false, no Top 10 list will be shown.


define('div_tag', "....");

define('div_tag', "<div class='portlet' id='p-Top Contributors'>");
This is for people who use the "Skin Hack" to display the Top 10 list where they want. You really don't have to change this unless you are using custom div tags for your menu blocks.



<awc_top_ten> Tags

You can use the <awc_top_ten></awc_top_ten> tag to place your Top 10 list on any page with-in your Wiki.


Example: <awc_top_ten></awc_top_ten>


Skin Hack

This is for people who would like to place the Top 10 list in a different place within their page.
First thing you want to do is disable the nav_menu varable in the (config.php file).
define (nav_menu, false);
Then place the following code where you would like the Top 10 list to apear.
<?PHP

$AWC_TopC = new AWC_TopContributors(); echo $AWC_TopC->skin_call();

?>

Here's a break down.
Open up your skin file -- I'll use the monobook.php for our example -- and place the Top 10 list under the Tool Box:
File = \skins\MonoBook.php
Look for
<?php if( $this->data['language_urls'] ) { ?><div id="p-lang" class="portlet">
And place this just above that
<?PHP
		$AWC_TopC = new AWC_TopContributors();
		echo $AWC_TopC->skin_call();
	?>



Text displayed

The following ile holds the text displayed in the Top Ten Extension:
\extensions\awc\top_ten\general.i18n.php


How it came to be

To see how this extension has come to be:
http://www.mwusers.com/forums/showthread.php?t=1122


Bugs and Suggestions

Top Ten Bugs and Suggestions


The links below have more information about Top Contributors (MW).

This category contains only the following page.

T





Whos here now:   Members 0   Guests 0   Bots & Crawlers 1