Extension:Favorites

What can this extension do?
This extension is designed to create a list of Favorites per-user, similar to the Watchlist. It also allows for the list of favorites to be embedded on a page using a tag.

The code for this extension is basically hacked wiki-code from the Watchlist, and needs some cleanup and debugging. Any community assistance is appreciated.

Usage
The extension creates a new Special page called Favorites.

It also creates a tag that will allow you to embed a list of favorites on any page:

Users add items to the Favorite list by either selecting Favorite from the navigation menu, or by clicking the Star icon (if implemented - see Configuration parameters). Conversely, removing a Favorite from the list is a matter of clicking Unfavorite or clicking the Star a second time. Users can also edit their list through the Special:Favoritelist page using the same features included with the Watchlist.

Download instructions
Download a snapshot from the SVN link:

Installation
To install this extension, add the following to LocalSettings.php:

This extension also requires a new table in your database. Run update.php script in your MediaWiki maintenance folder to create the necessary tables (your designated database user needs to have CREATE rights on your MediaWiki database): $IP/maintenance$ php update.php

Installation can be verified through Special:Version

Configuration parameters
This extension utilizes the same "Star" icon that is included with the Vector Watchlist portion of the Usability Initiative extension. If you wish to use the Star for your favorites, add the following parameter to localsettings.php:

$wgUseIconFavorite = true;

If you are already using the Star icon for your watched items, you may want to set $wgVectorUseIconWatch to false in localsettings.php.