forked from Brickimedia/LocalSettings
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLocalSettings_en.php
More file actions
239 lines (207 loc) · 9.45 KB
/
LocalSettings_en.php
File metadata and controls
239 lines (207 loc) · 9.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
<?php
$wgSitename = "Brickipedia";
$wgMetaNamespace = "Brickipedia";
$wgNamespaceAliases['BP'] = NS_PROJECT;
$wgPasswordSender = "brickipedia";
$wgPasswordSenderName = "Brickipedia";
$wgLogo = "http://images.brickimedia.org/a/ab/Brickipedia-Wiki-Logo.png";
$wgFavicon = "http://images.brickimedia.org/favicons/favicon.ico";
$wgLanguageCode = "en";
$wgDefaultSkin = 'refreshed';
$wgGroupPermissions['*']['edit'] = true;
$wgGroupPermissions['user']['upload'] = false;
$wgGroupPermissions['sysop']['upload'] = true;
$wgGroupPermissions['sysadmin']['upload'] = true;
$wgGroupPermissions['*']['createtalk'] = true;
$wgGroupPermissions['*']['createpage'] = true;
// User groups
$wgAddGroups['bureaucrat'] = array( 'sysop', 'bot', 'patroller', 'bureaucrat', 'reviewer', 'newsreporter' );
$wgRemoveGroups['bureaucrat'] = array( 'sysop', 'bot', 'patroller', 'bureaucrat', 'reviewer', 'newsreporter' );
$wgAddGroups['reviewer'][] = 'reviewer'; //Allow QCG and RQM users to add other members to that group
$wgRemoveGroups['reviewer'][] = 'reviewer'; //Allow QCG and RQM users to remove other members to that group
#News namespace
define("NS_NEWS", 2000);
define("NS_NEWS_TALK", 2001);
$wgExtraNamespaces[NS_NEWS] = "Brickipedia_News";
$wgExtraNamespaces[NS_NEWS_TALK] = "Brickipedia_News_talk";
$wgNamespaceProtection[NS_NEWS] = array( 'editnews' );
$wgGroupPermissions['*']['editnews'] = false;
$wgGroupPermissions['user']['editnews'] = false;
$wgGroupPermissions['autoconfirmed']['editnews'] = false;
$wgGroupPermissions['newsreporter']['editnews'] = true;
$wgGroupPermissions['sysop']['editnews'] = true;
$wgAddGroups['sysop'][] = 'newsreporter';
$wgRemoveGroups['sysop'][] = 'newsreporter';
$wgContentNamespaces[] = 2000;
#Magazine, Inventory and Review namespaces
define("NS_MAGAZINE", 112);
define("NS_MAGAZINE_TALK", 113);
$wgExtraNamespaces[NS_MAGAZINE] = "Magazine";
$wgExtraNamespaces[NS_MAGAZINE_TALK] = "Magazine_talk";
$wgContentNamespaces[] = 112;
define("NS_INVENTORY", 114);
define("NS_INVENTORY_TALK", 115);
$wgExtraNamespaces[NS_INVENTORY] = "Inventory";
$wgExtraNamespaces[NS_INVENTORY_TALK] = "Inventory_talk";
$wgNamespacesWithSubpages[NS_INVENTORY] = true; //subpages enabled for the review namespace
$wgContentNamespaces[] = 114;
define("NS_REVIEW", 118);
define("NS_REVIEW_TALK", 119);
$wgExtraNamespaces[NS_REVIEW] = "Review";
$wgExtraNamespaces[NS_REVIEW_TALK] = "Review_talk";
$wgNamespacesWithSubpages[NS_REVIEW] = true; //subpages enabled for the review namespace
$wgGroupPermissions['*']['editreview'] = false;
$wgGroupPermissions['autoconfirmed']['editreview'] = true;
$wgGroupPermissions['sysop']['editreview'] = true;
$wgContentNamespaces[] = 118; //track namespace in Special:Statistics
define("NS_PART", 120);
define("NS_PART_TALK", 121);
$wgExtraNamespaces[NS_PART] = "Part";
$wgExtraNamespaces[NS_PART_TALK] = "Part_talk";
$wgNamespacesWithSubpages[NS_PART] = true;
$wgContentNamespaces[] = 120; //track namespace in Special:Statistics
//Semantic MediaWiki -- Do not touch unless you know what you are doing.
$smwgNamespaceIndex = 100;
require_once( "$IP/extensions/SemanticMediaWiki/SemanticMediaWiki.php" );
enableSemantics('en.brickimedia.org');
$smwgShowFactbox = 'SMW_FACTBOX_NONEMPTY';
$smwgQConceptCaching = CONCEPT_CACHE_ALL; //LOTS OF CACHING!!!
$smwgCacheType = CACHE_MEMCACHED;
$smwgPDefaultType = '_txt';
$smwgNamespacesWithSemanticLinks[NS_REVIEW] = true;
$smwgNamespacesWithSemanticLinks[NS_INVENTORY] = true;
$smwgNamespacesWithSemanticLinks[NS_NEWS] = true;
$smwgNamespacesWithSemanticLinks[NS_PART] = true;
#Namespace subpages
$wgNamespacesWithSubpages[NS_PROJECT] = true;
#SocialProfile
$wgUserStatsPointValues['edit'] = 5; // Points awarded on a mainspace edit
$wgUserStatsPointValues['vote'] = 1; // Points awarded for voting for an article
$wgUserStatsPointValues['comment'] = 1; // Points awarded for leaving a comment
$wgUserStatsPointValues['comment_plus'] = 2; // Points awarded if your comment gets a thumbs up
$wgUserStatsPointValues['comment_ignored'] = 0; // Points awarded if another user ignores your comments
$wgUserStatsPointValues['opinions_created'] = 5; // Points awarded for writing a blog article
$wgUserStatsPointValues['opinions_pub'] = 10; // Points awarded for having that article hit the "Blogs" page
$wgUserStatsPointValues['referral_complete'] = 0; // Points awarded for recruiting a new user
$wgUserStatsPointValues['friend'] = 1; // Points awarded for adding a friend
$wgUserStatsPointValues['foe'] = 0; // Points awarded for adding a foe
$wgUserStatsPointValues['gift_rec'] = 10; // Points awarded for receiving a gift
$wgUserStatsPointValues['gift_sent'] = 0; // Points awarded for giving a gift
$wgUserStatsPointValues['points_winner_weekly'] = 20; // Points awarded for having the most points for a week
$wgUserStatsPointValues['points_winner_monthly'] = 50; // Points awarded for having the most points for a month
$wgUserStatsPointValues['user_image'] = 5; // Points awarded for adding your first avatar
$wgUserStatsPointValues['poll_vote'] = 0; // Points awarded for taking a poll
$wgUserStatsPointValues['quiz_points'] = 0; // Points awarded for answering a quiz question
$wgUserStatsPointValues['quiz_created'] = 0; // Points awarded for creating a quiz question
$wgNamespacesForEditPoints = array( 0, 112, 114, 118, 120 ); // Array of namespaces that can earn you points.
// The actual user level definitions -- key is simple: 'Level name' => points needed
$wgUserLevels = array(
'Newcomer' => 0,
'Beginner' => 500,
'Novice' => 1000,
'Amateur' => 1500,
'Thinking With Bricks' => 2000,
'Bricktastic' => 2500,
'Building Bigger' => 5000,
'Brick Master' => 7500,
'Master Builder' => 10000,
'LEGO Wizard' => 12500,
'Outstanding Brickipedian' => 15000,
'Honorable Brickipedian' => 20000,
'Legendary Brickipedian' => 25000,
);
$wgUserProfileDisplay['stats'] = true;
#for {{colourbox}}
require_once("$IP/extensions/ImageMap/ImageMap.php");
/* Change the main page url used in things like the logo to a url of another page on the wiki */
$wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'lfChangeMainPageURL';
function lfChangeMainPageURL( $sk, &$tpl ) {
$tpl->data['nav_urls']['mainpage']['href'] = Title::newFromText('LEGO Wiki')->getLocalURL();
return true;
}
#trusted
$wgRestrictionLevels[] = 'trusted';
$wgGroupPermissions['sysop']['trusted'] = true;
$wgGroupPermissions['patroller']['trusted'] = true;
#Namespace Aliases (LC)
$wgNamespaceAliases = array(
'BP' => NS_PROJECT,
);
#Verbatim
require_once("$IP/extensions/Verbatim/verbatim.php");
# Article Ratings
global $bmMobile;
if( !$bmMobile ){
require_once( "$IP/extensions/EmailCapture/EmailCapture.php" );
require_once( "$IP/extensions/ArticleFeedbackv5/ArticleFeedbackv5.php" );
$wgArticleFeedbackLotteryOdds = 100; // Will turn on the voting on all pages
$wgArticleFeedbackDashboard = true;
}
require_once( "$IP/extensions/WikiArticleFeeds/WikiArticleFeeds.php" );
require_once( "$IP/extensions/CSS/CSS.php" );
require_once( "$IP/extensions/Tabber/Tabber.php" );
// Profiling
$wgEnableProfileInfo = true;
$wgProfileToDatabase = true;
require_once( "$IP/extensions/Snippet/Snippet.php" );
# Refreshed
$wgRefreshedHeader = array(
'url' => 'http://en.brickimedia.org/wiki/Main_Page',
'img' => $refreshedEn,
'dropdown' => array(
'http://meta.brickimedia.org/wiki/Main_Page' => $refreshedMeta,
'http://customs.brickimedia.org/wiki/Main_Page' => $refreshedCustoms,
'http://stories.brickimedia.org/wiki/Main_Page' => $refreshedStories,
'http://ideas.brickimedia.org/wiki/Main_Page' => $refreshedIdeas,
//'http://books.brickimedia.org/wiki/Main_Page' => $refreshedBooks,
//'http://minifigures.brickimedia.org/wiki/Main_Page' => $refreshedMinifigures,
)
);
# #brickimedia-rc-en IRC
$wgRC2UDPAddress = '127.0.0.1';
$wgRC2UDPPort = '51664';
$wgRC2UDPPrefix = "";
# Parents link in footer
$wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'lfParentsLink';
function lfParentsLink( $sk, &$tpl ) {
$tpl->set( 'parents', $sk->footerLink( 'parents', 'parentspage' ) );
$tpl->data['footerlinks']['places'][] = 'parents';
return true;
}
$wgExtensionMessagesFiles['Parents'] = dirname( __FILE__ ) . '/extensions/i18n/Parents.i18n.php';
// Search fixes
$wgNamespacesToBeSearchedDefault = array(
NS_MAIN => true,
NS_TALK => false,
NS_USER => false,
NS_USER_TALK => false,
NS_PROJECT => false,
NS_PROJECT_TALK => false,
NS_FILE => false,
NS_FILE_TALK => false,
NS_MEDIAWIKI => false,
NS_MEDIAWIKI_TALK => false,
NS_TEMPLATE => false,
NS_TEMPLATE_TALK => false,
NS_HELP => false,
NS_HELP_TALK => false,
NS_CATEGORY => false,
NS_CATEGORY_TALK => false,
NS_REVIEW => true,
NS_MAGAZINE => true,
NS_INVENTORY => true,
NS_PART => true,
NS_NEWS => true
);
// ArticleRatings - must be after wgContentNamespaces
require_once("$IP/extensions/ARE/ArticleRatings.php");
// Remove 'crat
$wgGroupPermissions['sysop'] = array_merge( $wgGroupPermissions['sysop'], $wgGroupPermissions['bureaucrat'] );
$wgAddGroups['sysop'] = $wgAddGroups['bureaucrat'];
$wgRemoveGroups['sysop'] = $wgRemoveGroups['bureaucrat'];
unset( $wgGroupPermissions['bureaucrat'] );
unset( $wgRevokePermissions['bureaucrat'] );
unset( $wgAddGroups['bureaucrat'] );
unset( $wgRemoveGroups['bureaucrat'] );
unset( $wgGroupsAddToSelf['bureaucrat'] );
unset( $wgGroupsRemoveFromSelf['bureaucrat'] );