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
- 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
require_once( "includes/DefaultSettings.php" );
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");
Change the 10 to what ever number you want.
define('userlink', true);
define('userlink', true);
If set to false the member links will lead to their "User contributions" page.
define('nav_menu', true);
If set to false, no Top 10 list will be shown.
define('div_tag', "....");
define('div_tag', "<div class='portlet' id='p-Top Contributors'>");
<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);
<?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">
<?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
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 |