Index: trunk/extensions/Favorites/Favorites_body.php |
— | — | @@ -50,7 +50,7 @@ |
51 | 51 | $mode = $favTitle->userIsFavoriting() ? 'unfavorite' : 'favorite'; |
52 | 52 | // See if this object even exists - if the user can't read it, the object doesn't get created. |
53 | 53 | if ($wgArticle) { |
54 | | - $content_actions['newtab'] = array ( |
| 54 | + $content_actions[$mode] = array ( |
55 | 55 | 'class' => (( $action == 'favorite' || $action == 'unfavorite' ) ? ' selected' : false ), |
56 | 56 | 'text' => wfMsg( $mode ), // uses 'favorite' or 'unfavorite' message |
57 | 57 | 'href' => $wgArticle->mTitle->getLocalUrl( 'action=' . $mode ) |
Index: trunk/extensions/Favorites/Favorites.php |
— | — | @@ -22,7 +22,7 @@ |
23 | 23 | 'name' => 'Favorites', |
24 | 24 | 'author' => 'Jeremy Lemley', |
25 | 25 | 'descriptionmsg' => 'favorites-desc', |
26 | | - 'version' => '0.0.6', |
| 26 | + 'version' => '0.0.7', |
27 | 27 | 'url' => "http://www.mediawiki.org/wiki/Extension:Favorites", |
28 | 28 | ); |
29 | 29 | |
Index: trunk/extensions/Favorites/README |
— | — | @@ -1,33 +1,38 @@ |
2 | | -This extension provides the ability for users to create a list of favorites. It works separately from the Watchlist, and provides the ability to also embed your users' lists of favorites on a page (such as on the main page).
|
| 2 | +This extension provides the ability for users to create a list of
|
| 3 | +favorites. It works separately from the Watchlist, and provides the
|
| 4 | +ability to also embed your users' lists of favorites on a page (such as
|
| 5 | +on the main page).
|
3 | 6 |
|
| 7 | +== Database schema ==
|
4 | 8 |
|
5 | | -== Database schema ==
|
| 9 | +A 'favoritelist' table is added to the wiki's database. This table
|
| 10 | +contains the list of items that have been added to each user's favorite
|
| 11 | +list.
|
6 | 12 |
|
7 | | -A 'favoritelist' table is added to the wiki's database. This table contains the list of items that have been added to each user's favorite list.
|
| 13 | +The table must be present for the wiki to function once the extension is
|
| 14 | +enabled
|
8 | 15 |
|
9 | | -The table must be present for the wiki to function once the extension is enabled
|
| 16 | +== Installation ==
|
10 | 17 |
|
| 18 | +To enable the extension, add the following line to your
|
| 19 | +LocalSettings.php file:
|
11 | 20 |
|
12 | | -== Installation ==
|
| 21 | +require_once("$IP/extensions/Favorites/Favorites.php");
|
13 | 22 |
|
14 | | -To enable the extension, add the following line to your LocalSettings.php file:
|
| 23 | +You must then create and populate the new database table.
|
15 | 24 |
|
16 | | - require_once("$IP/extensions/Favorites/Favorites.php");
|
| 25 | +The easiest way to do this is to run MediaWiki's standard updater:
|
| 26 | +php maintenance/update.php
|
17 | 27 |
|
| 28 | +If you do not have command-line access to your server, you can manually
|
| 29 | +apply the favorites.sql file's commands to your database (check for
|
| 30 | +proper table prefix, etc).
|
18 | 31 |
|
19 | | -You must then create and populate the new database table.
|
| 32 | +== Configuration Parameters ==
|
20 | 33 |
|
21 | | -The easiest way to do this is to run MediaWiki's standard updater:
|
22 | | -
|
23 | | - php maintenance/update.php
|
| 34 | +If using the Vector skin, you may want to also add the "Star" icon to
|
| 35 | +your navigation bar. To do this, add the following line '''above''' the
|
| 36 | +"require_once" line in your LocalSettings.php file:
|
24 | 37 |
|
| 38 | +$wgUseIconFavorite = true;
|
25 | 39 |
|
26 | | -If you do not have command-line access to your server, you can manually apply the favorites.sql file's commands to your database (check for proper table prefix, etc).
|
27 | | -
|
28 | | -
|
29 | | -== Configuration Parameters ==
|
30 | | -
|
31 | | -If using the Vector skin, you may want to also add the "Star" icon to your navigation bar. To do this, add the following line '''above''' the "require_once" line in your LocalSettings.php file:
|
32 | | -
|
33 | | - $wgUseIconFavorite = true;
|
34 | | -
|