Index: trunk/extensions/SocialProfile/SocialProfile.php |
— | — | @@ -12,6 +12,7 @@ |
13 | 13 | */ |
14 | 14 | $dir = dirname(__FILE__) . '/'; |
15 | 15 | |
| 16 | +// Internationalization files |
16 | 17 | $wgExtensionMessagesFiles['SocialProfileUserBoard'] = $dir . 'UserBoard/UserBoard.i18n.php'; |
17 | 18 | $wgExtensionMessagesFiles['SocialProfileUserProfile'] = $dir . 'UserProfile/UserProfile.i18n.php'; |
18 | 19 | $wgExtensionMessagesFiles['SocialProfileUserRelationship'] = $dir . 'UserRelationship/UserRelationship.i18n.php'; |
— | — | @@ -19,6 +20,7 @@ |
20 | 21 | |
21 | 22 | $wgExtensionAliasesFiles['SocialProfile'] = $dir . 'SocialProfile.alias.php'; |
22 | 23 | |
| 24 | +// Classes to be autoloaded |
23 | 25 | $wgAutoloadClasses['SpecialAddRelationship'] = $dir . 'UserRelationship/SpecialAddRelationship.php'; |
24 | 26 | $wgAutoloadClasses['SpecialBoardBlast'] = $dir . 'UserBoard/SpecialSendBoardBlast.php'; |
25 | 27 | $wgAutoloadClasses['SpecialPopulateUserProfiles'] = $dir . 'UserProfile/SpecialPopulateExistingUsersProfiles.php'; |
— | — | @@ -43,6 +45,7 @@ |
44 | 46 | $wgAutoloadClasses['TopUsersPoints'] = $dir. 'UserStats/TopUsers.php'; |
45 | 47 | $wgAutoloadClasses['wAvatar'] = $dir . 'UserProfile/AvatarClass.php'; |
46 | 48 | |
| 49 | +// New special pages |
47 | 50 | $wgSpecialPages['AddRelationship'] = 'SpecialAddRelationship'; |
48 | 51 | $wgSpecialPages['PopulateUserProfiles'] = 'SpecialPopulateUserProfiles'; |
49 | 52 | $wgSpecialPages['RemoveAvatar'] = 'RemoveAvatar'; |
— | — | @@ -59,15 +62,26 @@ |
60 | 63 | $wgSpecialPages['ViewRelationshipRequests'] = 'SpecialViewRelationshipRequests'; |
61 | 64 | $wgSpecialPages['ViewRelationships'] = 'SpecialViewRelationships'; |
62 | 65 | |
63 | | -//What to display on social profile pages by default? |
| 66 | +// Special page groups for MW 1.13+ |
| 67 | +$wgSpecialPageGroups['AddRelationship'] = 'users'; |
| 68 | +$wgSpecialPageGroups['RemoveAvatar'] = 'users'; |
| 69 | +$wgSpecialPageGroups['RemoveRelationship'] = 'users'; |
| 70 | +$wgSpecialPageGroups['UserBoard'] = 'users'; |
| 71 | +$wgSpecialPageGroups['ViewRelationshipRequests'] = 'users'; |
| 72 | +$wgSpecialPageGroups['ViewRelationships'] = 'users'; |
| 73 | + |
| 74 | +// What to display on social profile pages by default? |
64 | 75 | $wgUserProfileDisplay['board'] = true; |
65 | 76 | $wgUserProfileDisplay['foes'] = true; |
66 | 77 | $wgUserProfileDisplay['friends'] = true; |
67 | 78 | |
68 | | -//Should we display UserBoard-related things on social profile pages? |
| 79 | +// Should we display UserBoard-related things on social profile pages? |
69 | 80 | $wgUserBoard = true; |
70 | 81 | |
71 | | -//Extension credits |
| 82 | +// Whether to enable friending or not -- this doesn't do very much actually, so don't rely on it |
| 83 | +$wgFriendingEnabled = true; |
| 84 | + |
| 85 | +// Extension credits that show up on Special:Version |
72 | 86 | $wgExtensionCredits['other'][] = array( |
73 | 87 | 'name' => 'SocialProfile', |
74 | 88 | 'author' => 'Wikia, Inc. (Aaron Wright, David Pean)', |
— | — | @@ -148,14 +162,15 @@ |
149 | 163 | 'description' => 'A special page for viewing all relationships by type', |
150 | 164 | ); |
151 | 165 | |
| 166 | +// Some paths used by the extensions |
152 | 167 | $wgUserProfileDirectory = "$IP/extensions/SocialProfile/UserProfile"; |
153 | 168 | |
154 | 169 | $wgUserBoardScripts = "$wgScriptPath/extensions/SocialProfile/UserBoard"; |
155 | 170 | $wgUserProfileScripts = "$wgScriptPath/extensions/SocialProfile/UserProfile"; |
156 | 171 | $wgUserRelationshipScripts = "$wgScriptPath/extensions/SocialProfile/UserRelationship"; |
157 | 172 | |
158 | | -require_once("$IP/extensions/SocialProfile/YUI/YUI.php"); //YUI stand-alone library |
159 | | -require_once("{$wgUserProfileDirectory}/UserProfile.php"); //Profile page configuration loader file |
160 | | -require_once("$IP/extensions/SocialProfile/UserGifts/Gifts.php"); //UserGifts (user-to-user gifting functionality) loader file |
161 | | -require_once("$IP/extensions/SocialProfile/SystemGifts/SystemGifts.php"); //SystemGifts (awards functionality) loader file |
162 | | -$wgFriendingEnabled = true; //Whether to enable friending or not -- this doesn't do very much actually, so don't rely on it |
\ No newline at end of file |
| 173 | +// Loader files |
| 174 | +require_once("$IP/extensions/SocialProfile/YUI/YUI.php"); // YUI stand-alone library |
| 175 | +require_once("{$wgUserProfileDirectory}/UserProfile.php"); // Profile page configuration loader file |
| 176 | +require_once("$IP/extensions/SocialProfile/UserGifts/Gifts.php"); // UserGifts (user-to-user gifting functionality) loader file |
| 177 | +require_once("$IP/extensions/SocialProfile/SystemGifts/SystemGifts.php"); // SystemGifts (awards functionality) loader file |
\ No newline at end of file |
Index: trunk/extensions/SocialProfile/SystemGifts/SystemGifts.php |
— | — | @@ -4,7 +4,6 @@ |
5 | 5 | $wgGroupPermissions['awardsmanage']['awardsmanage'] = true; |
6 | 6 | $wgGroupPermissions['staff']['awardsmanage'] = true; |
7 | 7 | $wgGroupPermissions['sysop']['awardsmanage'] = true; |
8 | | -$wgGroupPermissions['janitor']['awardsmanage'] = true; |
9 | 8 | |
10 | 9 | $wgSystemGiftsDirectory = "$IP/extensions/SocialProfile/SystemGifts"; |
11 | 10 | $wgSystemGiftsScripts = "$wgScriptPath/extensions/SocialProfile/SystemGifts"; |
Index: trunk/extensions/SocialProfile/UserGifts/Gifts.php |
— | — | @@ -8,34 +8,41 @@ |
9 | 9 | $wgUserGiftsDirectory = "$IP/extensions/SocialProfile/UserGifts"; |
10 | 10 | $wgUserGiftsScripts = "$wgScriptPath/extensions/SocialProfile/UserGifts"; |
11 | 11 | |
12 | | -//Special Pages etc. |
| 12 | +// Special Pages etc. |
13 | 13 | $wgAutoloadClasses['Gifts'] = "{$wgUserGiftsDirectory}/GiftsClass.php"; |
14 | 14 | $wgAutoloadClasses['UserGifts'] = "{$wgUserGiftsDirectory}/UserGiftsClass.php"; |
15 | 15 | |
16 | 16 | $wgAutoloadClasses['GiveGift'] = "{$wgUserGiftsDirectory}/SpecialGiveGift.php"; |
17 | 17 | $wgSpecialPages['GiveGift'] = 'GiveGift'; |
| 18 | +$wgSpecialPageGroups['GiveGift'] = 'users'; |
18 | 19 | |
19 | 20 | $wgAutoloadClasses['ViewGifts'] = "{$wgUserGiftsDirectory}/SpecialViewGifts.php"; |
20 | 21 | $wgSpecialPages['ViewGifts'] = 'ViewGifts'; |
| 22 | +$wgSpecialPageGroups['ViewGifts'] = 'users'; |
21 | 23 | |
22 | 24 | $wgAutoloadClasses['ViewGift'] = "{$wgUserGiftsDirectory}/SpecialViewGift.php"; |
23 | 25 | $wgSpecialPages['ViewGift'] = 'ViewGift'; |
| 26 | +$wgSpecialPageGroups['ViewGift'] = 'users'; |
24 | 27 | |
25 | 28 | $wgAutoloadClasses['GiftManager'] = "{$wgUserGiftsDirectory}/SpecialGiftManager.php"; |
26 | 29 | $wgSpecialPages['GiftManager'] = 'GiftManager'; |
| 30 | +$wgSpecialPageGroups['GiftManager'] = 'wiki'; |
27 | 31 | |
28 | 32 | $wgAutoloadClasses['GiftManagerLogo'] = "{$wgUserGiftsDirectory}/SpecialGiftManagerLogo.php"; |
29 | 33 | $wgSpecialPages['GiftManagerLogo'] = 'GiftManagerLogo'; |
| 34 | +$wgSpecialPageGroups['GiftManagerLogo'] = 'wiki'; |
30 | 35 | |
31 | 36 | $wgAutoloadClasses['RemoveMasterGift'] = "{$wgUserGiftsDirectory}/SpecialRemoveMasterGift.php"; |
32 | 37 | $wgSpecialPages['RemoveMasterGift'] = 'RemoveMasterGift'; |
| 38 | +$wgSpecialPageGroups['RemoveMasterGift'] = 'wiki'; |
33 | 39 | |
34 | 40 | $wgAutoloadClasses['RemoveGift'] = "{$wgUserGiftsDirectory}/SpecialRemoveGift.php"; |
35 | 41 | $wgSpecialPages['RemoveGift'] = 'RemoveGift'; |
| 42 | +$wgSpecialPageGroups['RemoveGift'] = 'users'; |
36 | 43 | |
37 | 44 | $wgExtensionMessagesFiles['UserGifts'] = $wgUserGiftsDirectory . '/UserGifts.i18n.php'; |
38 | 45 | |
39 | | -//Credits |
| 46 | +// Credits |
40 | 47 | $wgExtensionCredits['specialpage'][] = array( |
41 | 48 | 'name' => 'GiftManager', |
42 | 49 | 'version' => '1.0', |