Extension:Dynamic Article List

Introduction
DynamicArticleList is a Mediawiki 1.5 extension. It is designed to provide add-on sort ability among all posted articles. Now four types of Dynamic Article List have been implemented. User could easily find the latest or most popular topics cross site with the help of Dynamic Article List.
 * 1) Newly Posted Articles
 * 2) Recently Updated Articles
 * 3) Recent Discussions
 * 4) Most Popular Articles

This extension is written with the help from Dynamic Page List.

Working
I got it working on 1.9.2 and 1.11.0 (User:Dynasource) with only the DynamicArticleList.php
 * Did you have to edit the php files to get this working? I see an error message when trying to implement in 1.11.0--86.130.11.27 20:23, 15 October 2007 (UTC)

Prerequisite

 * PHP 5 or above is needed.
 * Dynamic Article List strongly depends on "recentchanges" table, however Mediawiki engine 1.5.0 preiodically flushes old entries from the "recentchanges" table. It's recommended to disable the auto-deletion feature. - Open  Article.php  in "includes" folder, comment the line "$dbw->query( $sql )" at the start of function "editUpdates".

Installation

 * Follow the links below to download source code.
 * DynamicArticleList.php
 * CategoryTravelerBase.php
 * CategoryNode.php
 * CategoryUtil.php
 * Copy the contents in pdf out, and create corresponding php source files.
 * What do you mean by pdf out? Is this a piece of freeware I haven't heard of before? (To convert the files I had to use Gmail and send the pdf's to myself. I then viewed them in html and saved them. I had five minutes of formatting issues afterwards; but the extension worked perfectly.) :ChrisG 03:07, 6 January 2006 (UTC)
 * I believe the author intended for one to open the pdf's in your pdf reader of choice (Acrobat, XPdf, etc.) and select all the text, use the clipboard to copy it, and paste it into a new php file. Your method worked too, of course. (*; Jcobbers 14:46, 8 February 2006 (UTC)
 * Or right-click -> "save target" and save the files as .php (Anonymous - 08:53, 26 July 2007 (UTC))
 * Copy  DynamicArticleList.php  to "extensions" folder.
 * Copy  CategoryTravelerBase.php ,  CategoryNode.php ,  CategoryUtil.php  to "includes" folder.
 * Add a line  require_once( "extensions/DynamicArticleList.php" );  into "LocalSettings.php", found in your root wiki directory.

Tag and its Parameters
Note:
 * If "categoryRoot" is set, Dynamic Article List will only retrieve articles in this category and its children. If not, all articles will be candidates.
 * The value of parameter "type" could be one of the following (default is  new ):
 * new => Newly Posted Articles
 * update => Recently Updated Articles
 * discussion => Recent Discussions
 * hot => Most Popular Articles
 * The default value of "count" is  5 .

Samples
A sample snapshot of Dynamic Article List is shown below.



When "type" is set to  new , The output record format would be  Page Title (author) - [create time]  When "type" is set to  update  or  discussion , The output record format would be  Page Title (last editor) - [update time] 

The underlying wiki codes are:  title=Newly Posted Articles type=new count=512412412412 

Another sample snapshot of Dynamic Article List is shown below.



When "type" is set to  hot , The output record format would be  Page Title - (accessed times) 

The underlying wiki codes are:  title=Most Popular Articles type=hot count=5 