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)

I got it working on my site theDIYpal using 1.12.0, without editing the php.--67.142.130.22 15:50, 14 July 2008 (UTC)

Also works for 1.13.2 without editing.

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.
 * PDF Source
 * DynamicArticleList.php
 * CategoryTravelerBase.php
 * CategoryNode.php
 * CategoryUtil.php
 * Text Source
 * DynamicArticleList.php
 * CategoryTravelerBase.php
 * CategoryNode.php
 * CategoryUtil.php


 * 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.

PDF observation

 * 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))
 * Yes, just rename them, it works.
 * No, renaming a .pdf file to .php doesn't work; you have to copy/paste the contents from the pdf into newly created php files, and then ensure that the php code still works (no extra line breaks inserted, not everything on one line, ...) Instead of posting your sourcecode in a binary format, why not just zip/tar it with the correct folder structure so that we don't have to jump through hoops to install this? And while you're at it, give this thing a version number as well.
 * This is a rather aggravating and seemingly unnecessary process. Why not just post the PHP code like the majority of other Extension publishers?  Or post a gzipped tarball? Thomsonj 15:09, 8 November 2008 (UTC)

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 